Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версияСледующая версияСледующая версия справа и слева |
it:ansible [2022/04/12 10:30] – ura2404 | it:ansible [2024/04/16 17:59] – ura2404 |
---|
| |
[[it:ansible:module|Модули]]\\ | [[it:ansible:module|Модули]]\\ |
| |
| [[it:ansible:ansible_os_family|ansible_os_family]]\\ |
| |
---- | ---- |
| |
__**RomNero**__\\ | https://docs.ansible.com/ansible/latest/collections/ansible/builtin/add_host_module.html - Add a host (and alternatively a group) to the ansible-playbook in-memory inventory\\ |
[[https://youtu.be/YYjCwLs-1hA]] - Всё что нужно знать по Ansible. Основы и не только.\\ | |
[[https://youtu.be/WvvEWvemT_M]] - 12 Ansible: Template. Шаблоны.\\ | |
[[https://youtu.be/Uk1gGzdW00o]] - 13 Ansible: Roles. Создание ролей.\\ | |
| |
| |
[[https://stackoverflow.com/questions/25326386/ansible-define-inventory-at-run-time]] {{it:ansible:define_inventory_at_run_time.mht|mht}}- динамическое формирование списка хостов\\ | [[https://stackoverflow.com/questions/25326386/ansible-define-inventory-at-run-time]] {{it:ansible:define_inventory_at_run_time.mht|mht}}- динамическое формирование списка хостов\\ |
[[https://www.digitalocean.com/community/tutorials/how-to-use-ansible-to-install-and-set-up-lamp-on-ubuntu-18-04-ru]] {{it:ansible:ispolzovanie_ansible_dlja_ustanovki_i_nastrojki_lamp.mht|mht}} - Использование Ansible для установки и настройки LAMP в Ubuntu 18.04\\ | [[https://www.digitalocean.com/community/tutorials/how-to-use-ansible-to-install-and-set-up-lamp-on-ubuntu-18-04-ru]] {{it:ansible:ispolzovanie_ansible_dlja_ustanovki_i_nastrojki_lamp.mht|mht}} - Использование Ansible для установки и настройки LAMP в Ubuntu 18.04\\ |
| [[https://youtu.be/20g9BNilDvg|20-Ansible - Хранение Секретов - ansible-vault]]\\ |
| [[http://linuxsql.ru/content/ansible-izuchaem-i-sozdaem-roli-roles-lesson-8]] {{it:ansible:ansible-_izuchaem_i_sozdaem_roli_roles_.mht|mht}} - Ansible: изучаем и создаем Роли (Roles). Lesson 8 |
| |
| __**RomNero**__\\ |
| [[https://youtu.be/YYjCwLs-1hA|Всё что нужно знать по Ansible. Основы и не только]]\\ |
| [[https://youtu.be/WvvEWvemT_M|12 Ansible: Template. Шаблоны]]\\ |
| [[https://youtu.be/Uk1gGzdW00o|13 Ansible: Roles. Создание ролей]]\\ |
| |
| |
**Unix way**\\ | **Unix way**\\ |
[[https://youtu.be/n27bpkAtyf4|Ansible. Часть 1. Основы]] | [[https://youtu.be/n27bpkAtyf4|Ansible. Часть 1. Основы]]\\ |
[[https://youtu.be/5JcL3c6rPE8|Ansible. Часть 2. Playbook]] | [[https://youtu.be/5JcL3c6rPE8|Ansible. Часть 2. Playbook]]\\ |
| |
---- | ---- |
</code> | </code> |
---- | ---- |
| |
| Посмотреть всё интерфейсы |
| <code> |
| - name: Display all interfaces |
| debug: |
| msg: "{{ msg.split('\n') }}" |
| vars: |
| msg: | |
| {% for iface in ansible_interfaces|sort %} |
| System interface {{ iface }} |
| {{ vars.ansible_facts[iface] | to_nice_json }} |
| {% endfor %} |
| </code> |