EvoBSD/roles/etc-git
Jérémy Dubois 798a87b0ff Configure locale to en_US.UTF-8, use vim as default git edit, and bump EvoBSD version
Configure locale to en_US.UTF-8 in .profile file so that "git log" displays the accents correctly
Use vim as default git editor for the same reason, and because its better than vi
Bump EvoBSD version : OpenBSD 7.0 is out
2021-12-09 11:03:38 +01:00
..
defaults Ansible-lint and yamllint again 2020-06-01 11:37:15 +02:00
files Add file to .gitignore 2020-10-27 11:05:46 +01:00
tasks Configure locale to en_US.UTF-8, use vim as default git edit, and bump EvoBSD version 2021-12-09 11:03:38 +01: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"