Skip to content
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

Merged
merged 4 commits into from
Mar 19, 2018
Merged

Conversation

roadrunner
Copy link
Contributor

sometimes dist upgrade operation can be dangerous.
so would nice to set otherwise.
ps: it's enabled by default

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)
Copy link
Owner

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.

Copy link
Contributor Author

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.

@lae
Copy link
Owner

lae commented Mar 19, 2018

Can you also add this variable to the documentation as well?

tasks/main.yml Outdated
@@ -65,7 +65,7 @@
apt:
update_cache: yes
cache_valid_time: 3600
upgrade: dist
upgrade: pve_upgrade
Copy link
Owner

@lae lae Mar 19, 2018

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, fixed.

@lae lae changed the title optional dist upgrade Allow upgrade step to be configurable Mar 19, 2018
@lae lae merged commit ede0b7e into lae:develop Mar 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants