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
|
||||
tags: openvpn
|
||||
|
||||
#- name: Configuring wondershaper
|
||||
# include_tasks: roles/network/tasks/wondershaper.yml
|
||||
# when: wondershaper_install
|
||||
# tags: wondershaper, network
|
||||
- name: Installing dnsmasq
|
||||
include_tasks: roles/network/tasks/dnsmasq.yml
|
||||
when: dnsmasq_install
|
||||
tags: base, domain, dnsmasq, network
|
||||
|
||||
- name: Installing named
|
||||
include_tasks: roles/network/tasks/named.yml
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
- name: Install dnsmasq
|
||||
package: name=dnsmasq state=present
|
||||
|
||||
- name: Stop dnsmasq
|
||||
service:
|
||||
name: dnsmasq
|
||||
state: stopped
|
||||
|
||||
- name: Configure dhcpd
|
||||
template: src={{ item.src }}
|
||||
dest={{ item.dest }}
|
||||
|
@ -9,4 +14,11 @@
|
|||
mode={{ item.mode }}
|
||||
with_items:
|
||||
- { 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
Reference in a new issue