Fix ansiblelint 208
File permissions not mentioned Change-Id: I5efbb06ccee9ac7e83bfcf4171c5ae7d2930128b
This commit is contained in:
parent
4557c983ca
commit
996921a5b6
@ -1,4 +1,3 @@
|
|||||||
skip_list:
|
skip_list:
|
||||||
- '106' # Role name {} does not match ``^[a-z][a-z0-9_]+$`` pattern'
|
- '106' # Role name {} does not match ``^[a-z][a-z0-9_]+$`` pattern'
|
||||||
- '208' # File permissions not mentioned
|
|
||||||
|
|
||||||
|
@ -22,3 +22,4 @@
|
|||||||
# (cannot represent an object).
|
# (cannot represent an object).
|
||||||
content: "{{ new_state.get('result') | to_nice_yaml }}"
|
content: "{{ new_state.get('result') | to_nice_yaml }}"
|
||||||
dest: "{{ state_file_path }}"
|
dest: "{{ state_file_path }}"
|
||||||
|
mode: preserve
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
file:
|
file:
|
||||||
path: "{{ log_directory }}"
|
path: "{{ log_directory }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
mode: 0755
|
||||||
become: true
|
become: true
|
||||||
# Don't remove log directory during teardown to preserve historical logs.
|
# Don't remove log directory during teardown to preserve historical logs.
|
||||||
when: cmd != 'teardown'
|
when: cmd != 'teardown'
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
copy:
|
copy:
|
||||||
src: requirements.txt
|
src: requirements.txt
|
||||||
dest: "{{ req_file.path }}"
|
dest: "{{ req_file.path }}"
|
||||||
|
mode: preserve
|
||||||
|
|
||||||
- name: Ensure Python requirements are installed
|
- name: Ensure Python requirements are installed
|
||||||
pip:
|
pip:
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
copy:
|
copy:
|
||||||
src: requirements.txt
|
src: requirements.txt
|
||||||
dest: "{{ wait_for_resources_python_requirements_path }}"
|
dest: "{{ wait_for_resources_python_requirements_path }}"
|
||||||
|
mode: preserve
|
||||||
|
|
||||||
- name: Install dependencies in supplied venv
|
- name: Install dependencies in supplied venv
|
||||||
pip:
|
pip:
|
||||||
|
@ -45,3 +45,4 @@
|
|||||||
# (cannot represent an object).
|
# (cannot represent an object).
|
||||||
content: "{{ new_state.get('result') | to_nice_yaml }}"
|
content: "{{ new_state.get('result') | to_nice_yaml }}"
|
||||||
dest: "{{ state_file_path }}"
|
dest: "{{ state_file_path }}"
|
||||||
|
mode: preserve
|
||||||
|
Loading…
x
Reference in New Issue
Block a user