Initial run at youtue and facebook traffic generation.

Directory creation.
This commit is contained in:
Pi
2019-02-25 13:34:19 -05:00
parent eab6e47804
commit 662b6258ee
5 changed files with 62 additions and 2 deletions

32
roles/wifi/tasks/main.yaml Executable file
View File

@@ -0,0 +1,32 @@
---
- name: Remove wpasupplicant package
become: yes
apt:
name: ['wpasupplicant']
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