More new stuff
This commit is contained in:
39
ice_cream.yml
Normal file
39
ice_cream.yml
Normal 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
|
||||
|
Reference in New Issue
Block a user