Files
fedora-infra_ansible/playbooks/groups/logdetective.yml
Pavel Raiskup d217ab4b30 logdetective: another workaround
Skip the whole include.
2025-09-29 17:04:07 +02:00

43 lines
1.0 KiB
YAML

---
- name: Check/create instance
hosts: logdetective
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 }}/aws_cloud.yml"
when: datacenter == 'aws'
- import_tasks: "{{ tasks_path }}/swap.yml"
when:
- datacenter == 'aws'
- swap_file_size_mb is defined
- name: Provision instance
hosts: logdetective
become: true
become_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
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
# Roles are run first, before tasks, regardless of where you place them here.
roles:
- base
- logdetective
- nagios_client