mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Use default port if ansible_ssh_port is not set for the delegated node
Also add testcase for it.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user