EvoBSD/roles/etc-git
2022-04-13 16:57:39 +02:00
..
defaults Ansible-lint and yamllint again 2020-06-01 11:37:15 +02:00
files etc-git: manage commits with an optimized shell script instead of many slow Ansible tasks + add versioning for /usr/share/scripts 2022-04-13 15:28:10 +02:00
tasks Applying fix from yamllint and ansible-lint 2022-04-13 16:57:39 +02:00
README.md Add initial project 2018-12-28 11:23:49 +01:00

etc-git

Put /etc under Git version control.

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:
      commit_message: "Ansible pre-run my splendid playbook"