Skip to content

Commit a98876b

Browse files
authored
update ansible-lint to version 5 (#397)
* add ansible to requirements Signed-off-by: Martin Schurz <[email protected]> * trigger run Signed-off-by: Martin Schurz <[email protected]> * update noqa for ansible-lint 5 Signed-off-by: Martin Schurz <[email protected]>
1 parent 6d36973 commit a98876b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
molecule[docker]
22
yamllint
3+
ansible
34
ansible-lint
45
docker
56
flake8

roles/os_hardening/tasks/minimize_access.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
# This is also the reason why there's ignore_errors: true on the task.
66
# also see: https://github.com/dev-sec/ansible-os-hardening/issues/219
77
- name: find files with write-permissions for group
8-
shell: "find -L {{ item }} -perm /go+w -type f" # noqa 305
8+
shell: "find -L {{ item }} -perm /go+w -type f" # noqa command-instead-of-shell
99
with_flattened:
1010
- '/usr/local/sbin'
1111
- '/usr/local/bin'
1212
- '/usr/sbin'
1313
- '/usr/bin'
1414
- '/sbin'
1515
- '/bin'
16-
- "{{ os_env_extra_user_paths }}" # noqa 104
16+
- "{{ os_env_extra_user_paths }}" # noqa deprecated-bare-vars
1717
register: minimize_access_directories
1818
ignore_errors: true
1919
changed_when: false

0 commit comments

Comments
 (0)