- name: Wait for cloud-init to finish
hosts: all
gather_facts: no
roles:
- 'cloudinit-wait'
- name: Install services
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
pkg:
- qemu-guest-agent
- dnsutils
- {role: 'dnsmasq', tags: 'dnsmasq'}
- {role: 'nsd', tags: 'nsd'}
- {role: 'ca', tags: 'ca'}