mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
setup installing dnsmasq
This commit is contained in:
parent
1267c1e19c
commit
f6e16fea68
2 changed files with 16 additions and 4 deletions
|
@ -16,10 +16,10 @@
|
||||||
when: openvpn_install
|
when: openvpn_install
|
||||||
tags: openvpn
|
tags: openvpn
|
||||||
|
|
||||||
#- name: Configuring wondershaper
|
- name: Installing dnsmasq
|
||||||
# include_tasks: roles/network/tasks/wondershaper.yml
|
include_tasks: roles/network/tasks/dnsmasq.yml
|
||||||
# when: wondershaper_install
|
when: dnsmasq_install
|
||||||
# tags: wondershaper, network
|
tags: base, domain, dnsmasq, network
|
||||||
|
|
||||||
- name: Installing named
|
- name: Installing named
|
||||||
include_tasks: roles/network/tasks/named.yml
|
include_tasks: roles/network/tasks/named.yml
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
- name: Install dnsmasq
|
- name: Install dnsmasq
|
||||||
package: name=dnsmasq state=present
|
package: name=dnsmasq state=present
|
||||||
|
|
||||||
|
- name: Stop dnsmasq
|
||||||
|
service:
|
||||||
|
name: dnsmasq
|
||||||
|
state: stopped
|
||||||
|
|
||||||
- name: Configure dhcpd
|
- name: Configure dhcpd
|
||||||
template: src={{ item.src }}
|
template: src={{ item.src }}
|
||||||
dest={{ item.dest }}
|
dest={{ item.dest }}
|
||||||
|
@ -9,4 +14,11 @@
|
||||||
mode={{ item.mode }}
|
mode={{ item.mode }}
|
||||||
with_items:
|
with_items:
|
||||||
- { src: 'network/dnsmasq.service.rh', dest: '/etc/systemd/system/dnsmasq.service', mode: '0644' }
|
- { src: 'network/dnsmasq.service.rh', dest: '/etc/systemd/system/dnsmasq.service', mode: '0644' }
|
||||||
|
- { src: 'network/dnsmasq.conf.j2' dest: '/etc/dnsmasq.conf' mode: '644' }
|
||||||
|
|
||||||
|
- name: Start dnsmasq
|
||||||
|
systemd:
|
||||||
|
name: dnsmasq
|
||||||
|
state: restarted
|
||||||
|
enabled: yes
|
||||||
|
daemon_reload: yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue