add nodes var
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: "{{ nodes }}"
|
||||||
|
become: true
|
||||||
vars_prompt:
|
vars_prompt:
|
||||||
- name: path
|
- name: path
|
||||||
prompt: "Enter path to script"
|
prompt: "Enter path to script"
|
||||||
private: no
|
private: no
|
||||||
|
- name: nodes
|
||||||
|
prompt: "Enter hosts to run script on"
|
||||||
|
private: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: Execute script
|
- name: Execute script
|
||||||
script: "{{ path }}"
|
script: "{{ path }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user