try this to remove {{}} from when

This commit is contained in:
Kevin Fenzi 2017-08-20 21:26:25 +00:00
parent 479d504ae6
commit 9631bf1797

View file

@ -15,7 +15,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
when: sshd_port in sshd_selinux_port.stdout
failed_when: false
tags:
- basessh