mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fbda2d4628
Also add testcase for it.
16 lines
403 B
YAML
16 lines
403 B
YAML
---
|
|
- hosts: aliasgroup
|
|
vars:
|
|
test_file: /tmp/ansible-alias-test
|
|
tasks:
|
|
- action: command creates=$test_file touch $test_file
|
|
- 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
|