Fix ansible-lint E208 by setting file modes in file and copy tasks.

This commit is contained in:
Rafael Guterres Jeffman
2020-11-26 18:13:14 -03:00
parent 1054bdd0e3
commit 0782e260f2
6 changed files with 6 additions and 0 deletions

View File

@@ -48,6 +48,7 @@
file:
path: "/root/ca-less-test"
state: directory
mode: 0775
- name: Copy CA certificate
copy:

View File

@@ -48,6 +48,7 @@
file:
path: "/root/ca-less-test"
state: directory
mode: 0775
- name: Copy CA certificate
copy:

View File

@@ -42,6 +42,7 @@
src: "{{ groups.ipaserver[0] + '-chain.crt' }}"
dest: "/root/chain.crt"
force: yes
mode: preserve
roles:
- role: ipaserver

View File

@@ -20,6 +20,7 @@
copy:
src: "{{ playbook_dir }}/{{ item }}"
dest: "{{ ansible_facts['env'].HOME }}/{{ item }}"
mode: 0644
with_items:
- A_private.pem
- A_public.pem