Rename gw group to dnagw
This commit is contained in:
parent
9f86ecc099
commit
d89515e3aa
3 changed files with 7 additions and 7 deletions
48
playbooks/dna-gw.yml
Normal file
48
playbooks/dna-gw.yml
Normal file
|
@ -0,0 +1,48 @@
|
|||
---
|
||||
- import_playbook: "include/deploy-kvm-guest.yml myhosts=dnagw"
|
||||
|
||||
- name: configure instance
|
||||
hosts: dnagw
|
||||
user: root
|
||||
gather_facts: true
|
||||
|
||||
vars_files:
|
||||
- "{{ ansible_private }}/vars.yml"
|
||||
|
||||
roles:
|
||||
- base
|
||||
- ifstated
|
||||
- dhcpd
|
||||
- tftp
|
||||
|
||||
tasks:
|
||||
- name: use configured dns servers and domain name
|
||||
copy:
|
||||
dest: /etc/dhclient.conf
|
||||
content: "ignore domain-name-servers, domain-name;"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: enable ip forwarding
|
||||
sysctl:
|
||||
name: "{{ item }}"
|
||||
sysctl_set: true
|
||||
value: "1"
|
||||
with_items:
|
||||
- net.inet.ip.forwarding
|
||||
- net.inet6.ip6.forwarding
|
||||
|
||||
- name: copy dns zone files
|
||||
copy:
|
||||
dest: "/var/unbound/db/{{ item }}"
|
||||
src: "/srv/dns/{{ item }}"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
notify: restart unbound
|
||||
with_items:
|
||||
- 20.172.in-addr.arpa
|
||||
- home.foo.sh
|
||||
- import_role:
|
||||
name: unbound
|
Loading…
Add table
Add a link
Reference in a new issue