Setting default port if ansible_port is not defined

Change-Id: I84cfe21587ba859923d3308b17dd012e2b5bfa9b
Related-Bug: 1773925
This commit is contained in:
Dmitriy Rabotjagov 2018-08-20 13:46:06 +03:00
parent 8b08110d1a
commit 8ec0e6c793
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
-o UserKnownHostsFile=/dev/null
-o StrictHostKeyChecking=no
-l "{{ ceph_mon_user }}"
-p "{{ ansible_port }}"
-p "{{ ansible_port|default('22') }}"
{{ item }}
exit
with_items: "{{ ceph_mons }}"