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

This commit is contained in:
Jack Ivanov 2019-04-13 11:53:45 +02:00 committed by GitHub
parent 4ea1dcdf5a
commit 1c7e1dc331
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View file

@ -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

View file

@ -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