From ef137489a2af825da682169ed3a532c452e4f68c Mon Sep 17 00:00:00 2001 From: Ivan Dolgov Date: Tue, 13 Sep 2016 11:51:32 +0300 Subject: Add hotspot --- ansible/roles/hotspot/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ansible/roles/hotspot/tasks/main.yml (limited to 'ansible/roles/hotspot/tasks/main.yml') diff --git a/ansible/roles/hotspot/tasks/main.yml b/ansible/roles/hotspot/tasks/main.yml new file mode 100644 index 0000000..b2be8ee --- /dev/null +++ b/ansible/roles/hotspot/tasks/main.yml @@ -0,0 +1,15 @@ +- name: install hotspot dependencies + apt: name={{ item }} state=present + with_items: + - firmware-ralink + - iw + - wireless-tools + - hostapd + +- name: copy hostapd conf + template: src=hostapd.conf.j2 dest=/etc/hostapd/hostapd.conf + notify: restart hostapd + +- name: copy default hostapd conf + copy: src=hostapd dest=/etc/default/hostapd + notify: restart hostapd -- cgit v1.2.1