diff --git a/hosts b/hosts index 35a8e74..407e904 100644 --- a/hosts +++ b/hosts @@ -1,6 +1,7 @@ # list all of the raspberry PI devices in the network # the host name on each will be set to the first column # it can be 1-20 characters, letters, digits, and hyphens +# host1 ansible_host=1.2.3.4 site_clli=philpa17 wes-host1 ansible_host=192.168.88.217 wes-host2 ansible_host=192.168.88.240 wes-host3 ansible_host=192.168.88.218 @@ -74,3 +75,5 @@ wes-host2 [ntopng] # hosts running ntop +[ap] +# raspberry pi will act as an access point - needs "site_clli" set on host diff --git a/main.yaml b/main.yaml index a78d628..c718c74 100644 --- a/main.yaml +++ b/main.yaml @@ -52,3 +52,6 @@ - hosts: ntopng roles: - ntopng +- hosts: ap + roles: + - ap diff --git a/roles/wifi/files/dnsmasq.conf b/roles/ap/files/dnsmasq.conf similarity index 100% rename from roles/wifi/files/dnsmasq.conf rename to roles/ap/files/dnsmasq.conf diff --git a/roles/wifi/files/hostapd.conf b/roles/ap/files/hostapd.conf similarity index 100% rename from roles/wifi/files/hostapd.conf rename to roles/ap/files/hostapd.conf diff --git a/roles/wifi/files/iptables.ipv4.nat b/roles/ap/files/iptables.ipv4.nat similarity index 100% rename from roles/wifi/files/iptables.ipv4.nat rename to roles/ap/files/iptables.ipv4.nat diff --git a/roles/wifi/tasks/main.yaml b/roles/ap/tasks/main.yaml similarity index 100% rename from roles/wifi/tasks/main.yaml rename to roles/ap/tasks/main.yaml diff --git a/roles/wifi/templates/hostapd.conf.j2 b/roles/ap/templates/hostapd.conf.j2 similarity index 100% rename from roles/wifi/templates/hostapd.conf.j2 rename to roles/ap/templates/hostapd.conf.j2