playbook/roles/common/tasks/main.yml: update
This commit is contained in:
parent
edad9201ad
commit
66fe670e96
@ -14,9 +14,9 @@
|
||||
shell: 'echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf; echo "net.ipv4.conf.all.proxy_arp = 1" >> /etc/sysctl.conf ; sysctl -p /etc/sysctl.conf'
|
||||
|
||||
- name: Install packages
|
||||
shell: "apt install -y auditd"
|
||||
when: (ansible_facts['distribution'] == "Ubuntu") or (ansible_facts['distribution'] == "Debian")
|
||||
|
||||
- name: Install packages
|
||||
shell: "yum makecache && yum install -y audit"
|
||||
when: (ansible_facts['distribution'] != "Ubuntu") or (ansible_facts['distribution'] != "Debian")
|
||||
shell: "apt update && apt install -y auditd"
|
||||
# when: (ansible_facts['distribution'] == "Ubuntu") or (ansible_facts['distribution'] == "Debian")
|
||||
#
|
||||
#- name: Install packages
|
||||
# shell: "yum makecache && yum install -y audit"
|
||||
# when: (ansible_facts['distribution'] != "Ubuntu") or (ansible_facts['distribution'] != "Debian")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user