-change hosts file - will maintain hosts file on multipe machines.
for the scope of this type of demo network, this is much simpler than installing and managing dns.
This commit is contained in:
@@ -6,27 +6,14 @@
|
||||
state: absent
|
||||
purge: true
|
||||
tags: remove_wpasupplicant
|
||||
- lineinfile:
|
||||
path: /etc/snmp/snmpd.conf
|
||||
state: present
|
||||
backrefs: yes
|
||||
regexp: "{{ item.regexp }}"
|
||||
line: "{{ item.line }}"
|
||||
with_items:
|
||||
- { regexp: '^\s+rocommunity\s+public\s+default\s+-V\s+systemonly', line: ' rocommunity {{ rocommunity }}' }
|
||||
- { regexp: '^agentAddress\s+udp:127.0.0.1:161', line: 'agentAddress udp:161' }
|
||||
tags: configure_snmpd
|
||||
become: true
|
||||
- name: enable snmpd service and ensure it is not masked
|
||||
systemd:
|
||||
name: snmpd
|
||||
enabled: yes
|
||||
masked: no
|
||||
state: restarted
|
||||
tags: enablestart_snmpd
|
||||
become: true
|
||||
- name: set timezone
|
||||
become: true
|
||||
timezone:
|
||||
name: America/New_York
|
||||
tags: set_timezone
|
||||
# configure wlan0
|
||||
# install hostapd
|
||||
# configure hostapd
|
||||
# /etc/default/hostapd
|
||||
# enable hostapd
|
||||
# install dnsmasq
|
||||
# configure dnsmasq
|
||||
# enable dnsmasq
|
||||
# enable ipv4.forwarding
|
||||
# copy fw config
|
||||
# iptables-restore to rc.local
|
||||
|
||||
Reference in New Issue
Block a user