From 7ff612ed8c682bee7f7ab998c01a20bbc993835e Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Tue, 6 Nov 2012 19:20:11 +0000 Subject: [PATCH] add twistedbots group to inventory add twistedbots playbook --- inventory/inventory | 2 ++ playbooks/groups/twistedbots.yml | 34 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 playbooks/groups/twistedbots.yml diff --git a/inventory/inventory b/inventory/inventory index 3cfc5e67e9..f432cf7e91 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -296,6 +296,8 @@ virthost-comm01.qa.fedoraproject.org [persistent-cloud] # copr-be.cloud.fedoraproject.org 209.132.184.100 + +[twistebots] #rhel6 twisted testbot - ticket 3537 209.132.184.111 #f17 twisted testbot - ticket 3537 diff --git a/playbooks/groups/twistedbots.yml b/playbooks/groups/twistedbots.yml new file mode 100644 index 0000000000..d4f2900743 --- /dev/null +++ b/playbooks/groups/twistedbots.yml @@ -0,0 +1,34 @@ +- name: check/create instances for twistedbots + hosts: twistedbots + user: root + gather_facts: False + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - ${private}/vars.yml + + tasks: + - include: $tasks/persistent_cloud.yml + +- name: provision instance + hosts: twistedbots + 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 + + # packages needed + - name: add packages for them + action: yum state=present name=$item + with_items: + - rsync + - openssh-clients + + handlers: + - include: $handlers/restart_services.yml