Aug 18, 22
Run a Python Script on Remote Machines - Ansible module script
How to automate the execution of a "cars.py" custom Python script on a remote machine after transferring it and processing the output as an Ansible JSON variable using Ansible Playbook and script module.
Jan 15, 22
How to Pass Variables to Ansible Playbook in command line? - Ansible extra variables
How to pass or override an Ansible Playbook variable from the command line in plaintext, JSON, or YAML. Very useful to combine some script, automation, or shell variables. Example with fruit variable defined as “banana” and changed to “apple” or “raspberry”.