diff --git a/.ansible/.lock b/.ansible/.lock new file mode 100644 index 0000000..e69de29 diff --git a/.vscode/settings.json b/.vscode/settings.json index 9d14cfb..2120b8f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { "ansible.python.interpreterPath": "/bin/python" -} \ No newline at end of file +} diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..d41c333 --- /dev/null +++ b/install.sh @@ -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}}" \ No newline at end of file