Allow the selinux updating to fail

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-08-16 18:32:13 +00:00
parent 7c04c378e7
commit f54f4f72f6

View file

@ -4,6 +4,7 @@
register: sshd_selinux_port
check_mode: no
changed_when: false
failed_when: false
tags:
- basessh
- sshd_config
@ -15,6 +16,7 @@
- name: allow alternate sshd port
command: semanage port -a -t ssh_port_t -p tcp {{ sshd_port }}
when: sshd_selinux_port.stdout.find('{{ sshd_port }}') == -1
failed_when: false
tags:
- basessh
- sshd_config