Skip to content

Commit

Permalink
fixing FAQ
Browse files Browse the repository at this point in the history
adding more descriptions on awx user
  • Loading branch information
IPvSean committed Jul 3, 2018
1 parent 8fe358c commit 119720f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
28 changes: 28 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,31 @@ https://docs.ansible.com/ansible-tower/latest/html/upgrade-migration-guide/virtu
### Solution

Ensure the time on your Ansile Tower or Ansible Engine Server is correct.

## Problem: Generic Tower Issue

There is some issue that does not happen on the command line, but manifests itself via the Ansible Tower Web GUI.

### Solution

Red Hat Ansible Tower executes Ansible playbooks via the awx user. SSH to the control node and become the awx user->

```
[user@centos ~]$ sudo su - awx
-bash-4.2$
```

Ansible Tower also takes advantage of a Python virtual environment (referred to as a virtualenv). To mimic how Red Hat Ansible Tower executes playbooks you also must set the virtualenv

```
-bash-4.2$ source /var/lib/awx/venv/ansible/bin/activate
(ansible) -bash-4.2$
```

Ansible Tower stores job templates under the projects folder in the awx home directory, located at `/var/lib/awx/projects`

```
(ansible) -bash-4.2$ ls /var/lib/awx/projects
```

cd into the relevant project folder and execute the Playbook from the command line to run the playbook exactly how it was run from Ansible Tower. This will hopefully let you see an error or problem you were not aware of via the Tower GUI.
3 changes: 1 addition & 2 deletions provisioner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ For more examples, look at the following:

What does the AWS provisioner take care of automatically?
- AWS VPC creation (Amazon WebServices Virtual Private Cloud)
- Creation of an SSH key pair (stored at ./ansible.pem)
- This private key is installed automatically
- Creation of an SSH key pair (stored at ./WORKSHOPNAME/WORKSHOPNAME-private.pem)
- Creation of a AWS EC2 security group
- Creation of a subnet for the VPC
- Creation of an internet gateway for the VPC
Expand Down

0 comments on commit 119720f

Please sign in to comment.