2017-04-25 10:06:42 +02:00
|
|
|
---
|
|
|
|
|
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-04-08 16:07:19 +02:00
|
|
|
- include: do_commit.yml
|
|
|
|
vars:
|
|
|
|
git_folder: "/etc"
|
|
|
|
when:
|
|
|
|
- _etc_git.stat.exists
|
|
|
|
- _etc_git.stat.isdir
|
2017-07-27 22:49:14 +02:00
|
|
|
|
|
|
|
|
2017-04-25 10:06:42 +02:00
|
|
|
|
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
|
|
|
|
|
|
|
|
- include: do_commit.yml
|
|
|
|
vars:
|
|
|
|
git_folder: "/usr/share/scripts"
|
|
|
|
when:
|
|
|
|
- _usr_share_scripts_git.stat.exists
|
|
|
|
- _usr_share_scripts_git.stat.isdir
|