Moved playbook to new directory

This commit is contained in:
2023-11-20 22:27:38 +05:30
parent c3c31afaaf
commit d49b0a2962
8 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
---
- hosts: all
become: true
vars_prompt:
- name: script
prompt: "Enter the script to be run"
private: no
tasks:
- name: Fetch script
ansible.builtin.uri:
url: "{{ script }}"
return_content: yes
register: sc
- name: Run script
ansible.builtin.shell:
cmd: bash -s
stdin: "{{ sc.content }}"