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

Commit

Permalink
add always_run: true to task. fix #64
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Gumprich committed May 20, 2016
1 parent b259a3b commit 4adc8a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
- name: test to see if selinux is running
command: getenforce
register: sestatus
changed_when: false
ignore_errors: true
failed_when: false
always_run: true

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

- name: create sshd_config and set permissions to root/600
template: src='opensshd.conf.j2' dest='/etc/ssh/sshd_config' mode=0600 owner=root group=root validate="/usr/sbin/sshd -T -f %s"
Expand Down

0 comments on commit 4adc8a1

Please sign in to comment.