Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 25b94d1b authored by freezed's avatar freezed :mountain:
Browse files

:wrench: BASE Improve base tasks

parent 58a8e440
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,6 @@
remote_user: "{{ my_user }}"
tasks:
- name: Host Info
- name: ANSIBLE | host Info
debug:
msg: "{{ ansible_hostname }} ({{ ansible_distribution }} {{ ansible_distribution_release }} v{{ ansible_distribution_version }})"
msg: "{{ ansible_host }} {{ ansible_fqdn }} - {{ ansible_distribution }} {{ ansible_distribution_release }} v{{ ansible_distribution_version }} / {{ ansible_processor[2] }} / {{ ansible_devices.keys() | max }}"
......@@ -7,15 +7,15 @@
tasks:
- name: Who is «remote_user»
become: no
ansible.builtin.script:
cmd: /usr/bin/whoami
ansible.builtin.command:
cmd: whoami
register: who_is_remote_user
changed_when: 0
- name: Who is «become_user»
become: yes
ansible.builtin.script:
cmd: /usr/bin/whoami
become: true
ansible.builtin.command:
cmd: whoami
register: who_is_become_user
changed_when: 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment