mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
33 lines
811 B
YAML
33 lines
811 B
YAML
---
|
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
|
vars:
|
|
myhosts: "zabbix_stg:zabbix"
|
|
|
|
- name: Make the box be real
|
|
hosts: zabbix_stg:zabbix
|
|
user: root
|
|
gather_facts: true
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
roles:
|
|
- base
|
|
- rkhunter
|
|
- hosts
|
|
- ipa/client
|
|
- collectd/base
|
|
- sudo
|
|
- { role: zabbix/zabbix_server, tags: zabbix_server }
|
|
- { role: zabbix/zabbix_agent, tags: zabbix_agent }
|
|
- { role: zabbix/sslchecks, tags: zabbix_api }
|
|
- { role: openvpn/client, when: env != "staging" }
|
|
|
|
pre_tasks:
|
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
|
|
|
handlers:
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|