forked from ISTI-ansible-roles/ansible-roles
Merge pull request 'openvpn: add some tags.' (#192) from adellam/ansible-roles:master into master
This commit is contained in:
commit
efce13efe6
|
@ -37,7 +37,7 @@
|
||||||
notify: Reload OpenVPN
|
notify: Reload OpenVPN
|
||||||
|
|
||||||
when: openvpn_ldap_auth
|
when: openvpn_ldap_auth
|
||||||
tags: [ 'openvpn', 'openvpn_ldap' ]
|
tags: [ 'openvpn', 'openvpn_ldap', 'openvpn_basic_conf' ]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Remove the LDAP auth configuration file if LDAP is not used
|
- name: Remove the LDAP auth configuration file if LDAP is not used
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
notify: Reload OpenVPN
|
notify: Reload OpenVPN
|
||||||
|
|
||||||
when: not openvpn_ldap_auth
|
when: not openvpn_ldap_auth
|
||||||
tags: [ 'openvpn', 'openvpn_ldap' ]
|
tags: [ 'openvpn', 'openvpn_ldap', 'openvpn_basic_conf' ]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Install the perl libraries needed by the LDAP client authentication script
|
- name: Install the perl libraries needed by the LDAP client authentication script
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
- name: Install the main OpenVPN configuration file on the servers
|
- name: Install the main OpenVPN configuration file on the servers
|
||||||
template: src=server.conf.j2 dest={{ openvpn_conf_dir }}/{{ openvpn_conf_name }} owner=root group={{ openvpn_unprivileged_group }} mode=0440
|
template: src=server.conf.j2 dest={{ openvpn_conf_dir }}/{{ openvpn_conf_name }} owner=root group={{ openvpn_unprivileged_group }} mode=0440
|
||||||
notify: Restart OpenVPN
|
notify: Restart OpenVPN
|
||||||
tags: [ 'openvpn', 'openvpn_conf', 'openvpn_conf_file' ]
|
tags: [ 'openvpn', 'openvpn_conf', 'openvpn_conf_file', 'openvpn_basic_conf' ]
|
||||||
|
|
||||||
- name: Install the custom configuration for specific OpenVPN users in the servers
|
- name: Install the custom configuration for specific OpenVPN users in the servers
|
||||||
template: src=user-ccd.conf.j2 dest={{ openvpn_conf_dir }}/ccd/{{ item.cn }} owner=root group={{ openvpn_unprivileged_group }} mode=0440
|
template: src=user-ccd.conf.j2 dest={{ openvpn_conf_dir }}/ccd/{{ item.cn }} owner=root group={{ openvpn_unprivileged_group }} mode=0440
|
||||||
|
|
Loading…
Reference in New Issue