File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 17
17
18
18
- hosts : [hkgmetadb.infra.ooni.io, amsmetadb.ooni.nu]
19
19
gather_facts : false # already gathered
20
+ vars :
21
+ ansible_python_interpreter : " /root/venv/bin/python2.7"
20
22
roles :
21
23
- role : plpsql
22
24
tags : plpsql
Original file line number Diff line number Diff line change 37
37
notify : reload pl-psql
38
38
when : " 'db_standby' in group_names"
39
39
40
+ # TODO fix this with the apt module once we update to the latest debian
41
+ # apt:
42
+ # name: openvpn
43
+ # install_recommends: no
44
+
40
45
- name : install openvpn
41
- apt :
42
- name : openvpn
43
- install_recommends : no
46
+ command : apt-get install --no-install-recommends -y openvpn
44
47
tags : dbvpn
45
48
46
49
- name : openvpn create conf on standby node
57
60
58
61
- name : openvpn create shared secret on active node
59
62
command : openvpn --genkey --secret /etc/openvpn/oonipgvpn.key
63
+ args :
64
+ creates : /etc/openvpn/oonipgvpn.key
65
+ notify : restart openvpn
60
66
when : " 'db_active' in group_names"
61
67
tags : dbvpn
62
68
71
77
copy :
72
78
content : " {{ pgvpn_secret }}"
73
79
dest : /etc/openvpn/oonipgvpn.key
80
+ notify : restart openvpn
74
81
when : " 'db_standby' in group_names"
75
82
tags : dbvpn
76
83
You can’t perform that action at this time.
0 commit comments