From 3f4d1d0fa2f5515906761b7eaace11dca2ac170d Mon Sep 17 00:00:00 2001 From: zimniy Date: Tue, 1 Jun 2021 16:08:03 +0300 Subject: [PATCH] fix --- tasks/main.yml | 14 ++++++-------- tasks/ubuntu/main.yml | 10 ---------- 2 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 tasks/ubuntu/main.yml diff --git a/tasks/main.yml b/tasks/main.yml index d4ef5ac..ad32d4b 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 2fe7411..0000000 --- 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 -- GitLab