2016-01-21 09:51:13 +00:00
|
|
|
---
|
|
|
|
# Deploy git infos
|
|
|
|
# ----------------
|
2016-12-02 11:37:22 +00:00
|
|
|
- name: 'GIT | Install script for collecting git info'
|
|
|
|
template:
|
|
|
|
src: "{{ role_path }}/gen-gitinfos.sh"
|
|
|
|
dest: "{{ bin_dir }}/gen-gitinfos.sh"
|
|
|
|
mode: a+rwx
|
2016-01-21 09:51:13 +00:00
|
|
|
|
|
|
|
- name: 'GIT | generate git informations'
|
|
|
|
local_action: command {{ role_path }}/gen-gitinfos.sh global
|
|
|
|
register: gitinfo
|
2017-02-13 14:00:56 +00:00
|
|
|
check_mode: no
|
2016-01-21 09:51:13 +00:00
|
|
|
|
|
|
|
- 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
|
2017-02-13 14:00:56 +00:00
|
|
|
check_mode: no
|
2016-01-21 09:51:13 +00:00
|
|
|
|
|
|
|
- name: 'GIT | copy git diff file'
|
|
|
|
copy:
|
|
|
|
content: "{{ gitdiff.stdout }}"
|
|
|
|
dest: /etc/.git-ansible.diff
|
|
|
|
backup: yes
|