summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2016-01-22 09:40:00 +0000
committerPatrick Uiterwijk <puiterwijk@redhat.com>2016-01-22 09:40:16 +0000
commit03959b78b7c143ea42e51417ed12a53be070e032 (patch)
treeb80213ebbb9774500254eb2d8cea6e8fc968aa47 /playbooks
parent3c3fb623a696afe4cd5b567126e4f0bae6570322 (diff)
downloadansible-03959b78b7c143ea42e51417ed12a53be070e032.tar.gz
ansible-03959b78b7c143ea42e51417ed12a53be070e032.tar.xz
ansible-03959b78b7c143ea42e51417ed12a53be070e032.zip
Create regcfp instance
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/hosts/regcfp.fedorainfracloud.org.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/playbooks/hosts/regcfp.fedorainfracloud.org.yml b/playbooks/hosts/regcfp.fedorainfracloud.org.yml
new file mode 100644
index 000000000..29dc04350
--- /dev/null
+++ b/playbooks/hosts/regcfp.fedorainfracloud.org.yml
@@ -0,0 +1,40 @@
+- name: check/create instance
+ hosts: regcfp.fedorainfracloud.org
+ gather_facts: False
+
+ vars_files:
+ - /srv/web/infra/ansible/vars/global.yml
+ - /srv/private/ansible/vars.yml
+ - /srv/web/infra/ansible/vars/fedora-cloud.yml
+ - /srv/private/ansible/files/openstack/passwords.yml
+
+ tasks:
+ - include: "{{ tasks }}/persistent_cloud.yml"
+
+- name: setup all the things
+ hosts: regcfp.fedorainfracloud.org
+ gather_facts: True
+ vars_files:
+ - /srv/web/infra/ansible/vars/global.yml
+ - /srv/private/ansible/vars.yml
+ - /srv/private/ansible/files/openstack/passwords.yml
+ - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
+
+ pre_tasks:
+ - include: "{{ tasks }}/cloud_setup_basic.yml"
+ - name: set hostname (required by some services, at least postfix need it)
+ shell: "hostname {{inventory_hostname}}"
+
+ tasks:
+ - name: add packages
+ yum: state=present name={{ item }}
+ with_items:
+ - httpd
+ - postgresql
+ - postgresql-server
+ - mod_ssl
+ - wget
+ - unzip
+
+ - name: enable httpd service
+ service: name=httpd enabled=yes state=started