summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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