Skip to content

Instantly share code, notes, and snippets.

@offlinehoster
Created February 22, 2018 17:07
Show Gist options
  • Save offlinehoster/9c9fffe15b63b428046310a9e7fbc07a to your computer and use it in GitHub Desktop.
Save offlinehoster/9c9fffe15b63b428046310a9e7fbc07a to your computer and use it in GitHub Desktop.
---
# tasks file for addToGit
- include_vars: "{{ item }}"
with_items:
- vars.yml
- adminsecrets.yml
- name: Add var file
shell: cd {{ playbook_dir }} && git add {{ item }}
with_items:
- '{{ playbook_dir }}/vars.yml'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment