ansible-roles/etc-git
William Hirigoyen c861fe1974
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2655|8|2647|4|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/417//ansiblelint">Evolix » ansible-roles » unstable #417</a> Details
gitea/ansible-roles/pipeline/head This commit looks good Details
etc-git: add /var/chroot-bind/etc/bind to Git safe directories to avoid owner check by Git (bind owns the repo, not root)
2023-11-30 17:41:25 +01:00
..
defaults etc-git: use "ansible-commit" to efficiently commit all available repositories (including /etc inside LXC) from Ansible 2022-04-27 14:22:59 +02:00
files etc-git: release 22.05 of ansible-commit 2022-05-06 18:10:01 +02:00
meta Update Galaxy metadata (company, platforms and galaxy_tags) 2021-06-28 15:26:28 +02:00
tasks etc-git: add /var/chroot-bind/etc/bind to Git safe directories to avoid owner check by Git (bind owns the repo, not root) 2023-11-30 17:41:25 +01:00
tests etc-git: fix specs with correct /etc directory 2017-04-21 11:23:30 +02:00
.kitchen.yml Kitchen: Change base image to evolix/ansible 2017-06-02 08:38:08 -04:00
README.md Add evolix prefix to include_role 2019-11-29 14:00:25 +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: evolix/etc-git
      tasks_from: commit.yml
    vars:
      commit_message: "Ansible pre-run my splendid playbook"

  roles :
  […]

  post_tasks:
  - include_role:
      name: evolix/etc-git
      tasks_from: commit.yml
    vars:
      commit_message: "Ansible post-run my splendid playbook"

Available variables

  • etc_git_monitor_status: monitor uncommited changes in /etc/.git (default: True) ;