Commit f678699a authored by Дмитрий Сафронов's avatar Дмитрий Сафронов
Browse files

Merge branch 'fix' into 'master'

fix

See merge request ansible/roles/rsyslog_sender!3
parents f8d20580 3f4d1d0f
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
---

# 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

tasks/ubuntu/main.yml

deleted100644 → 0
+0 −10
Original line number Diff line number Diff line
---

# APT
- name: Install packages
  apt:
    state: present
    update_cache: yes
    install_recommends: no
    pkg:
      - rsyslog