mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Use state: latest
for dpkg_selections
test.
We don't need to test with `upgrade: dist`, since we're not trying to test the `apt` module. We just need to make sure the hold set by the `dpkg_selections` module is working. This change will avoid updating all the packages on the system, which is slow, unnecessary, and can cause the installed python to be changed.
This commit is contained in:
parent
3793bcf481
commit
136a2cca2f
1 changed files with 5 additions and 2 deletions
|
@ -19,7 +19,9 @@
|
||||||
|
|
||||||
- name: attempt to upgrade hello
|
- name: attempt to upgrade hello
|
||||||
apt:
|
apt:
|
||||||
upgrade: dist
|
name: hello
|
||||||
|
state: latest
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: check hello version
|
- name: check hello version
|
||||||
shell: dpkg -s hello | grep Version | awk '{print $2}'
|
shell: dpkg -s hello | grep Version | awk '{print $2}'
|
||||||
|
@ -37,7 +39,8 @@
|
||||||
|
|
||||||
- name: upgrade hello
|
- name: upgrade hello
|
||||||
apt:
|
apt:
|
||||||
upgrade: dist
|
name: hello
|
||||||
|
state: latest
|
||||||
|
|
||||||
- name: check hello version
|
- name: check hello version
|
||||||
shell: dpkg -s hello | grep Version | awk '{print $2}'
|
shell: dpkg -s hello | grep Version | awk '{print $2}'
|
||||||
|
|
Loading…
Reference in a new issue