ansible role to install etckeeper on debian/fedora/centos
Find a file
2016-08-25 20:50:55 +02:00
defaults allow avoiding autocommits 2016-08-25 20:04:05 +02:00
tasks add an optional post-commit hook to send a commit email 2016-08-25 20:50:55 +02:00
templates add an optional post-commit hook to send a commit email 2016-08-25 20:50:55 +02:00
README.md add an optional post-commit hook to send a commit email 2016-08-25 20:50:55 +02:00

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'],
        avoid_autocommits: true }

To send commit emails to root:

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