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

Commit 83c1662

Browse files
committed
Replace deprecated always_run with check_mode
1 parent 45a464b commit 83c1662

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
- name: test to see if selinux is running
66
command: getenforce
7+
check_mode: false
78
register: sestatus
89
failed_when: false
910
changed_when: false
10-
always_run: true
1111

1212
- name: install selinux dependencies when selinux is installed on RHEL or Oracle Linux
1313
yum: name="{{item}}" state=installed
@@ -41,10 +41,10 @@
4141

4242
- name: check if ssh_password module is already installed
4343
shell: "semodule -l| grep ssh_password"
44+
check_mode: false
4445
register: ssh_password_module
4546
failed_when: false
4647
changed_when: false
47-
always_run: true
4848

4949
# The following tasks only get executed when selinux is in state enforcing, UsePam is "no" and the ssh_password module is installed.
5050
# See this issue for more info: https://github.com/hardening-io/ansible-ssh-hardening/issues/23

0 commit comments

Comments
 (0)