From bdc44ffaefa6446640315983e81b912d88bd1578 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Wed, 31 Oct 2012 05:17:45 +0000 Subject: [PATCH] add an f17-temp-instance playbook --- playbooks/f17-temp-instance.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 playbooks/f17-temp-instance.yml diff --git a/playbooks/f17-temp-instance.yml b/playbooks/f17-temp-instance.yml new file mode 100644 index 0000000000..fc124f3bd7 --- /dev/null +++ b/playbooks/f17-temp-instance.yml @@ -0,0 +1,33 @@ +- name: check/create instance + hosts: lockbox01.phx2.fedoraproject.org + user: root + gather_facts: False + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - ${private}/vars.yml + vars: + - keypair: admin + - image: emi-B5BA397D + - instance_type: m1.large + - security_group: default + + tasks: + - include: $tasks/transient_cloud.yml + +- name: provision instance + hosts: tmp_just_created + user: root + gather_facts: True + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - ${private}/vars.yml + - ${vars}/${ansible_distribution}.yml + + tasks: + - include: $tasks/cloud_setup_basic.yml + + + handlers: + - include: $handlers/restart_services.yml