Инструменты пользователя

Инструменты сайта


it:ansible

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
it:ansible [2024/04/16 17:59] ura2404it:ansible [2024/04/21 12:04] (текущий) ura2404
Строка 6: Строка 6:
  
 [[it:ansible:module|Модули]]\\ [[it:ansible:module|Модули]]\\
 +[[it:ansible:role|Роли]]\\
  
 [[it:ansible:ansible_os_family|ansible_os_family]]\\ [[it:ansible:ansible_os_family|ansible_os_family]]\\
Строка 64: Строка 65:
 ---- ----
  
-Посмотреть всё интерфейсы+__**Посмотреть всё интерфейсы**__
 <code> <code>
 - name: Display all interfaces - name: Display all interfaces
Строка 75: Строка 76:
             {{ vars.ansible_facts[iface] | to_nice_json }}             {{ vars.ansible_facts[iface] | to_nice_json }}
         {% endfor %}         {% endfor %}
 +</code>
 +
 +__**homedir пользователя**__
 +<code>
 +- name: Get user homedir
 +  shell: eval echo "~"
 +  register: homedir
 +  become: true
 +  become_user: "{{ environment_user }}"
 +  no_log: yes
 +  tags: [os]
 +
 </code> </code>
it/ansible.1713290373.txt.gz · Последнее изменение: 2024/04/16 17:59 — ura2404