mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
---
|
|
- name: Setup copr hypervisor hosts
|
|
hosts: copr_hypervisor
|
|
user: root
|
|
gather_facts: true
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "{{ private }}/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
pre_tasks:
|
|
- include_role: name=copr/reboot
|
|
tags: always
|
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
|
|
|
- name: override nbde_client-network-flush to work around bug
|
|
ansible.builtin.copy:
|
|
src: "{{ files }}/common/nbde_client-network-flush"
|
|
dest: /usr/bin/nbde_client-network-flush
|
|
owner: root
|
|
group: root
|
|
mode: 755
|
|
|
|
- name: tell NetworkManager we don't want any auto connections
|
|
ansible.builtin.copy:
|
|
src: "{{ files }}/common/noautodefault.conf"
|
|
dest: /etc/NetworkManager/conf.d/noautodefault.conf
|
|
owner: root
|
|
group: root
|
|
mode: 644
|
|
|
|
tasks:
|
|
- import_role: name=base
|
|
- import_role: name=hosts
|
|
- import_role: name=rkhunter
|
|
- import_role: name=nagios_client
|
|
- import_role: name=openvpn/client
|
|
- import_role: name=zabbix/zabbix_agent
|
|
- import_role: name=ipa/client
|
|
- import_role:
|
|
name: copr/hypervisor
|
|
tags: copr_hypervisor
|
|
- {import_role: name=linux-system-roles.nbde_client, tags: ['nbde_client'], when: (nbde|bool) }
|
|
|
|
|
|
handlers:
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|