Look, we can collapse this down to one line. Thanks Toshio
This commit is contained in:
parent
3b84d57b91
commit
acd33a7ff6
1 changed files with 1 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue