Ansible

From wiki.vacula.xyz
Revision as of 14:45, 21 April 2025 by Dracula (talk | contribs) (→‎Satellite/Foreman Dynamic Inventory)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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