Ansible-Navigator Installasjon

Ansible-Navigator Installasjon


Ansible Navigator beskrives som et verktøy du kan bruke til å utvikle playbooks.
Hvis du har tenkt til å ta EX457 eksamen, så er et av punktenen i eksamensmålene at du skal kunne bruke Ansible Navigator.

Jeg installerer Ansible Navigator på en CentOS Stream 9 server.

Installasjon

sudo dnf install python3-pip
pip3 install ansible-dev-tools
                


Første gang du startere ansible-navigator så laster den ned et image
[autom8@localhost ansible_naviagtor]$ ansible-navigator
---------------------------------------------------------------------
Execution environment image and pull policy overview
---------------------------------------------------------------------
Execution environment image name:     ghcr.io/ansible/creator-ee:v0.22.0
Execution environment image tag:      v0.22.0
Execution environment pull arguments: None
Execution environment pull policy:    tag
Execution environment pull needed:    True
---------------------------------------------------------------------
Updating the execution environment
---------------------------------------------------------------------
Running the command: podman pull ghcr.io/ansible/creator-ee:v0.22.0
Trying to pull ghcr.io/ansible/creator-ee:v0.22.0...
Getting image source signatures
Copying blob 2764fac24a7d done   | 
Copying blob 2941e6f1d2bc done   | 
Copying blob ca6ff2c3ecc4 done   | 
Copying blob 32db66e6bbce done   | 
Copying blob 92e1f4a92098 done   | 
Copying blob 600b306c9749 done   | 
Copying blob d419ad167630 done   | 
Copying blob 7b03b9e3c798 done   | 
Copying blob 05a232cb5cea done   | 
Copying blob be915b595e0a done   | 
Copying blob 25380a2f785a done   | 
Copying blob 1a57afb20498 done   | 
Copying blob 09f2372dbd92 done   | 
Copying config 4405e824c5 done   | 
Writing manifest to image destination
4405e824c556ff708afbd0de144373cac250135d892e178941fe7c690e78814c
                


Imaget som blir lastet ned er et exection environment som inneholder alt du trenger for å kjøre Ansible Navigator.
Dette imaget blir din kontroller node.

ansible-navigator
Hvis vi skriver dette inn i terminalen en gang til så starter Ansible Navigator i en TUI (Text User Interface).
 0│Welcome
 1│————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
 2│
 3│Some things you can try from here:
 4│- :collections                                    Explore available collections
 5│- :config                                         Explore the current ansible configuration
 6│- :doc                                    Review documentation for a module or plugin
 7│- :help                                           Show the main help page
 8│- :images                                         Explore execution environment images
 9│- :inventory -i                        Explore an inventory
10│- :log                                            Review the application log
11│- :lint                        Lint Ansible/YAML files (experimental)
12│- :open                                           Open current page in the editor
13│- :replay                                         Explore a previous run using a playbook artifact
14│- :run  -i                   Run a playbook in interactive mode
15│- :settings                                       Review the current ansible-navigator settings
16│- :quit                                           Quit the application
17│
18│happy automating,
19│
20│-winston
                

Skriver vi :images så får vi en liste over images som er tilgjengelig.
Image                      Tag                Execution environment                                Created                        Size
0│creator-ee                 v0.22.0            True                                                 5 months ago                   869 MB
                

Vi kan få frem samme informasjon ved å skrive ansible-navigator images.