mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update main.yml
This commit is contained in:
parent
2fee404ad4
commit
382b58ec71
1 changed files with 8 additions and 18 deletions
|
@ -44,27 +44,17 @@
|
||||||
- "tUM4hl009fbXY4Yy3bAadWL1CquVrZmKfBBWhyhz8zLD6TQ== ghunt@ip-192-168-123-123.ec2.internal$"
|
- "tUM4hl009fbXY4Yy3bAadWL1CquVrZmKfBBWhyhz8zLD6TQ== ghunt@ip-192-168-123-123.ec2.internal$"
|
||||||
- "heOMXXNU6skxdPh2fcHh0bzQcaCSQ== holt@crank$"
|
- "heOMXXNU6skxdPh2fcHh0bzQcaCSQ== holt@crank$"
|
||||||
|
|
||||||
- name: Create the directory for OpenVPN keys
|
- name: Create 3 directories for: OpenVPN keys, scripts & up_wan
|
||||||
file:
|
file:
|
||||||
dest: /etc/openvpn/keys
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
with_items:
|
||||||
- name: Create the directory for scripts
|
- /etc/openvpn/keys
|
||||||
file:
|
- /etc/openvpn/scripts
|
||||||
dest: /etc/openvpn/scripts
|
- /usr/lib/iiab # For executable up_wan. Comment out in future? Might still be relevant for CentOS but unused for ~2 years as of August 2018.
|
||||||
state: directory
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
# Comment out in future? Might still be relevant for CentOS but unused for ~2 years as of August 2018:
|
|
||||||
- name: Create folder /usr/lib/iiab (not on path) for iiab executable up_wan
|
|
||||||
file:
|
|
||||||
path: /usr/lib/iiab
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: Configure OpenVPN (BACKS UP FILES IF CHANGED)
|
- name: Configure OpenVPN (BACKS UP FILES IF CHANGED)
|
||||||
template:
|
template:
|
||||||
|
@ -121,9 +111,9 @@
|
||||||
template:
|
template:
|
||||||
src: 15-openvpn
|
src: 15-openvpn
|
||||||
dest: /etc/NetworkManager/dispatcher.d/
|
dest: /etc/NetworkManager/dispatcher.d/
|
||||||
when: not is_debuntu
|
when: not is_debuntu # SHOULD THIS CONDITION ACT ON THE PRESENCE OF NETWORKMANAGER? e.g. some Ubuntu's use NM, others don't.
|
||||||
|
|
||||||
# Was buggy & unused for ~2 years as of August 2018:
|
# Was unused for ~2 years as of August 2018: (replaced by /etc/openvpn/xscenet.conf)
|
||||||
#- name: Check for manually configured OpenVPN tunnel
|
#- name: Check for manually configured OpenVPN tunnel
|
||||||
# stat:
|
# stat:
|
||||||
# path: /etc/openvpn/iiab-vpn.conf
|
# path: /etc/openvpn/iiab-vpn.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue