Read this in other languages:
English, 日本語, Portugues do Brasil, Française, Español.
This workshop’s initial phase focuses on the command-line utilities of the Ansible Automation Platform, such as:
ansible
, ansible-playbook
and ansible-doc
.If you need more information on new Ansible Automation Platform components bookmark this landing page https://red.ht/AAP-20
You’ll work in a pre-configured environment with the following hosts:
Role | Inventory name |
---|---|
Ansible Control Host | ansible-1 |
Managed Host 1 | node1 |
Managed Host 2 | node2 |
Managed Host 3 | node3 |
We recommend using Visual Studio Code for this workshop for its integrated file browser, syntax-highlighting editor, and in-browser terminal. Direct SSH access is also available. Check out this YouTube tutorial on accessing your workbench environment.
NOTE: There is a short YouTube video provided if you need additional clarity: Ansible Workshops - Accessing your workbench environment
rhel-workshop
directory on the Ansible control node terminal.[student@ansible-1 ~]$ cd ~/rhel-workshop/
[student@ansible-1 rhel-workshop]$ pwd
/home/student/rhel-workshop
~
: shortcut for the home directory /home/student
cd
: command to change directoriespwd
: prints the current working directory’s full path.ansible-navigator images
to view configured Execution Environments.ee-supported-rhel8
$ ansible-navigator images
Note: The output you see might differ from the above output
Selecting 2
for Ansible version and collections
will show us all Ansible Collections installed on that particular EE, and the version of ansible-core
:
~/.ansible-navigator.yml
using Visual Studio Code or the cat
command.$ cat ~/.ansible-navigator.yml
---
ansible-navigator:
ansible:
inventory:
entries:
- /home/student/lab_inventory/hosts
execution-environment:
image: registry.redhat.io/ansible-automation-platform-20-early-access/ee-supported-rhel8:2.0.0
enabled: true
container-engine: podman
pull:
policy: missing
volume-mounts:
- src: "/etc/ansible/"
dest: "/etc/ansible/"
ansible-navigator.yml
file:inventories
: shows the location of the ansible inventory being usedexecution-environment
: where the default execution environment is setFor a full listing of every configurable knob checkout the documentation
Each chapter comes with a Challenge Lab. These tasks test your understanding and application of the learned concepts. Solutions are provided under a warning sign for reference.
Navigation
Click here to return to the Ansible for Red Hat Enterprise Linux Workshop