forked from dj-wasabi/ansible-zabbix-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
35 lines (32 loc) · 932 Bytes
/
playbook.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
---
- hosts: all
pre_tasks:
- name: "Installing which"
action: yum
name={{ item }}
state=installed
with_items:
- net-tools
- which
- libselinux-python
register: installation_dependencies
- name: "Configure SUDO."
lineinfile:
dest: /etc/sudoers
line: "Defaults !requiretty"
state: present
changed_when: installation_dependencies.changed
- name: "Make sure the docs are installed."
lineinfile:
dest: /etc/yum.conf
line: "tsflags=nodocs"
state: absent
changed_when: installation_dependencies.changed
roles:
- role: galaxyprojectdotorg.postgresql
when: inventory_hostname in groups['postgresql']
ignore_errors: True
- role: geerlingguy.mysql
when: inventory_hostname in groups['mysql']
ignore_errors: True
- role: ansible-zabbix-server