'Ansible, Is there a way to run the curl command on the Control Node rather than the Managed Node?
Modules such as shell, uri, and command use the curl command in the managed node.
I want to run curl commands on the Control Node, not the Managed Node.
Is it possible in Ansible?
Solution 1:[1]
Sure, you may have a look into Controlling where tasks run: delegation and local actions and
- use
delegate_tofor Delegating tasks - or
hosts: localhostfor running the Playbook local at all.
Further Q&A
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
