Using Ansible on Google Cloud Shell [How To]

Google Cloud Shell on Google Cloud Platform

On the Google Cloud Platform, Google provides Google Cloud Shell for free to easily manage your services. Whenever you launch the shell, on the backend, the platform creates a new VM instance to drive the shell. This shell instance will if there is more than 30 minutes of inactivity. Because of this, the persistence between sessions is limited. However there is 5GB worth of storage within you $HOME (~) directory which persist between sessions.

Using Ansible on Google Cloud Shell

The Google Cloud Shell provides a great place to to run your Ansible playbooks since you will be able to clone your git repositories into the persistent home directory. However if you try to install Ansible through the package manager (apt-get in this case), every time the session terminates, you lose your Ansible install.

Continue reading “Using Ansible on Google Cloud Shell [How To]”