From 3d65badd59fd147cdb34ddbc16557e39c12b147b Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Fri, 11 Dec 2015 14:06:48 -0800 Subject: [PATCH] Remove use of ansible_ssh_port The use of ansible_ssh_port is deprecated in Ansible 2. Explicitly check port 22 in the lxc_containers_create playbook to avoid using ansible_ssh_port and to be consistent with all of the other playbooks. Change-Id: I17f00f2977c8e8ad3a3e15e2083f8f22e525e1b9 --- playbooks/lxc-containers-create.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/lxc-containers-create.yml b/playbooks/lxc-containers-create.yml index daa1355a2d..97c06f6321 100644 --- a/playbooks/lxc-containers-create.yml +++ b/playbooks/lxc-containers-create.yml @@ -24,7 +24,7 @@ - name: Wait for ssh to be available local_action: module: wait_for - port: "{{ ansible_ssh_port | default('22') }}" + port: "22" host: "{{ ansible_ssh_host | default(inventory_hostname) }}" search_regex: OpenSSH delay: 1