Files
ansible-role-common/tasks/resolvconf.yml
Farhad Shahbazi acc8f15e9e initial commit
2016-03-05 16:30:21 +01:00

17 lines
472 B
YAML

---
- name: resolvconf - install
apt: name=resolvconf state=present
tags: ['common', 'resolvconf']
- name: resolvconf - tail file
template: dest=/etc/resolvconf/resolv.conf.d/tail src=resolvconf_tail.j2 owner=root group=root mode=0644
when: common_resolvconf_nameservers
notify: restart resolvconf
tags: ['common', 'resolvconf']
- name: resolvconf - start and enable
service: name=resolvconf state=started enabled=yes
tags: ['common', 'resolvconf']