-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.yml
More file actions
34 lines (30 loc) · 811 Bytes
/
site.yml
File metadata and controls
34 lines (30 loc) · 811 Bytes
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
---
# Run a play agains all hosts without facts
- hosts: all
gather_facts: False
roles:
- icinga-checks
# Only run this against managed hosts
- hosts: all:!unmanaged
roles:
- ntpd
tasks:
- name: Debian | Install packages on all servers
apt: name={{ item }} state=present
with_items:
- emacs
- vim
- sharutils
when: ansible_os_family == "Debian"
- name: RedHat | Install packages on all servers
yum: name={{ item }} state=present
with_items:
- emacs
- vim
- sharutils
when: ansible_os_family == "RedHat"
# Do this on special groups of servers
- include: playbooks/shellserver/site.yml
- include: playbooks/kvmserver/site.yml
- include: playbooks/fileserver/site.yml
- include: playbooks/lxd/site.yml