-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommon.yml
executable file
·49 lines (43 loc) · 1.03 KB
/
common.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
#!/usr/bin/env -v -S ansible-playbook --flush-cache
# vim: set filetype=ansible:
---
- hosts: all:!unmanaged
tasks:
- name: Gather host type
setup:
- name: create ansible_distribution group
group_by:
key: "{{ ansible_distribution }}"
- hosts: all:!unmanaged
remote_user: "{{ deployment_user }}"
roles:
- { role: f500.dumpall, dumpall_flat_mode: yes, dumpall_host_destination: examine/ }
- name: Common Play
hosts: all:!unmanaged
roles:
- role: group_by
- role: common
- role: sudoers
- role: python
- role: ntp
- role: sshd
- role: deploy
- role: avahi
- { role: 'hostname', when: set_hostname is defined }
- role: unattended-upgrades
- hosts: Raspbian
remote_user: '{{ deployment_user }}'
tasks:
- name: install packages for Raspberry Pi
package:
name: "{{ item }}"
state: present
with_items:
- libcec3
- cec-util
- name: windows servers
hosts: windows
- name: Z-Wave
hosts: z-wave
roles:
- role: z-wave