more role organization.

tbd - make use of variables in root/main.yaml
This commit is contained in:
Pi
2019-02-21 12:21:11 -05:00
parent c712efa8db
commit aabd89fae8
6 changed files with 242 additions and 238 deletions

View File

@@ -1,5 +1,17 @@
---
- hosts: netflows
become: true
roles:
- netflows
- hosts: all
roles:
- common
- hosts: public
roles:
- public
- hosts: smbclient
roles:
- smbclient
- hosts: pi
roles:
- snmpd

View File

@@ -1,6 +1,4 @@
---
- hosts: all
tasks:
- name: Upgrade all packages o the latest version
become: true
apt:

View File

@@ -1,6 +1,4 @@
---
- hosts: public
tasks:
- name: Install ufw packages
package:
name: ufw

View File

@@ -0,0 +1,9 @@
---
- name: enable cron job for smb traffic
cron:
name: "smbtraff"
minute: "*/20"
hour: "7-18"
weekday: "1-5"
job: "/usr/bin/perl -e 'sleep int rand 1199' && /home/pi/scripts/smb-session.sh"
tags: smbtraff_cron

View File

@@ -1,11 +0,0 @@
---
- hosts: smbclient
tasks:
- name: enable cron job for smb traffic
cron:
name: "smbtraff"
minute: "*/20"
hour: "7-18"
weekday: "1-5"
job: "/usr/bin/perl -e 'sleep int rand 1199' && /home/pi/scripts/smb-session.sh"
tags: smbtraff_cron

View File

@@ -1,6 +1,4 @@
---
- hosts: pi
tasks:
- name: Install snmpd Package
become: yes
apt: