ansible-roles/etc-git
Jérémy Lecour 9f9894344d etc-git: scope=local is not always supported
git version 1.7.2.5 (Debian 7) doesn't have "--local" scope
2017-09-29 12:01:06 +02:00
..
defaults etc-git: add a task to commit 2017-04-25 10:10:17 +02:00
files etc-git: ignore *.swp files 2017-01-06 11:02:44 +01:00
meta Ansible >= 2.2 supported 2017-03-24 14:15:09 +01:00
tasks etc-git: scope=local is not always supported 2017-09-29 12:01:06 +02: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 fix example 2017-08-29 11:22:21 -04: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 post-run my splendid playbook"