Add folder verification and fix linting
This commit is contained in:
parent
c547e90502
commit
101a006178
@ -81,9 +81,10 @@
|
|||||||
delegate_to: "127.0.0.1"
|
delegate_to: "127.0.0.1"
|
||||||
when:
|
when:
|
||||||
- node_certs_generator
|
- node_certs_generator
|
||||||
- name: Create the certificates directory
|
|
||||||
|
- name: Verify the Certificates Authority directory
|
||||||
file:
|
file:
|
||||||
path: "{{master_certs_destination}}"
|
path: "{{ master_certs_destination }}/ca/"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0700'
|
mode: '0700'
|
||||||
delegate_to: "127.0.0.1"
|
delegate_to: "127.0.0.1"
|
||||||
@ -92,8 +93,8 @@
|
|||||||
|
|
||||||
- name: Copying certificates to Ansible master
|
- name: Copying certificates to Ansible master
|
||||||
fetch:
|
fetch:
|
||||||
src: "{{node_certs_source}}/certs.zip"
|
src: "{{ node_certs_source }}/certs.zip"
|
||||||
dest: "{{master_certs_destination}}/"
|
dest: "{{ master_certs_destination }}/"
|
||||||
flat: yes
|
flat: yes
|
||||||
mode: 0700
|
mode: 0700
|
||||||
when:
|
when:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user