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 @@ ...@@ -3,6 +3,6 @@
remote_user: "{{ my_user }}" remote_user: "{{ my_user }}"
tasks: tasks:
- name: Host Info - name: ANSIBLE | host Info
debug: 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 @@ ...@@ -7,15 +7,15 @@
tasks: tasks:
- name: Who is «remote_user» - name: Who is «remote_user»
become: no become: no
ansible.builtin.script: ansible.builtin.command:
cmd: /usr/bin/whoami cmd: whoami
register: who_is_remote_user register: who_is_remote_user
changed_when: 0 changed_when: 0
- name: Who is «become_user» - name: Who is «become_user»
become: yes become: true
ansible.builtin.script: ansible.builtin.command:
cmd: /usr/bin/whoami cmd: whoami
register: who_is_become_user register: who_is_become_user
changed_when: 0 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