ansible role to install etckeeper on debian/fedora/centos
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
neingeist 83118cbcbe don't user jinja2 templating in when statements
fixes warning:

[WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}.
in etckeeper role: `Found: email_configured.stdout != "{{etckeeper_user_email}}"
8 years ago
defaults set git user.{name,email} 8 years ago
tasks don't user jinja2 templating in when statements 8 years ago
templates merge etckeeper.conf.rpmnew 8 years ago
README.md set git user.{name,email} 8 years ago

README.md

Examples

roles:
    - { role: etckeeper,                    tags: ['system', 'etckeeper']}

To avoid etckeeper autocommits (daily or before package manager runs) set avoid_autocommits to true:

roles:
    - { role: etckeeper,                    tags: ['system', 'etckeeper'],
        etckeeper_avoid_autocommits: true }

To send commit emails to root:

roles:
    - { role: etckeeper,                    tags: ['system', 'etckeeper'],
        etckeeper_avoid_autocommits: true,
        etckeeper_mailto: root }

The role sets "root root@the.host.name" as the default user/email in etckeeper's git config. To change that set these options:

roles:
    - { role: etckeeper,                    tags: ['system', 'etckeeper'],
        etckeeper_user_name: "Charlie Root",
        etckeeper_user_email: "charlie@corp.com" }