Repos with recipes to deploy some infrastructure services
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

31 řádky
759 B

  1. ---
  2. - import_playbook: playbook_ssh_known_host.yml
  3. - name: Configure NTP server
  4. hosts:
  5. - all
  6. gather_facts: yes
  7. vars_files:
  8. - vars/ntp.yml
  9. pre_tasks:
  10. - apt:
  11. name: '*'
  12. update_cache: true
  13. only_upgrade: true
  14. state: latest
  15. when: ansible_facts.os_family == "Debian"
  16. become: true
  17. become_method: sudo
  18. - yum:
  19. name: '*'
  20. update_cache: true
  21. security: true
  22. state: latest
  23. update_only: true
  24. when: ansible_facts.os_family == "RedHat"
  25. become: true
  26. become_method: sudo
  27. roles:
  28. - {role: ntp_server, tags: ["ntp"], become: true, become_method: sudo}
  29. - {role: iptables, become: true, become_method: sudo}
  30. ...