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 pathtest-configure-jenkins.yml
72 lines (58 loc) · 1.68 KB
/
test-configure-jenkins.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
68
69
70
71
72
---
- hosts: all
become: yes
become_method: sudo
vars_files:
- vars/main.yml
pre_tasks:
- name: create admin users
include: playbooks/createAdminUsers.yml
# - 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
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: "docker-compose stop"
# args:
# chdir: "{{ work_dir }}/docker"
# environment:
# TMPDIR: "{{ work_dir }}/docker/temp"
# - 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: "docker-compose up --build -d"
# args:
# chdir: "{{ work_dir }}/docker"
# environment:
# TMPDIR: "{{ work_dir }}/docker/temp"
handlers:
- name: restart ntpd
service: name=ntpd state=restarted