From f54f4f72f600d8135de627166b95ed5b38f528ea Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Wed, 16 Aug 2017 18:32:13 +0000 Subject: [PATCH] Allow the selinux updating to fail Signed-off-by: Patrick Uiterwijk --- roles/basessh/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/basessh/tasks/main.yml b/roles/basessh/tasks/main.yml index 13c228d508..acec14471d 100644 --- a/roles/basessh/tasks/main.yml +++ b/roles/basessh/tasks/main.yml @@ -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