Ansible: Difference between revisions

From wiki.vacula.xyz
No edit summary
No edit summary
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...
Ansible Navigator is a TUI for running Ansible playbooks, managing inventory, etc...

Revision as of 14:44, 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

Navigator

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