summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2017-08-16 18:32:13 +0000
committerPatrick Uiterwijk <puiterwijk@redhat.com>2017-08-16 18:32:24 +0000
commitf54f4f72f600d8135de627166b95ed5b38f528ea (patch)
tree15f5cc38fb255ff78223146bded72666eb534093
parent7c04c378e790363b0dc8bdd3e4b1a450e1ec8be6 (diff)
downloadansible-f54f4f72f600d8135de627166b95ed5b38f528ea.tar.gz
ansible-f54f4f72f600d8135de627166b95ed5b38f528ea.tar.xz
ansible-f54f4f72f600d8135de627166b95ed5b38f528ea.zip
Allow the selinux updating to fail
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
-rw-r--r--roles/basessh/tasks/main.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/basessh/tasks/main.yml b/roles/basessh/tasks/main.yml
index 13c228d50..acec14471 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