-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow upgrade step to be configurable #25
Conversation
dist upgrade only when enabled
set default `true` for pve_dist_upgrade
tasks/main.yml
Outdated
@@ -66,6 +66,7 @@ | |||
update_cache: yes | |||
cache_valid_time: 3600 | |||
upgrade: dist | |||
when: pve_dist_upgrade | default(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default
filter here is redundant since it's already specified as a default in defaults/main.yml
. Can you remove this?
Actually, I think it would be a better option to move the variable to the upgrade
parameter and allow users to configure either a safe-upgrade or dist-upgrade, because with this method we're skipping all upgrades.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right, with upgrade we have better options to perform upgrade.
Can you also add this variable to the documentation as well? |
updated README.md
tasks/main.yml
Outdated
@@ -65,7 +65,7 @@ | |||
apt: | |||
update_cache: yes | |||
cache_valid_time: 3600 | |||
upgrade: dist | |||
upgrade: pve_upgrade |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pve_upgrade
needs to be "{{ pve_upgrade }}"
so that the variable gets interpreted properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, fixed.
sometimes dist upgrade operation can be dangerous.
so would nice to set otherwise.
ps: it's enabled by default