AWX installation

2018-12-04

Installation of AWX (Test version of Ansible Tower).

1. Install AWX

Overall procedure can use Reference of AWX Installation

2. Remember, before run the installer (ansible-playbook -i inventory install.yml), edit the inventory

  1. postgres_data_dir ==> make sure that ansible database persist upon restart
  2. project_data_dir ==> for deploying project using manual SCM and using Docker type deployment.
    These is the error:
    WARNING: There are no available playbook directories in /var/lib/awx/projects. Either that directory is empty, or all of the contents are already assigned to other projects. Create a new directory there and make sure the playbook files can be read by the “awx” system user, or have AWX directly retrieve your playbooks from source control using the SCM Type option above.
    root@awx:~/awx/installer# cat inventory |grep postgres_data_dir
    postgres_data_dir=/pgdocker
    root@awx:~/awx/installer# cat inventory |grep project_data_dir
    project_data_dir=/var/lib/awx/projects
    root@awx:~/awx/installer# ansible-playbook -i inventory install.yml
    

    3. After AWX successfully installed:

  3. Access portal is accessible: AWX portal
    Login using username/password:admin/password as defined in the awx installer inventory file
  4. Download sample playbook into :/var/lib/awx/projects
    root@awx:/var/lib/awx/projects# git clone https://github.com/ansible/ansible-tower-samples
    Cloning into 'ansible-tower-samples'...
    remote: Enumerating objects: 6, done.
    remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 6
    Unpacking objects: 100% (6/6), done.
    
  5. Modify hosts from all to variable binding
    ` bash
    root@awx:/var/lib/awx/projects/ansible-tower-samples# cat hello_world.yml
  1. Create sample project
  2. Verify sample project created
  3. Create sample inventory and add sample host
  4. Create group per application
  5. Create host inside application
  6. Create sample credential
  7. Create sample job template
  8. Run Sample Job Template
  9. Check Running Job

4. Error, why?

How to pass this error:

root@awx:~# ssh 192.168.220.11
The authenticity of host '192.168.220.11 (192.168.220.11)' can't be established.
ECDSA key fingerprint is SHA256:zf5JpbmIOZ2jiMFeUEhScg5SwK5E61oOCqD6xpvMRBA.
Are you sure you want to continue connecting (yes/no)?

Error message:

How to pass this error:

teddy@minikubesvr:~$ sudo apt install python