-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
50 lines (38 loc) · 1.02 KB
/
site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
- hosts: production
become: True
roles:
- role: debian
tags: debian
when: ansible_os_family == 'Debian'
- { role: common, tags: common }
- { role: ssmtp, tags: ssmtp, mail }
- { role: snmp, tags: snmp }
- { role: ntp, tags: ntp }
- { role: sshd, tags: sshd }
- { role: fail2ban, tags: fail2ban }
- { role: users, tags: users }
- role: vmware
tags: vmware
when: ansible_virtualization_type == 'VMware'
- hosts: cisco_tftp
become: True
roles:
- { role: cisco-phones, tags: [cisco, configure] }
- hosts: shell
become: True
roles:
- { role: shell, tags: [shell] }
- hosts: accesspoint
become: False
user: root
gather_facts: False # so we dont need python to start things goin
roles:
- { role: openwrt_common, tags: [accesspoint, setup]} # needed for ansible to work
- { role: accesspoint, tags: [accesspoint] }
- hosts: gather_logs
become: True
roles:
- role: send_logs
tags: logs
when: "'rudy' not in inventory_hostname"