Ansible: Difference between revisions
From wiki.vacula.xyz
No edit summary |
|||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Inventories == | |||
=== Satellite/Foreman Dynamic Inventory === | |||
Create a file ending in "foreman.yml" with the following content: | |||
<nowiki>--- | |||
plugin: redhat.satellite.foreman | |||
validate_certs: False | |||
url: https://satellite.example.com | |||
user: USERNAME_FOR_SATELLITE | |||
password: PASSWORD_FOR_SATELLITE</nowiki> | |||
== Navigator == | == Navigator == | ||
Ansible Navigator is a TUI for running Ansible playbooks, managing inventory, etc... | |||
=== Install === | |||
python3 -m pip install ansible-navigator --user | |||
=== Config === | === Config === | ||
Quick generate with <code>ansible-navigator settings --sample</code> | Quick generate with <code>ansible-navigator settings --sample</code> | ||
My <code>~/.ansible-navigator.yml</code> config | |||
<nowiki>--- | <nowiki>--- | ||
ansible-navigator: | ansible-navigator: | ||
playbook-artifact: | playbook-artifact: | ||
# Disable playbook artifacts from littering the directory | |||
enable: False | enable: False | ||
</nowiki> | </nowiki> | ||
Latest revision as of 14:45, 21 April 2025
Inventories
Satellite/Foreman Dynamic Inventory
Create a file ending in "foreman.yml" with the following content:
--- plugin: redhat.satellite.foreman validate_certs: False url: https://satellite.example.com user: USERNAME_FOR_SATELLITE password: PASSWORD_FOR_SATELLITE
Ansible Navigator is a TUI for running Ansible playbooks, managing inventory, etc...
Install
python3 -m pip install ansible-navigator --user
Config
Quick generate with ansible-navigator settings --sample
My ~/.ansible-navigator.yml config
---
ansible-navigator:
playbook-artifact:
# Disable playbook artifacts from littering the directory
enable: False