During the process of automating VMware template creation, I came across a requirement to clone said templates to different vcenters. After checking out the ansible vmware modules, the vmware REST API documentation, I found that there was no out of box solution to clone to different vcenters. After doing a bit of research, I was … Continue reading Ansible / Python Cross vcenter clone
Category: ansible
Generate SSH Keys
I created a simple play to help a non linux team to be able to generate ssh keys on demand. The playbook requires the var email to be set, once done the playbook generates public/private ssh keypair, then emails the contents of the keys to the specified email address. Finally the playbook deletes the generated … Continue reading Generate SSH Keys
Ansible Migrate GIT repos
Summary I recently had to figure out how to automate a migration of a dev git repo to a qa git repo. For security reasons, the repositories had to be kept separate, using one repo with branches for environments was immediately ruled out. The challenge then is to maintain 2 seperate git repositories, build an … Continue reading Ansible Migrate GIT repos
Add a volume to an Openstack Instance
Summary As a follow on to a similar post regarding vmware disks , this post will focus on a playbook to attach extra volumes to an Openstack instance. Requirements An account with appropriate access to add volumes in OSP.A valid instance.Enough resources to handle the new volumes. Get 'er done! The playbook requires an instance … Continue reading Add a volume to an Openstack Instance
Add new disks to VMware VM
Summary I was asked by a user to add a new disk to a VMware VM. I immediatly thought, I have to automate this. Although there is an ansible module available in 2.8 that will do this, I am working in an environment that uses Ansible 2.7, so I had to achieve this task using … Continue reading Add new disks to VMware VM
Ansible DNS Check Playbook
Recently I was working on writing some quick Openstack and VMware deployment workflows. I wrote a DNS Check playbook to do a quick DNS lookup that would fail if the requested hostname already existed in DNS. This playbook runs on the ansible host and uses the lookup plugin to perform a dig on the passed … Continue reading Ansible DNS Check Playbook