File tree 1 file changed +16
-9
lines changed
1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
3
3
- name : Create the directories for site specific configurations
4
- user :
4
+ user :
5
5
name="{{ oauth2_user }}"
6
6
shell="/bin/false"
7
7
home="{{ oauth2_dir }}"
8
8
9
9
- name : Create the directories for site specific configurations
10
- file :
10
+ file :
11
11
path="{{ item }}"
12
12
state=directory
13
13
owner="{{ oauth2_user }}"
26
26
owner="{{ oauth2_user }}"
27
27
28
28
- name : unarchive oauth2 binary
29
- unarchive :
29
+ unarchive :
30
30
src="{{ oauth2_dir_tmp }}/{{ oauth2_compress_filename }}"
31
31
dest="{{ oauth2_dir }}/"
32
32
creates="{{ oauth2_dir }}/{{ oauth2_compress_filename }}"
33
33
copy=no
34
34
35
35
- name : Create current symlink
36
- file :
36
+ file :
37
37
src="{{ oauth2_dir }}/{{ oauth2_filename }}"
38
38
dest="{{ oauth2_dir }}/current"
39
39
owner="{{ oauth2_user }}"
40
40
mode="0755"
41
41
state="link"
42
- notify :
42
+ notify :
43
43
- oauth2-proxy restart
44
44
45
45
- name : Deploy init.d script
46
- template :
46
+ template :
47
47
src="init.d.sh.j2.sh"
48
48
dest="/etc/init.d/oauth2-proxy"
49
49
mode="0755"
50
- notify :
50
+ register : initd_script
51
+ notify :
51
52
- oauth2-proxy restart
52
53
54
+ - name : Reload Systemd
55
+ systemd :
56
+ daemon_reload=yes
57
+ name=oauth2-proxy
58
+ when : initd_script.changed and ansible_service_mgr == 'systemd'
59
+
53
60
- name : Deploy Config
54
- template :
61
+ template :
55
62
src="config.j2"
56
63
dest="{{ oauth2_config_path }}"
57
64
owner="{{ oauth2_user }}"
58
65
mode="0600"
59
- notify :
66
+ notify :
60
67
- oauth2-proxy restart
61
68
62
69
- name : Service start
You can’t perform that action at this time.
0 commit comments