Move `Delete the CA key` task to the appropriate role (#1393)

pull/1394/head
Jack Ivanov 5 years ago committed by GitHub
parent 4ea1dcdf5a
commit 1c7e1dc331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -209,3 +209,13 @@
- gencrl.changed
notify:
- rereadcrls
- name: Delete the CA key
local_action:
module: file
path: "{{ ipsec_pki_path }}/private/cakey.pem"
state: absent
become: false
when:
- ipsec_enabled
- not algo_store_cakey

@ -37,16 +37,6 @@
tags: ssh_tunneling
- block:
- name: Delete the CA key
local_action:
module: file
path: "{{ ipsec_pki_path }}/private/cakey.pem"
state: absent
become: false
when:
- ipsec_enabled
- not algo_store_cakey
- name: Dump the configuration
local_action:
module: copy

Loading…
Cancel
Save