From c3219158ec0151c3d30b941e25f6c33543edfaa4 Mon Sep 17 00:00:00 2001 From: Pi Date: Fri, 2 Aug 2019 13:45:28 -0400 Subject: [PATCH] - change "wifi" role to "ap" --- hosts | 3 +++ main.yaml | 3 +++ roles/{wifi => ap}/files/dnsmasq.conf | 0 roles/{wifi => ap}/files/hostapd.conf | 0 roles/{wifi => ap}/files/iptables.ipv4.nat | 0 roles/{wifi => ap}/tasks/main.yaml | 0 roles/{wifi => ap}/templates/hostapd.conf.j2 | 0 7 files changed, 6 insertions(+) rename roles/{wifi => ap}/files/dnsmasq.conf (100%) rename roles/{wifi => ap}/files/hostapd.conf (100%) rename roles/{wifi => ap}/files/iptables.ipv4.nat (100%) rename roles/{wifi => ap}/tasks/main.yaml (100%) rename roles/{wifi => ap}/templates/hostapd.conf.j2 (100%) 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