test.yml 494 B

123456789101112131415161718192021222324252627282930
  1. ---
  2. - hosts: all
  3. become: yes
  4. become_user: root
  5. become_method: sudo
  6. gather_facts: yes
  7. pre_tasks:
  8. - name: Update Apt Cache
  9. apt: update_cache=yes cache_valid_time=86400
  10. - name: Ubuntu Packages
  11. apt: >
  12. pkg={{item}}
  13. state=present
  14. with_items:
  15. - awscli
  16. - git
  17. - htop
  18. - iotop
  19. - vim
  20. - sysstat
  21. - tmux
  22. - tree
  23. - tcpdump
  24. - unzip
  25. - ntp
  26. roles:
  27. - redis-shoot-out