mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
refactor(ansible/snippets): split per usage
This commit is contained in:
15
snippets/ansible/tasks/delegate tasks to other hosts.yml
Normal file
15
snippets/ansible/tasks/delegate tasks to other hosts.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
# Only *single* target patterns allowed
|
||||
# No groups
|
||||
|
||||
- name: Forcefully run on the controller
|
||||
delegate_to: 127.0.0.1
|
||||
connection: local
|
||||
changed_when: false
|
||||
ansible.builtin.command: hostname
|
||||
|
||||
- name: Forcefully run on a target from the inventory
|
||||
delegate_to: copernicus
|
||||
changed_when: false
|
||||
ansible.builtin.command: hostname
|
||||
Reference in New Issue
Block a user