added excuse

This commit is contained in:
Jules 2025-12-12 08:30:34 +01:00
parent 7d0e18a0d8
commit d1b4e45525

18
excuse/excuse.yml Normal file
View 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') }}"