25 lines
565 B
YAML
25 lines
565 B
YAML
- name: Wait for cloud-init to finish
|
|
hosts: all
|
|
gather_facts: no
|
|
roles:
|
|
- cloudinit_wait
|
|
|
|
- name: Install services
|
|
hosts: all
|
|
pre_tasks:
|
|
- name: Delete externally managed environment file
|
|
shell:
|
|
cmd: "rm /usr/lib/python*/EXTERNALLY-MANAGED"
|
|
register: rm
|
|
changed_when: "rm.rc == 0"
|
|
failed_when: "false"
|
|
|
|
- name: Copy resolv.conf
|
|
copy:
|
|
src: resolv.conf
|
|
dest: /etc/resolv.conf
|
|
|
|
roles:
|
|
- {role: apt, tags: apt}
|
|
- {role: dnsmasq, tags: dnsmasq}
|
|
- {role: bertvv.bind, tags: bind}
|