Purge old upgrade hooks and unused tasks (#1641)

This commit is contained in:
Matthew Mosesohn
2017-09-09 23:41:20 +03:00
committed by GitHub
parent 649388188b
commit 5d99fa0940
15 changed files with 2 additions and 380 deletions

View File

@@ -1,30 +0,0 @@
---
# 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

View File

@@ -16,10 +16,6 @@
become: true
tags: bootstrap-os
- include: gitinfos.yml
when: run_gitinfos
tags: facts
- include: set_facts.yml
tags: facts