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 9f9894344d etc-git: scope=local is not always supported 4 years ago
..
defaults etc-git: add a task to commit 4 years ago
files etc-git: ignore *.swp files 5 years ago
meta Ansible >= 2.2 supported 4 years ago
tasks etc-git: scope=local is not always supported 4 years ago
tests etc-git: fix specs with correct /etc directory 4 years ago
.kitchen.yml Kitchen: Change base image to evolix/ansible 4 years ago
README.md fix example 4 years 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: 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"