Add folder verification and fix linting

This commit is contained in:
Jose M 2019-08-05 15:04:27 +02:00
parent c547e90502
commit 101a006178

View File

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