EvoBSD/tasks/commit_etc_git.yml
Jérémy Dubois e29e0e9e62 Ansible-lint and yamllint again
Lot of truthy variables, indentation and trailing spaces
2020-06-01 11:37:15 +02:00

22 lines
644 B
YAML

---
- name: is /etc clean?
command: git status --porcelain
args:
chdir: /etc
changed_when: false
register: git_status
when: not ansible_check_mode
ignore_errors: true
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') }}@{{ general_technical_realm }}>\""
args:
chdir: /etc
register: etc_commit_end_evolinux
when: not ansible_check_mode and git_status.stdout != ""
ignore_errors: true
tags:
- commit-etc