mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-16 13:56:03 +08:00
Fix duplicate definition of become default that was in group_vars/all as well as vars/global.
30 lines
730 B
YAML
30 lines
730 B
YAML
- name: check/create instance
|
|
hosts: 209.132.184.157
|
|
user: root
|
|
gather_facts: False
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
|
|
tasks:
|
|
- include: "{{ tasks_path }}/persistent_cloud.yml"
|
|
- include: "{{ tasks_path }}/growroot_cloud.yml"
|
|
|
|
- name: provision instance
|
|
hosts: 209.132.184.157
|
|
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
|
|
|
|
tasks:
|
|
- include: "{{ tasks_path }}/cloud_setup_basic.yml"
|
|
- include: "{{ tasks_path }}/postfix_basic.yml"
|
|
|
|
handlers:
|
|
- include: "{{ handlers_path }}/restart_services.yml"
|