June 2018
Beginner
578 pages
13h 39m
English
The first thing we need to do is update our production inventory file; this should look like the following:
# Register all of the host groups we will be creating in the playbooks[ec2_instance][already_running]# Put all the groups into into a single group so we can easily apply one config to it for overriding things like the ssh user and key location[aws:children]ec2_instancealready_running# Finally, configure some bits to allow us access to the instances before we deploy our credentials using Ansible[aws:vars]ansible_ssh_user=centosansible_ssh_private_key_file=~/.ssh/id_rsahost_key_checking=False
As you can see, we are defining the host groups and also configuring Ansible to use the centos user, which is the default for ...
Read now
Unlock full access