Files
ansible/playbooks/run-local-script.yml
2024-09-18 19:39:31 +00:00

14 lines
273 B
YAML

---
- hosts: "{{ nodes }}"
become: true
vars_prompt:
- name: path
prompt: "Enter path to script"
private: no
- name: nodes
prompt: "Enter hosts to run script on"
private: no
tasks:
- name: Execute script
script: "{{ path }}"