diff --git a/tasks/main.yml b/tasks/main.yml index d4ef5acfc46e2a44c4137270658c448015933eef..ad32d4b6988484013ac828d1c710881c269c77fd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,16 +1,14 @@ --- -# Ubuntu -- name: Perform specific setup for Ubuntu, Debian & Linux Mint - include_tasks: ubuntu/main.yml - when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian' or ansible_distribution == 'Linux Mint' - tags: ubuntu - -################################################ +# Package +- name: Install packages + ansible.builtin.package: + state: present + name: rsyslog # RSyslog - name: Template a file to /etc/rsyslog.d/99-sender.conf - copy: + ansible.builtin:.copy: content: | *.* @{{ rsyslog_server | mandatory }} dest: /etc/rsyslog.d/99-sender.conf diff --git a/tasks/ubuntu/main.yml b/tasks/ubuntu/main.yml deleted file mode 100644 index 2fe7411a7bac26794427b2e89fc2d71c63e309c5..0000000000000000000000000000000000000000 --- a/tasks/ubuntu/main.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- - -# APT -- name: Install packages - apt: - state: present - update_cache: yes - install_recommends: no - pkg: - - rsyslog