5f4cc3e1de
always_run was deprecated in Ansible 2.2 and will be removed in 2.4 ansible logs contain "[DEPRECATION WARNING]: always_run is deprecated. Use check_mode = no instead". This patch fix deprecation.
30 lines
738 B
YAML
30 lines
738 B
YAML
---
|
|
# Deploy git infos
|
|
# ----------------
|
|
- name: 'GIT | Install script for collecting git info'
|
|
template:
|
|
src: "{{ role_path }}/gen-gitinfos.sh"
|
|
dest: "{{ bin_dir }}/gen-gitinfos.sh"
|
|
mode: a+rwx
|
|
|
|
- name: 'GIT | generate git informations'
|
|
local_action: command {{ role_path }}/gen-gitinfos.sh global
|
|
register: gitinfo
|
|
check_mode: no
|
|
|
|
- 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
|
|
check_mode: no
|
|
|
|
- name: 'GIT | copy git diff file'
|
|
copy:
|
|
content: "{{ gitdiff.stdout }}"
|
|
dest: /etc/.git-ansible.diff
|
|
backup: yes
|