-changes to ssh key deployment

-simplified instructions
-attempt to prevent connman from installing - causes multiple ip's
-cleanup some unused tasks
-move openvpn to separate role
This commit is contained in:
Michael Pellegrino
2022-06-28 18:06:59 -04:00
parent a4e5168c87
commit 7456afed0f
12 changed files with 61 additions and 98 deletions

View File

@@ -0,0 +1,30 @@
---
- name: install openvpn
ansible.builtin.apt:
name: openvpn
state: present
update_cache: yes
- name: enable openvpn
become: true
service:
name: openvpn
enabled: yes
tags: enable_openvpn
register: openvpn_enabled
- name: enable openvpn config
become: true
lineinfile:
path: /etc/default/openvpn
state: present
regexp: '^#AUTOSTART="all"'
line: 'AUTOSTART="all"'
tags: enable_openvpn
- name: start openvpn
become: true
systemd:
daemon_reload: yes
name: openvpn
state: restarted
tags: enable_openvpn
when: openvpn_enabled