Login the admin console and run this in cloudshell
$ gcloud compute ssh ansible-deployer-instance-1 --zone=europe-west1-b
$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install ansibleCreate inventory file in project root. You should specify ip address of your
server in this file.
[web]
46.101.210.137
ansible-galaxy install -r requirements.ymlCopy vars/main.yml.example to vars/main.yml and change variable values for
your needs. For security reasons you may want to encrypt this file using
ansible-vault:
ansible-vault encrypt vars/main.ymlAnd then edit this file with
ansible-vault edit vars/main.yml