This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure-shack.yml
67 lines (52 loc) · 1.52 KB
/
configure-shack.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
67
---
- hosts: all
become: yes
become_method: sudo
vars_files:
- vars/main.yml
pre_tasks:
- name: create admin users
include: playbooks/createAdminUsers.yml
#FIXME: This works only on the Kimsufi. Make the Vagrant work
- name: mount Ramdisk as /tmp
mount: name=/tmp
src=tmpfs
fstype=tmpfs
opts="size=512m,nodev,nosuid,noexec"
state=mounted
- name: set timezone
file: src=/usr/share/zoneinfo/Europe/Brussels dest=/etc/localtime state=link force=yes
- name: create the personalisation directory
file: path={{ work_dir }} state=directory owner=root group=root
roles:
- security_level1
- docker
- git
- nginx
- gogs
- backup
- letsencrypt
- openvpn
- goaccess
- hugo
- jenkins
#- nexus
#- survey
tasks:
- name: ensure ntpd is at the latest version
yum: pkg=ntp state=latest
notify:
- restart ntpd
# - name: copy docker_compose file
# template: src=compose_scripts/compose.j2
# dest={{ work_dir }}/docker/docker-compose.yml
# force=yes
- name: Stop the main docker-compose in case it is already running
shell: "{{ work_dir }}/docker/stop_web.sh"
- name: restart the docker service as we might have changed the firewall settings
service: name=docker state=restarted
- name: start the main docker-compose
shell: "{{ work_dir }}/docker/build_and_start_web.sh"
handlers:
- name: restart ntpd
service: name=ntpd state=restarted