You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 年之前
12345678910111213
  1. ---
  2. - name: Install logwatch
  3. yum: name=logwatch state=present
  4. when: ansible_distribution == 'CentOS'
  5. - name: Install logwatch on Ubuntu or Debian
  6. apt: name=logwatch state=present
  7. when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
  8. - name: Copy logwatch config
  9. template: src=logwatch.conf.j2 dest=/etc/logwatch/conf/logwatch.conf backup=yes
  10. when: admin_emails is defined
  11. ...