User Tools

Site Tools


wiki:qclug_presentations:awx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:qclug_presentations:awx [2018/05/08 21:02]
Aaron Johnson
wiki:qclug_presentations:awx [2018/05/08 22:39] (current)
Aaron Johnson
Line 1: Line 1:
 ====== Presentation ====== ====== Presentation ======
  
-{{wiki/​qclug_presentations/​}}+{{wiki/​qclug_presentations/​qclug_awx.pdf}} 
 +{{wiki/​qclug_presentations/​qclug_awx.odp}} 
  
 **//These steps were taken mostly from the upstream installation doc found here://** **//These steps were taken mostly from the upstream installation doc found here://**
Line 97: Line 99:
  
 http://​localhost/#/​inventories/​inventory/​1 http://​localhost/#/​inventories/​inventory/​1
 +
 +==== Add an SSH key/​credential to AWX ====
 +
 +
 +  * Browse to the Credentials section of the AWX dashboard and create a new credential
 +  * Give it a name, make it a Machine Credential type
 +  * Set the username and copy/paste a private SSH key (id_rsa typically) into the SSH Private Key box
 +  * If the private key is secured using a passphrase you can enter that into this page as well
 +  * Click save
 +
 +==== Add Project/​ansible code to AWX ====
 +
 +  * Browse to the Projects section of the AWX dashboard and add your ansible git repo using the SCM URL field of your new project
 +  * Click the "Get latest SCM revision"​ link next to your project to clone your ansible repo
 +
 +==== Create Job Template ====
 +
 +  * Click Templates and add a new Job Template
 +  * Set the name to an appropriate name for the playbook that you intend to run
 +  * Select the playbook you would like AWX to run when you run this job
 +  * Select the inventory that should be used for this job
 +  * Select the credential that should be used for this job
 +  * Optionally set the "​Limit"​ field to the group you would like the playbook to run against
 +  * If the job requires explicit root prilidges you can click the "​Enable Privilege Escalation"​ checkbox
 +  * Click save
 +
 +==== Execute job using the AWX dashboard ====
 +
 +  * Click the "Start Job" icon next to the job template to run it
 +  * Job output should be displayed
 +
 +==== Execute Job via API ====
  
wiki/qclug_presentations/awx.1525813363.txt.gz · Last modified: 2018/05/08 21:02 by Aaron Johnson