29 lines
647 B
YAML
29 lines
647 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: Copy resolv.conf
|
|
copy:
|
|
src: resolv.conf
|
|
dest: /etc/resolv.conf
|
|
- name: Update repositories
|
|
apt:
|
|
autoremove: true
|
|
upgrade: yes
|
|
state: latest
|
|
update_cache: yes
|
|
cache_valid_time: 86400 # One day
|
|
- name: Install packages
|
|
apt:
|
|
pkg:
|
|
- qemu-guest-agent
|
|
- dnsutils
|
|
roles:
|
|
- {role: 'dnsmasq', tags: 'dnsmasq'}
|
|
- {role: 'nsd', tags: 'nsd'}
|
|
- {role: 'ca', tags: 'ca'}
|