remove commit_etc_git.yml
We need to use the "etc-git" role
This commit is contained in:
parent
cab89b11ac
commit
83d3f9f186
|
@ -1,21 +0,0 @@
|
||||||
---
|
|
||||||
- name: is /etc clean?
|
|
||||||
command: git status --porcelain
|
|
||||||
args:
|
|
||||||
chdir: /etc
|
|
||||||
changed_when: False
|
|
||||||
register: git_status
|
|
||||||
when: not ansible_check_mode
|
|
||||||
ignore_errors: yes
|
|
||||||
tags:
|
|
||||||
- commit-etc
|
|
||||||
|
|
||||||
- name: /etc modifications are committed
|
|
||||||
shell: "git add -A . && git commit -m \"{{ commit_message | default('Ansible run') }}\" --author=\"{{ ansible_env.SUDO_USER | default('Root') }} <{{ ansible_env.SUDO_USER | default('Root') }}@evolix.net>\""
|
|
||||||
args:
|
|
||||||
chdir: /etc
|
|
||||||
register: etc_commit_end_evolinux
|
|
||||||
when: not ansible_check_mode and git_status.stdout != ""
|
|
||||||
ignore_errors: yes
|
|
||||||
tags:
|
|
||||||
- commit-etc
|
|
Loading…
Reference in a new issue