2017-04-25 10:06:42 +02:00
|
|
|
---
|
|
|
|
|
2021-10-02 12:50:01 +02:00
|
|
|
- name: "evocommit script is installed"
|
|
|
|
copy:
|
|
|
|
src: evocommit
|
|
|
|
dest: /usr/local/bin/evocommit
|
|
|
|
mode: "0755"
|
|
|
|
force: yes
|
|
|
|
|
|
|
|
# /etc
|
2021-04-08 16:07:19 +02:00
|
|
|
- name: Is /etc a git repository
|
|
|
|
stat:
|
|
|
|
path: /etc/.git
|
|
|
|
register: _etc_git
|
2017-04-25 10:06:42 +02:00
|
|
|
|
2021-10-02 12:50:01 +02:00
|
|
|
- name: "evocommit /etc"
|
|
|
|
command: "/usr/local/bin/evocommit --repository /etc --message \"{{ commit_message | mandatory }}\""
|
|
|
|
ignore_errors: yes
|
2021-05-13 15:23:05 +02:00
|
|
|
when:
|
2021-06-20 15:38:53 +02:00
|
|
|
- _etc_git.stat.exists
|
|
|
|
- _etc_git.stat.isdir
|
2017-04-25 10:06:42 +02:00
|
|
|
|
2021-10-02 12:50:01 +02:00
|
|
|
# /etc/bind
|
|
|
|
- name: Is /etc/bind a git repository
|
|
|
|
stat:
|
|
|
|
path: /etc/bind/.git
|
|
|
|
register: _etc_bind_git
|
|
|
|
|
|
|
|
- name: "evocommit /etc/bind"
|
|
|
|
command: "/usr/local/bin/evocommit --repository /etc/bind --message \"{{ commit_message | mandatory }}\""
|
|
|
|
ignore_errors: yes
|
|
|
|
when:
|
|
|
|
- _etc_bind_git.stat.exists
|
|
|
|
- _etc_bind_git.stat.isdir
|
|
|
|
|
|
|
|
# /usr/share/scripts
|
2021-04-08 16:07:19 +02:00
|
|
|
- name: Is /usr/share/scripts a git repository
|
|
|
|
stat:
|
|
|
|
path: /usr/share/scripts/.git
|
|
|
|
register: _usr_share_scripts_git
|
|
|
|
|
2021-10-02 12:50:01 +02:00
|
|
|
- name: "evocommit /usr/share/scripts"
|
|
|
|
command: "/usr/local/bin/evocommit --repository /usr/share/scripts --message \"{{ commit_message | mandatory }}\""
|
|
|
|
ignore_errors: yes
|
2021-04-08 16:07:19 +02:00
|
|
|
when:
|
2021-06-20 15:38:53 +02:00
|
|
|
- _usr_share_scripts_git.stat.exists
|
|
|
|
- _usr_share_scripts_git.stat.isdir
|