Move Delete the CA key task to the appropriate role

This commit is contained in:
Jack Ivanov 2019-04-13 11:18:29 +02:00
parent 4ea1dcdf5a
commit 519b7f0e54
2 changed files with 10 additions and 10 deletions

View file

@ -209,3 +209,13 @@
- gencrl.changed - gencrl.changed
notify: notify:
- rereadcrls - 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

View file

@ -37,16 +37,6 @@
tags: ssh_tunneling tags: ssh_tunneling
- block: - 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 - name: Dump the configuration
local_action: local_action:
module: copy module: copy