Allow the selinux updating to fail
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
7c04c378e7
commit
f54f4f72f6
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
register: sshd_selinux_port
|
register: sshd_selinux_port
|
||||||
check_mode: no
|
check_mode: no
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
failed_when: false
|
||||||
tags:
|
tags:
|
||||||
- basessh
|
- basessh
|
||||||
- sshd_config
|
- sshd_config
|
||||||
|
@ -15,6 +16,7 @@
|
||||||
- name: allow alternate sshd port
|
- name: allow alternate sshd port
|
||||||
command: semanage port -a -t ssh_port_t -p tcp {{ sshd_port }}
|
command: semanage port -a -t ssh_port_t -p tcp {{ sshd_port }}
|
||||||
when: sshd_selinux_port.stdout.find('{{ sshd_port }}') == -1
|
when: sshd_selinux_port.stdout.find('{{ sshd_port }}') == -1
|
||||||
|
failed_when: false
|
||||||
tags:
|
tags:
|
||||||
- basessh
|
- basessh
|
||||||
- sshd_config
|
- sshd_config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue