EvoBSD/roles/etc-git
Patrick Marchand 98089a3274
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
Fix yaml lint lines too long
In some cases I used block scalars: https://yaml-multiline.info/
In other cases I added newlines
In rare cases I just ignored the rule: https://yamllint.readthedocs.io/en/stable/disable_with_comments.html
2020-06-04 12:51:53 -04:00
..
defaults Ansible-lint and yamllint again 2020-06-01 11:37:15 +02:00
files Add initial project 2018-12-28 11:23:49 +01:00
tasks Fix yaml lint lines too long 2020-06-04 12:51:53 -04: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"