Initial commit and distro test

This commit is contained in:
Raphael Werner 2025-02-25 13:06:35 +01:00
parent bb0616eb08
commit a54e528f25
3 changed files with 25 additions and 0 deletions

0
.ansible/.lock Normal file
View file

3
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"ansible.python.interpreterPath": "/opt/homebrew/bin/python3"
}

22
install.sh Normal file
View file

@ -0,0 +1,22 @@
#!/usr/bin/ansible-playbook --inventory=localhost,
---
- hosts: localhost
connection: local
force_handlers: true
vars:
ansible_python_interpreter: auto_silent
pre_tasks:
- name: Distribution
set_fact:
distribution: "{{ ansible_distribution }}"
# - set_fact:
# eff_uid_number: "{{ lookup('pipe', 'id -u') }}"
# - block:
# - debug:
# msg: "This program requires root privileges"
# - meta: end_play
# when: eff_uid_number|int != 0
tasks:
- ansible.builtin.debug:
msg: "{{distribution}}"