Compare commits
No commits in common. "09830eca513bda7a3241953b05ab27cd7d08283e" and "6f6ec9d81bc5df6b32ab1b84b3622aa8687b7316" have entirely different histories.
09830eca51
...
6f6ec9d81b
3 changed files with 1 additions and 24 deletions
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"ansible.python.interpreterPath": "/bin/python"
|
"ansible.python.interpreterPath": "/bin/python"
|
||||||
}
|
}
|
||||||
23
install.sh
23
install.sh
|
|
@ -1,23 +0,0 @@
|
||||||
#!/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}}"
|
|
||||||
Loading…
Reference in a new issue