Use default port if ansible_ssh_port is not set for the delegated node

Also add testcase for it.
This commit is contained in:
Daniel Hokka Zakrisson
2012-11-01 11:08:24 +01:00
parent be300b562a
commit fbda2d4628
4 changed files with 23 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
---
- hosts: all
- hosts: aliasgroup
vars:
test_file: /tmp/ansible-alias-test
tasks:
@@ -7,3 +7,10 @@
- action: command creates=$test_file false
- local_action: command true
- action: command removes=$test_file rm -f $test_file
- hosts: all
gather_facts: False
tasks:
- action: command true
delegate_to: alias-node.example.com
- action: command true