Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 3ed179b

Browse files
author
Sebastian Gumprich
authored
Merge pull request #69 from dev-sec/always_run_task
add always_run: true to task. fix #64
2 parents edf358c + ba307d7 commit 3ed179b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tasks/main.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
command: getenforce
77
register: sestatus
88
failed_when: false
9-
ignore_errors: true
9+
changed_when: false
10+
always_run: true
1011

1112
- name: check the ssh_password policy state
12-
shell: semodule -l | grep "ssh_password" | awk '{print $3}'
13+
shell: semodule -l | grep "ssh_password" | awk '{print $3}'
1314
register: selinux_policy_state
1415
when: sestatus.rc == 0 and sestatus.stdout != 'Disabled'
16+
failed_when: false
1517
changed_when: false
1618

1719
- name: create sshd_config and set permissions to root/600

0 commit comments

Comments
 (0)