mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-15 07:59:53 +08:00
Look, we can collapse this down to one line. Thanks Toshio
This commit is contained in:
@@ -1,23 +1,4 @@
|
||||
# create a new fedocal server
|
||||
# NOTE: should be used with --limit most of the time
|
||||
# NOTE: make sure there is room/space for this server on the vmhost
|
||||
# NOTE: most of these vars_path come from group_vars/fedocal* or from hostvars
|
||||
|
||||
- name: make fedocal
|
||||
hosts: fedocal-stg;fedocal
|
||||
user: root
|
||||
gather_facts: False
|
||||
|
||||
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 }}/virt_instance_create.yml"
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=fedocal-stg:fedocal"
|
||||
|
||||
- name: make the box be real
|
||||
hosts: fedocal-stg;fedocal
|
||||
|
||||
Reference in New Issue
Block a user