ansible-roles/etc-git/README.md

32 lines
641 B
Markdown
Raw Normal View History

# etc-git
2016-11-15 18:23:53 +01:00
Put /etc under Git version control.
2016-11-15 18:23:53 +01:00
## Tasks
The main part (installation and configuration) is in the `tasks/main.yml` file.
There is also an independant task that can be executed to commit changes made in `/etc/.git`, for example when a playbook is run :
```
- name: My Splendid Playbook
[…]
pre_tasks:
- include_role:
name: etc-git
tasks_from: commit.yml
vars:
commit_message: "Ansible pre-run my splendid playbook"
roles :
[…]
post_tasks:
- include_role:
name: etc-git
tasks_from: commit.yml
vars:
2017-08-29 17:22:21 +02:00
commit_message: "Ansible post-run my splendid playbook"
```