wiki:ansible
Różnice
Różnice między wybraną wersją a wersją aktualną.
Poprzednia rewizja po obu stronachPoprzednia wersja | |||
wiki:ansible [2022/08/18 11:44] – edycja zewnętrzna 127.0.0.1 | wiki:ansible [2024/12/28 12:45] (aktualna) – 127.0.0.1 | ||
---|---|---|---|
Linia 1: | Linia 1: | ||
====== Ansible ====== | ====== Ansible ====== | ||
- | |||
- | === Ansible 2.9 na CentOS Stream 8 === | ||
- | |||
- | W repozytorium ósmego Streama pojawiły się pakiety ansible-core w nowych wersjach, niekompatybilne z playbookami pisanymi pod wersję 2.9. Stara wersja jest wciąż dostępna na EPEL-u: | ||
- | |||
- | dnf install epel-release | ||
- | dnf install ansible --exclude=ansible-core | ||
- | |||
- | Do pliku / | ||
- | |||
- | exclude=ansible-core | ||
=== Sprawdzanie, | === Sprawdzanie, | ||
Linia 40: | Linia 29: | ||
=== Plik konfiguracyjny === | === Plik konfiguracyjny === | ||
- | [defaults] | + | [defaults] |
- | inventory = /root/ | + | inventory=~/ |
- | interpreter_python = auto_silent | + | log_path=~/ |
- | remote_user = root | + | |
- | log_path = /root/ | + | interpreter_python=auto_silent |
- | | + | |
[privilege_escalation] | [privilege_escalation] | ||
- | | + | |
- | | + | |
+ | become_method=sudo | ||
[persistent_connection] | [persistent_connection] | ||
- | [sudo_become_plugin] | + | [connection] |
- | [selinux] | + | |
[colors] | [colors] | ||
+ | [selinux] | ||
[diff] | [diff] | ||
[galaxy] | [galaxy] | ||
+ | [inventory] | ||
+ | [netconf_connection] | ||
+ | [paramiko_connection] | ||
+ | [jinja2] | ||
+ | [tags] | ||
+ | [runas_become_plugin] | ||
+ | [su_become_plugin] | ||
+ | [sudo_become_plugin] | ||
+ | [callback_tree] | ||
+ | [ssh_connection] | ||
+ | ssh_args = -C -o ServerAliveInterval=33 -o ControlMaster=auto -o ControlPersist=66s | ||
+ | timeout=21 | ||
+ | [winrm] | ||
+ | [inventory_plugins] | ||
+ | [inventory_plugin_script] | ||
+ | [inventory_plugin_yaml] | ||
+ | [url_lookup] | ||
+ | [powershell] | ||
+ | [vars_host_group_vars] | ||
- | Ustawienie // | + | Ustawienie // |
=== Pętle w playbookach oraz helpery === | === Pętle w playbookach oraz helpery === | ||
Linia 169: | Linia 177: | ||
Plik w katalogu // | Plik w katalogu // | ||
+ | |||
+ | === Ansible 2.9 na CentOS Stream 8 === | ||
+ | |||
+ | W repozytorium ósmego Streama pojawiły się pakiety ansible-core w nowych wersjach, niekompatybilne z playbookami pisanymi pod wersję 2.9. Stara wersja jest wciąż dostępna na EPEL-u: | ||
+ | |||
+ | dnf install epel-release | ||
+ | dnf install ansible --exclude=ansible-core | ||
+ | |||
+ | Do pliku / | ||
+ | |||
+ | exclude=ansible-core | ||
+ | |||
wiki/ansible.txt · ostatnio zmienione: 2024/12/28 12:45 przez 127.0.0.1