Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. ---
  2. - hosts: localhost
  3. connection: local
  4. gather_facts: False
  5.  
  6. tasks:
  7.  
  8. - name: Launch the new EC2 Instance
  9. ec2:
  10. ...
  11. register: instance
  12.  
  13. - name: Wait for SSH to come up
  14. delegate_to: "{{ instance.instances[0].private_ip_address }} "
  15. wait_for_connection:
  16. delay: 60
  17. timeout: 320
  18.  
  19. - hosts: "{{ tag_name }}"
  20. gather_facts: True
  21. become: True
  22.  
  23. tasks:
  24. - name: Configure instance(s)
  25. hosts:
  26.  
  27. yum:
  28. name: "{{ packages }}"
  29. vars:
  30. packages:
  31. - docker
  32. - htop
  33. - nano
  34. - python3
  35. - python3-pip
  36. - mariadb
  37. - ncdu
  38. - nmap
  39. - screen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement