added excuse
This commit is contained in:
parent
7d0e18a0d8
commit
d1b4e45525
18
excuse/excuse.yml
Normal file
18
excuse/excuse.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
- name: Retrieve random bofh excuse
|
||||||
|
hosts: localhost
|
||||||
|
gather_facts: false
|
||||||
|
become: false
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Retrieve excuse data
|
||||||
|
ansible.builtin.uri:
|
||||||
|
url: "https://bofh-api.bombeck.io/v1/excuses/random"
|
||||||
|
return_content: true
|
||||||
|
register: excuse
|
||||||
|
|
||||||
|
- name: Display the excuse
|
||||||
|
when: excuse is succeeded
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "{{ excuse.json | map(attribute='quote') }}"
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user