Compare commits

...

3 commits

Author SHA1 Message Date
09830eca51 Merged form develop 2025-03-03 18:09:05 +01:00
Raphael Werner
daf29565a3 test 2025-02-25 13:24:42 +01:00
Raphael Werner
a54e528f25 Initial commit and distro test 2025-02-25 13:06:35 +01:00
3 changed files with 24 additions and 1 deletions

0
.ansible/.lock Normal file
View file

View file

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

23
install.sh Normal file
View file

@ -0,0 +1,23 @@
#!/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 }}"
hostname: "{{ ansible_hostname }}"
# - 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}}{{hostname}}"