-
Notifications
You must be signed in to change notification settings - Fork 1
/
site.yml
66 lines (63 loc) · 1.78 KB
/
site.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
- hosts: all
become: True
pre_tasks:
- name: Create directories and clone repos
block:
- name: Ensure plone group
group:
name: plone_group
- name: Ensure plone buildout user
user:
name: plone_buildout
group: plone_group
generate_ssh_key: yes
- name: Ensure plone daemon user
user:
name: plone_daemon
group: plone_group
- name: Create directories
file:
path: "{{ plone_target_path }}/{{ plone_instance_name }}/src/"
state: directory
- name: Fetch git repos
git:
repo: "https://github.com/BaobabLims/{{ item }}.git"
dest: "{{plone_target_path}}/{{ plone_instance_name }}/src/{{ item }}"
loop:
- bika.lims
- baobab.lims
- graphite.theme
- name: Set permissions
file:
dest: "{{ plone_target_path }}"
owner: plone_buildout
group: plone_group
recurse: yes
tasks:
- include_role:
name: bootstrap-server
- include_role:
name: ansible.plone_server
- include_role:
name: ansible-role-nginx
post_tasks:
# Examples from Ansible Playbooks
- pip:
name: pip
state: latest
# Install xlsxwriter into the specified virtualenv.
- pip:
name: xlsxwriter
virtualenv: "{{plone_target_path}}//python2.7"
- name: Restart supervisord agents
supervisorctl:
name: "{{ item }}"
state: restarted
loop:
- "{{ plone_instance_name }}_zeoserver"
- "{{ plone_instance_name }}_zeoclient1"
- "{{ plone_instance_name }}_zeoclient1"
- name: Install and configure NGINX
include_role:
name: ansible-role-nginx