More new stuff
This commit is contained in:
18
ice_cream4.yml
Normal file
18
ice_cream4.yml
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: Display ASCII Art
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
|
||||
vars:
|
||||
script_path: "scripts/ice_cream_cone.sh"
|
||||
|
||||
tasks:
|
||||
- name: Print ASCII Art from Shell Script
|
||||
ansible.builtin.command: "{{ script_path }}"
|
||||
register: ascii_art_output
|
||||
failed_when: ascii_art_output.rc != 0 or ascii_art_output.stderr | trim
|
||||
|
||||
- name: Display the ASCII Art Output
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ ascii_art_output.stdout_lines }}"
|
||||
when: not ascii_art_output.failed
|
Reference in New Issue
Block a user