CCDs to be deleted in a separate list.
This commit is contained in:
parent
bf91aeb58f
commit
562df8844e
|
@ -95,14 +95,12 @@
|
||||||
group: "{{ openvpn_unprivileged_group }}"
|
group: "{{ openvpn_unprivileged_group }}"
|
||||||
mode: "0440"
|
mode: "0440"
|
||||||
loop: '{{ openvpn_users_customizations | default([]) }}'
|
loop: '{{ openvpn_users_customizations | default([]) }}'
|
||||||
when: item.state is not defined or item.state == "present"
|
|
||||||
tags: ['openvpn', 'openvpn_conf', 'openvpn_ccd']
|
tags: ['openvpn', 'openvpn_conf', 'openvpn_ccd']
|
||||||
- name: openvpn | Remove some ccd configurations
|
- name: openvpn | Remove some ccd configurations
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
dest: "{{ openvpn_conf_dir }}/ccd/{{ item.cn }}"
|
dest: "{{ openvpn_conf_dir }}/ccd/{{ item.cn }}"
|
||||||
state: absent
|
state: absent
|
||||||
loop: '{{ openvpn_users_customizations | default([]) }}'
|
loop: '{{ openvpn_users_to_be_removed | default([]) }}'
|
||||||
when: item.state defined and item.state == "absent"
|
|
||||||
tags: ['openvpn', 'openvpn_conf', 'openvpn_ccd']
|
tags: ['openvpn', 'openvpn_conf', 'openvpn_ccd']
|
||||||
- name: openvpn | Install the easy-rsa package on servers when we use the certificate authentication
|
- name: openvpn | Install the easy-rsa package on servers when we use the certificate authentication
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
|
|
Loading…
Reference in New Issue