More new stuff

This commit is contained in:
2025-01-27 17:32:23 -05:00
parent 7a93d8d72a
commit 6eedbd74e0
13 changed files with 231 additions and 4 deletions

39
ice_cream.yml Normal file
View File

@ -0,0 +1,39 @@
---
- 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