From acd33a7ff65540618dfd337d918e3beb1300a8cf Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 14 Aug 2015 18:26:33 +0000 Subject: [PATCH] Look, we can collapse this down to one line. Thanks Toshio --- playbooks/groups/fedocal.yml | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/playbooks/groups/fedocal.yml b/playbooks/groups/fedocal.yml index 9f0252d136..7d9a060779 100644 --- a/playbooks/groups/fedocal.yml +++ b/playbooks/groups/fedocal.yml @@ -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