25 lines
557 B
YAML
25 lines
557 B
YAML
- name: Setup homeserver
|
|
hosts: max
|
|
gather_facts: no
|
|
|
|
pre_tasks:
|
|
- name: Wait for host to come up
|
|
wait_for:
|
|
state: started
|
|
port: 22
|
|
host: max2.dmz
|
|
timeout: 10
|
|
connect_timeout: 300
|
|
search_regex: OpenSSH
|
|
delegate_to: localhost
|
|
- name: Wait for cloud-init to finish
|
|
command:
|
|
cmd: cloud-init status --wait
|
|
register: cloudinit
|
|
changed_when: "'..' in cloudinit.stdout"
|
|
- name: Gather facts
|
|
setup:
|
|
|
|
roles:
|
|
- {role: 'common', tags: 'common'}
|
|
- {role: 'docker', tags: 'docker'}
|