commit dca057d47897b44f97c7150444c14e6783677baa
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Wed Nov 23 20:58:14 2016 +0100
Add moin playbook
playbooks/groups/moin.yml | 50 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
---
diff --git a/playbooks/groups/moin.yml b/playbooks/groups/moin.yml
new file mode 100644
index 0000000..7bdb014
--- /dev/null
+++ b/playbooks/groups/moin.yml
@@ -0,0 +1,50 @@
+# create a new moin 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/moin* or from hostvars
+- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml
myhosts=moin:moin-stg"
+
+- name: make the box be real
+ hosts: moin-stg:moin
+ user: root
+ gather_facts: True
+
+ vars_files:
+ - /srv/web/infra/ansible/vars/global.yml
+ - "/srv/private/ansible/vars.yml"
+ - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
+
+ roles:
+ - base
+ - rkhunter
+ - nagios/client
+ - hosts
+ - fas_client
+ - collectd/base
+ - sudo
+ - apache
+
+ tasks:
+ - include: "{{ tasks }}/yumrepos.yml"
+ - include: "{{ tasks }}/2fa_client.yml"
+ - include: "{{ tasks }}/motd.yml"
+
+ handlers:
+ - include: "{{ handlers }}/restart_services.yml"
+
+
+- name: deploy moin itself
+ hosts: moin-stg:moin
+ user: root
+ gather_facts: True
+
+ vars_files:
+ - /srv/web/infra/ansible/vars/global.yml
+ - "/srv/private/ansible/vars.yml"
+ - "{{ vars_path }}/{{ ansible_distribution }}.yml"
+
+ roles:
+ - moin
+
+ handlers:
+ - include: "{{ handlers }}/restart_services.yml"
Show replies by date