Files
fedora-infra_ansible/playbooks/groups/copr-frontend.yml
Greg Sutcliffe cf9f2d9442 Zabbix: Add copr-* hosts to zabbix role
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-09-29 17:10:08 +01:00

58 lines
1.4 KiB
YAML

---
- name: Check/create instance
hosts: copr_front_dev_aws:copr_front_aws
user: root
gather_facts: false
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
tasks:
# - import_tasks: "{{ tasks_path }}/persistent_cloud.yml"
# when: datacenter != "aws"
- import_tasks: "{{ tasks_path }}/aws_cloud.yml"
when: datacenter == "aws"
tags: always
- import_tasks: "{{ tasks_path }}/swap.yml"
when:
- datacenter == 'aws'
- swap_file_size_mb is defined
- name: Cloud basic setup
hosts: copr_front_dev_aws:copr_front_aws
gather_facts: true
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/cloud_setup_basic.yml"
- name: Set hostname (required by some services, at least postfix need it)
hostname: name="{{copr_hostbase}}.cloud.fedoraproject.org"
when: datacenter != "aws"
- name: Provision instance
hosts: copr_front_dev_aws:copr_front_aws
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:
- copr/pre
- base
- nagios_client
- zabbix/zabbix_agent
- copr/frontend