Setup role 01 host_info

This commit is contained in:
Ariejan de Vroom 2024-06-06 18:21:37 +02:00
parent 05a89b8e33
commit 35823c2813
Signed by: ariejan
GPG Key ID: AD739154F713697B
4 changed files with 14 additions and 0 deletions

6
ansible.cfg Normal file
View File

@ -0,0 +1,6 @@
[defaults]
inventory = hosts
force_color=true
[diff]
always = yes

2
hosts Normal file
View File

@ -0,0 +1,2 @@
[all]
127.0.0.1 ansible_connection=local

0
main.yml Normal file
View File

View File

@ -0,0 +1,6 @@
---
- name: Check distribution is supported
ansible.builtin.assert:
that: ansible_distribution == "Archlinux"
fail_msg: "Distribution '{{ ansible_distribution }}' is not supported."
success_msg: "I run Arch, btw"