c12s-kubespray/roles/kubernetes/common/tasks/gitinfos.yml
Paul Czarkowski 49488e1a86 improve composability
* remove need for `k8s-cluster` parent group
* rename kubernetes/preinstall to kubernetes/common
* make kubernetes/common a dep for both node and master
* move all kubernetes defaults to kubernetes/common
* had python errors with new apps role ... feature flagged it off
2016-07-04 10:19:27 +02:00

25 lines
572 B
YAML

---
# Deploy git infos
# ----------------
- name: 'GIT | generate git informations'
local_action: command {{ role_path }}/gen-gitinfos.sh global
register: gitinfo
always_run: yes
- name: 'GIT | copy ansible information'
template:
src: ansible_git.j2
dest: /etc/.ansible.ini
backup: yes
- name: 'GIT | generate diff file'
local_action: command {{ role_path }}/gen-gitinfos.sh diff
register: gitdiff
always_run: yes
- name: 'GIT | copy git diff file'
copy:
content: "{{ gitdiff.stdout }}"
dest: /etc/.git-ansible.diff
backup: yes