mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-08 01:47:37 -02:30
script which gives info about the deployment state
fix script location
This commit is contained in:
25
roles/kubernetes/preinstall/tasks/gitinfos.yml
Normal file
25
roles/kubernetes/preinstall/tasks/gitinfos.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
# 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
|
||||
@@ -1,4 +1,6 @@
|
||||
---
|
||||
- include: gitinfos.yml
|
||||
|
||||
- name: gather os specific variables
|
||||
include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
|
||||
Reference in New Issue
Block a user