1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Merge pull request #88 from iiab/master

sync from iiab/iiab
This commit is contained in:
A Holt 2018-06-14 17:39:32 -04:00 committed by GitHub
commit 1e556aac2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 20 deletions

View file

@ -1,24 +1,27 @@
- name: Install dnsmasq
package: name=dnsmasq state=present
- name: Stop dnsmasq
service:
package:
name: dnsmasq
state: stopped
state: present
- name: Configure dhcpd
template: src={{ item.src }}
dest={{ item.dest }}
owner=root
group=root
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: Stop dnsmasq
# service:
# name: dnsmasq
# state: stopped
- name: Start dnsmasq
systemd:
name: dnsmasq
state: restarted
enabled: yes
daemon_reload: yes
#- name: Configure dnsmasq
# template:
# src: "{{ item.src }}"
# dest: "{{ item.dest }}"
# owner: root
# group: root
# mode: "{{ item.mode }}"
# with_items:
## - { src: 'network/dnsmasq.service.rh', dest: '/etc/systemd/system/dnsmasq.service', mode: '0644' }
# - { src: 'roles/network/templates/network/dnsmasq.conf.j2', dest: '/etc/dnsmasq.conf', mode: '644' }
#- name: Start dnsmasq
# systemd:
# name: dnsmasq
# state: restarted
# enabled: yes
# daemon_reload: yes

View file

@ -104,6 +104,14 @@ named_install: True
named_enabled: True
block_DNS: False
# dnsmasq
dnsmasq_install: False
dnsmasq_enabled: False
# Captive Portal highly experimental as of June 2018: https://github.com/iiab/iiab/issues/608
captive_portal_install: False
captive_portal_enabled: False
# Squid
squid_install: False
squid_enabled: False