quick_test/ice_cream.yml
2025-01-27 17:32:23 -05:00

40 lines
774 B
YAML

---
- name: Draw ASCII Ice Cream Cone
hosts: localhost
gather_facts: no
vars:
ascii_art: |
,--.
/ \
|------|
\ /
'--'
||
// \\
( )
/_ _\\
( _ )
`-'`
tasks:
- name: Create a temporary file for the ASCII art
tempfile:
state: touch
suffix: .txt
register: temp_file
- name: Write ASCII ice cream cone to the temporary file
copy:
dest: "{{ temp_file.path }}"
content: "{{ ascii_art }}"
- name: Display the ASCII ice cream cone from the file
shell: cat {{ temp_file.path }}
- name: Clean up temporary file
file:
path: "{{ temp_file.path }}"
state: absent