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
Recently I came across an issue getting ssh keys working from a linux machine to a windows 2016 server running openssh server. I generated the keys are you usually do, copied the public key over to the windows users $HOME/.ssh/authorized_keys. However it didn't seem to work. After a lot of digging around I found it … Continue reading Fun with authorized_keys, openssh and window 2k16.
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
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
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
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