From 08e96156c5ec2b777fae920f3192e6e47e754249 Mon Sep 17 00:00:00 2001 From: Thibault Hazelart Date: Tue, 31 Mar 2026 16:50:47 +0200 Subject: [PATCH] Add basic Ansible playbook for local tasks --- .workstation/test.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .workstation/test.yaml diff --git a/.workstation/test.yaml b/.workstation/test.yaml new file mode 100644 index 0000000..8eb2478 --- /dev/null +++ b/.workstation/test.yaml @@ -0,0 +1,15 @@ +# first-playbook.yml +--- +- name: Basic tasks + # This host is defined in the `first-inventory.ini` + hosts: my-localhost + tasks: + - name: Execute uptime command + command: uptime + register: uptime_result + - debug: var=uptime_result.stdout_lines + + - name: Check OS release + command: cat /etc/os-release + register: os_result + - debug: var=os_result.stdout_lines