EvoBSD/roles/etc-git
Jérémy Dubois 99ff7284a3 base, collectd, etc-git, logsentry, nagios-nrpe: install packages manually
Because openbsd_pkg module is broken since OpenBSD 7.4 with the version of Ansible we currently use
2024-03-13 15:17:20 +01:00
..
defaults etc-git: use "ansible-commit" to efficiently commit all available repositories from Ansible 2022-05-03 15:55:45 +02:00
files etc-git: do not erase custom entries of servers in .gitignore files 2022-08-04 18:03:23 +02:00
tasks base, collectd, etc-git, logsentry, nagios-nrpe: install packages manually 2024-03-13 15:17:20 +01:00
README.md Add initial project 2018-12-28 11:23:49 +01:00

README.md

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"