Milestone #7.3 7.4 : Deployment Continued... - zacharylongo/Tech-Journals GitHub Wiki

Deployment Continued

7.3: Post Provisioning Rocky VMs with Ansible:

  • I would attempt to use the following to add a public key for my user, create a sudoers drop in file for passwordless elevation and set hostname / make sure the DHCP IP is static.

In theory, the following playbooks / inventories should work

linux.yml

rocky-playbook.yml

In reality, I had an issue with the deployment. From my understanding, something in my ansible installation (which I've reinstalled and custom configured numerous times) was not allowing the use of inventory files. My temporary fix to this was appending the /etc/ansible/ansible.cfg config file; however this seemed to work inconsistently. With that being said, this portion of the lab (and the next) were completed manually, however the playbooks provided will likely work in your instance.

7.4 Post Provisioning Ubuntu VMs with(out) Ansible:

For this part of the milestone I once again had issues with ansible. However I did create the playbooks/inventories necessary for this to function.

linux.yml

ubuntu-playbook.yml

  • I ended up simply typing these commands out manually.