Repos with recipes to deploy some infrastructure services
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

34 lignes
917 B

  1. ---
  2. - name: Prepare the Molecule Test Resources
  3. hosts: pdns
  4. tasks:
  5. # Make sure the default MySQL and SQLite
  6. # schemas are installed in /usr/share/doc/
  7. - name: Disable the YUM 'nodocs' option
  8. lineinfile:
  9. line: tsflags=nodocs
  10. dest: /etc/yum.conf
  11. state: absent
  12. when: ansible_pkg_mgr == 'yum'
  13. - name: Disable the APT 'nodoc' option
  14. lineinfile:
  15. line: path-exclude=/usr/share/doc/*
  16. dest: /etc/dpkg/dpkg.cfg.d/excludes
  17. state: absent
  18. # Install rsyslog to capture the PDNS log messages
  19. # when the service is not managed by systemd
  20. - block:
  21. - name: Install rsyslog
  22. package:
  23. name: rsyslog
  24. state: present
  25. - name: Start rsyslog
  26. service:
  27. name: rsyslog
  28. state: started
  29. when: ansible_service_mgr != 'systemd'