Ansible roles by Evolix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Jérémy Lecour 7283e34077 Replace version_compare() with version() 8 months ago
..
defaults etc-git: conditional for cron job 2 years ago
files etc-git: some entries of .gitignore are mandatory 2 years ago
meta change repositories URL 1 year ago
tasks Replace version_compare() with version() 8 months ago
templates etc-git: status cron job is run by root 2 years ago
tests etc-git: fix specs with correct /etc directory 3 years ago
.kitchen.yml Kitchen: Change base image to evolix/ansible 3 years ago
README.md Add evolix prefix to include_role 11 months ago

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) ;