-
Notifications
You must be signed in to change notification settings - Fork 1
/
provision.yml
52 lines (46 loc) · 1.58 KB
/
provision.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
- hosts: mw_hosts
# use strategy: debug when you want to debug your playbook
# strategy: debug
# remote_user: root
gather_facts: true
vars_files:
- defaults/main.yml
- vars.yml
pre_tasks:
- name: Record hostname if not defined
set_fact:
wiki_hostname: "{{ inventory_hostname }}"
when: wiki_hostname is undefined
# host={{ wiki_hostname | default(inventory_hostname) }}
# register the Apache User from defaults/main.yml
# to make it available to other included tasks and plays
- name : Record our Apache user
set_fact:
apache_user: "{{ apache_user }}"
- name: Wait for new host to come up
local_action: wait_for host={{ ansible_ssh_host }} port=22 state=started delay=0
tags: [connect]
- setup:
- include: tasks/swap.yml
tags: [whitebox, disk]
- include: tasks/software.yml
tags: [whitebox, packages]
# temporarily disable the security bits until after the box is built
#- include: tasks/security.yml
#tags: [whitebox, security]
- include: tasks/users.yml
tags: [whitebox, users]
handlers:
- include: handlers/site.yml
# install all the goodness
roles:
- { role: install_git, tags: ["qualitybox", "git"] }
- { role: nodejs, tags: ["qualitybox", "nodejs"] }
- { role: qualitybox, tags: ["qualitybox", "mediawiki"] }
# Add more plays to the playbook
- include: install_mediawiki.yml
- include: install_extensions.yml
- include: install_skins.yml
# finally create the wiki
# - include: create_new_wiki.yml
# - vars: WIKI_NAME=slicerwiki