Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: localhost
- connection: local
- gather_facts: False
- tasks:
- - name: Launch the new EC2 Instance
- ec2:
- ...
- register: instance
- - name: Wait for SSH to come up
- delegate_to: "{{ instance.instances[0].private_ip_address }} "
- wait_for_connection:
- delay: 60
- timeout: 320
- - hosts: "{{ tag_name }}"
- gather_facts: True
- become: True
- tasks:
- - name: Configure instance(s)
- hosts:
- yum:
- name: "{{ packages }}"
- vars:
- packages:
- - docker
- - htop
- - nano
- - python3
- - python3-pip
- - mariadb
- - ncdu
- - nmap
- - screen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement