allow avoiding autocommits
by default, etckeeper will be configured so that auto commits are on (etckeeper default). if avoid_autocommits is true, etckeeper will be configured to avoid autocommits (daily or before package manager runs).
This commit is contained in:
parent
6de0ca21cc
commit
3649de7e3a
2 changed files with 4 additions and 2 deletions
2
defaults/main.yml
Normal file
2
defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
avoid_autocommits: false
|
|
@ -18,7 +18,7 @@ DARCS_COMMIT_OPTIONS="-a"
|
||||||
|
|
||||||
# Uncomment to avoid etckeeper committing existing changes
|
# Uncomment to avoid etckeeper committing existing changes
|
||||||
# to /etc automatically once per day.
|
# to /etc automatically once per day.
|
||||||
#AVOID_DAILY_AUTOCOMMITS=1
|
AVOID_DAILY_AUTOCOMMITS={{ '1' if avoid_autocommits else '0' }}
|
||||||
|
|
||||||
# Uncomment the following to avoid special file warning
|
# Uncomment the following to avoid special file warning
|
||||||
# (the option is enabled automatically by cronjob regardless).
|
# (the option is enabled automatically by cronjob regardless).
|
||||||
|
@ -27,7 +27,7 @@ DARCS_COMMIT_OPTIONS="-a"
|
||||||
# Uncomment to avoid etckeeper committing existing changes to
|
# Uncomment to avoid etckeeper committing existing changes to
|
||||||
# /etc before installation. It will cancel the installation,
|
# /etc before installation. It will cancel the installation,
|
||||||
# so you can commit the changes by hand.
|
# so you can commit the changes by hand.
|
||||||
#AVOID_COMMIT_BEFORE_INSTALL=1
|
AVOID_COMMIT_BEFORE_INSTALL={{ '1' if avoid_autocommits else '0' }}
|
||||||
|
|
||||||
# The high-level package manager that's being used.
|
# The high-level package manager that's being used.
|
||||||
# (apt, pacman-g2, yum, dnf, zypper etc)
|
# (apt, pacman-g2, yum, dnf, zypper etc)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue