Read this in other languages:
English, 日本語, Portugues do Brasil, Française, Español.
In this exercise, you’ll explore how Ansible Automation Controller handles user and group management through Role-Based Access Control (RBAC). This ensures proper delegation of rights while keeping automation secure.
There are three types of users in Ansible Automation Controller:
Let’s create a user:
Fill in the following values:
Parameter | Value |
---|---|
Username | wweb |
Password | ansible |
Confirm Password | ansible |
First Name | Werner |
Last Name | Web |
wweb@example.com | |
Organization | Default |
Teams are subdivisions of an organization that include users, projects, credentials, and permissions, helping to implement RBAC efficiently.
Create a Team:
Web Content
within the Default
organization.Add a User to the Team:
Web Content
team.To grant users the ability to execute tasks, permissions need to be set.
Grant Permission to Use a Template:
Create index.html
.wweb
user and click Next.Now, log out and log in again as the wweb
user.
Create index.html
template listed.Once the job completes, verify the result by relogging back in as an admin user to the Ansible Automation Platform dashboard.
Go to Automation Execution → Infrastructure → Inventories → Workshop Inventory
In the **Automation Execution → Infrastructure → Inventories → Workshop Inventory, select the Hosts tab and select node1 and click Run Command
Within the Details window, select Module command, in Arguments type curl http://node1
and click Next.
Within the Execution Environment window, select Default execution environment and click Next.
Within the Credential window, select Workshop Credentials and click Next.
Review your inputs and click Finish.
Verify that the output result is as expected.
Just recall what you have just done: You enabled a restricted user to run an Ansible playbook
Without having access to the credentials
Without being able to change the playbook itself
But with the ability to change variables you predefined!
Effectively you provided the power to execute automation to another user without handing out your credentials or giving the user the ability to change the automation code. And yet, at the same time the user can still modify things based on the surveys you created.
This capability is one of the main strengths of Ansible automation controller!
Navigation
Previous Exercise - Next Exercise
Click here to return to the Ansible for Red Hat Enterprise Linux Workshop