Ansible AWX
Let's get straight into installing Ansible AWX; we will need a Vagrant box, Docker installed on the Vagrant box, and finally a copy of the AWX source.
Preparing the playbook
For our installation, we will be using Ansible to prepare our Vagrant box and install Ansible AWX. To create the structure for the playbook, run the following commands:
$ mkdir awxawx/group_vars awx/roles $ touch awx/production awx/site.yml awx/group_vars/common.yml awx/Vagrantfile
The Vagrantfile
we are going to be using can be found here:
# -*- mode: ruby -*- # vi: set ft=ruby : API_VERSION = "2" BOX_NAME = "centos/7" BOX_IP = "10.20.30.50" DOMAIN = "nip.io" PRIVATE_KEY = "~/.ssh/id_rsa" PUBLIC_KEY = '~/.ssh/id_rsa.pub' Vagrant.configure(API_VERSION) do |config| config.vm.box = BOX_NAME config.vm.network "private_network", ip: BOX_IP config.vm.host_name = BOX_IP + '.' + DOMAIN config.ssh.insert_key = false config.ssh.private_key_path = [PRIVATE_KEY, "~/.vagrant.d/insecure_private_key"] config.vm...