Skip to content

Instantly share code, notes, and snippets.

@hagbarddenstore
Created February 3, 2016 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hagbarddenstore/bd68e0ebd8944c99b147 to your computer and use it in GitHub Desktop.
Save hagbarddenstore/bd68e0ebd8944c99b147 to your computer and use it in GitHub Desktop.
#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