---
# Warning: radvd installation seems to fail if the configuration
# file doesn't already exist when the package is installed,
# so the order is important.
- name: Configure radvd
  template:
    src: radvd.conf.j2
    dest: /etc/radvd.conf
    mode: 0644
  notify: restart radvd
  tags:
    - radconf

- name: Install radvd
  apt:
    update_cache: true
    name: radvd
    state: present
  notify: restart radvd