Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#cloud-config
write_files:
- path: /tmp/my-key
permissions: "0400"
content: |
lines
and
more
lines
apt_sources:
- source: "ppa:ansible/ansible"
package_update: true
packages:
- software-properties-common
- git
- [ansible, 2.0.0.2-1ppa~trusty]
runcmd:
- GIT_SSH="ssh -i /tmp/my-key" git clone git@git.internal:group/ansible.git /tmp/ansible
- cd /tmp/ansible
- ansible-playbook --connection=local -i inventory/localhost.ini playbook.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment