Get Started With Red Hat Ansible Tower
Get Started With Red Hat Ansible Tower
Contents
for everyone in your IT team to use, yet powerful enough to automate even the
most complex multi-tier IT applications and environments. Red Hat Ansible Engine
is a fully supported product built on the foundational capabilities derived from the
Ansible project.
Get Started with Ansible
Ansible makes automation simple. Ansible Engine gives you support, and
Ansible Tower is the framework that puts you in control.
Writing a Playbook
Ansible Galaxy
GET STARTED Ansible is an IT automation engine that
thousands of companies are using to drive
ON-DEMAND WEBINAR
Writing a Playbook 7
Playbooks are Not Code
Playbooks are, at a basic level, a list of tasks.
Writing a Playbook 8
KEY TAKEAWAYS
BLOG POST
ON DEMAND WEBINAR
Make sure you have the Unpack the tar file. Set up your passwords: Run the setup script. Once
latest Ansible Tower edition. installation has completed,
admin_password for navigate to your Ansible
Ansible Tower administration Tower host using Google
Chrome or Mozilla Firefox by
rabbitmq_password for
using either the hostname or
Ansible Tower messaging
IP address.
pg_password for Ansible
Tower database
If you prefer a clustered install – where you can run more playbooks at once by sharing the load – rather than an all-in-one approach, Ansible
Tower supports that, too. Clustering with Ansible Tower is quick and can be done with a few simple changes to your inventory file. Whether you
are adding one extra server to make a cluster or adding three, Ansible Tower helps your team scale Ansible capacity in your organization.
For more information on Installing an Ansible Tower Cluster visit our Getting Started series.
1. Installation is easy
In the time it takes to brew your coffee, you
can have Ansible Tower installed and ready to
begin automating. Are you ready to scale automation,
manage complex deployments and
2. Customize your installation speed up productivity?
Clustered installs are a great option for scaling
out Ansible capacity.
ANSIBLE DOCUMENTATION
1. Organization: The top level of the user base - 1. Normal User: A user that is given no special
a logical collection of users, teams, projects and permissions from the beginning - permissions
inventories. must be granted to them by a system
administrator.
2. Team: A subdivision of an organization -
provides the means to set up and implement 2. System Auditor: A user who will have view-
role-based access schemes as well as to only access within Ansible Tower.
delegate work across organizations.
3. System Administrator: A user who has the
3. User: Someone who has access to power to grant and remove credentials, move
Ansible Tower with associated permissions and users to different organizations and teams and
credentials. other exclusive privileges.
Select the Settings gear in the top right Select the +Add button and a user Save the user. You can now grant the user
and select Users. This will take you to creation page will be displayed. individual credentials and add them to
the users page. organizations or teams from the Edit User
From this page, you will also create their
screen.
Note: If you are starting fresh, only the “admin” default password that can be changed
account will be displayed. by them once they login for the first
time. After a password is set, you’ll set
the User Type (System Auditor, etc.).
For more information on Ansible Tower Users and Credentials visit our Getting Started series.
Click the Project link at the top Upon arriving to the new Select the source for this Once you have declared the
of your Tower instance and project page, name the project project, whether that be source, you can select Clean,
select the +Add button. and select which organization locally or through an SCM. Delete on Update and Update
within your instance will be on Launch from the SCM
using this project. update options. Once you
Note: The base path where
projects are stored is /var/lib/ have the correct source and
awx/projects. you have selected the options
you need, hit the save button
and you will be returned to
the Projects page with your
new project listed.
For more information on Ansible Tower Projects and Inventories visit our Getting Started series.
Step 1:
Step 2: Step 3:
Select Templates from the top of the
The first two options that need to be added Select the inventory you want to use for
screen next to Inventories. This will
to the template are Name and Job Type. your job template.
bring you to the templates screen
There are two available choices:
with all of your current options from
Step 4:
which you can select. From here,
Check performs a “dry run” of the Choose the project, keeping in mind that
navigate to the Add drop-down box
playbook and reports changes that would the project you select will dictate which
and select Job Template.
be made without actually making them. playbook you can select.
Run executes the tasks in the playbook Note: Ansible Tower will not display the full file
on the selected hosts. Depending on what name. For example, if the file name for your
the playbook does, this will determine the playbook is AWS.yml, Ansible Tower will display
type of job that needs to be selected. it as AWS.
Step 5:
Step 6: Step 7:
Select the credentials to save the job
Select the Forks, Limits and Verbosity You can also set a few other additional
template. The most important option
levels. options, such as job tags and skip tags.
is the Machine Credential. The other
More information about additional tags
three options are:
Forks: the number of parallel or that can be set can be found in the Job
· Vault simultaneous processes in use while Templates documentation page.
· Cloud executing the playbook.
· Network
Limits: host patterns to further
Depending on what you are constrain the job template’s targeted
managing with this template, you hosts.
might need either a cloud credential
or a network credential. Verbosity: allows you to control
the amount of data returned in the
playbook run.
For more information on Setting Up a Job Template visit our Getting Started series.
ANSIBLE DOCUMENTATION
You can find the most popular roles on the Galaxy home Roles can be used for automating a wide variety of
page, or you can use the search tool to search for all tasks, anything from the steps in your CI/CD workflow
available roles. to packaging and distributing a product your company
makes.
Download a role using the ansible-galaxy command that
comes bundled with Ansible (e.g., ansible-galaxy install Once you finish development, push your changes to
username.rolename). GitHub by running the following from within the project
directory:
$ git commit -a
$ git push
Ansible Galaxy 24
KEY TAKEAWAYS
ANSIBLE DOCUMENTATION