rsyslog: move variables in playbook

This commit is contained in:
Alexandre Iooss 2021-11-28 17:09:16 +01:00
parent b3f25e2c8b
commit 74871c1ea8
3 changed files with 17 additions and 16 deletions

View file

@ -102,9 +102,4 @@ borg_backup_exclude:
borg_encryption_passphrase: "{{ vault_borg_encryption_passphrase }}" borg_encryption_passphrase: "{{ vault_borg_encryption_passphrase }}"
borg_server_host: 10.128.0.4 borg_server_host: 10.128.0.4
rsyslog_outputs:
- proto: relp
address: 10.128.0.241
port: 20514
... ...

View file

@ -3,14 +3,4 @@ borg_backup_directories:
- "/etc/" - "/etc/"
- "/var/" - "/var/"
borg_backup_exclude: [] borg_backup_exclude: []
rsyslog_collector_base_dir: /var/log/remote
rsyslog_inputs:
- proto: relp
port: 20514
- proto: udp
port: 514
- proto: tcp
port: 6514
rsyslog_outputs: []
... ...

View file

@ -1,10 +1,26 @@
#!/usr/bin/env ansible-playbook #!/usr/bin/env ansible-playbook
--- ---
- hosts: log.adm.auro.re - hosts: log.adm.auro.re
vars:
rsyslog_collector_base_dir: /var/log/remote
rsyslog_inputs:
- proto: relp
port: 20514
- proto: udp
port: 514
- proto: tcp
port: 6514
rsyslog_outputs: []
roles: roles:
- rsyslog_common
- rsyslog_collector - rsyslog_collector
- hosts: all,!unifi - hosts: all,!log.adm.auro.re,!unifi
vars:
rsyslog_outputs:
- proto: relp
address: 10.128.0.241
port: 20514
roles: roles:
- rsyslog_common - rsyslog_common
... ...