1
0

playbook.yml 552 B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. - hosts: all
  3. gather_facts: yes
  4. vars_files:
  5. - vars/vault.yml
  6. - vars/main.yml
  7. pre_tasks:
  8. - name: Update apt cache if needed.
  9. apt:
  10. update_cache: yes
  11. cache_valid_time: 3600
  12. upgrade: yes
  13. force_apt_get: yes
  14. become: yes
  15. - name: get the apt package facts
  16. package_facts:
  17. manager: "auto"
  18. - name: Install the package "sudo"
  19. apt:
  20. name: sudo
  21. state: present
  22. roles:
  23. - { role: node}
  24. - { role: postgres}
  25. - { role: jsstats}
  26. - { role: nginx}