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

RFI: Does State:Searched and State:Installed work together #586

Open
michael-franck opened this issue Feb 21, 2024 · 1 comment
Open

RFI: Does State:Searched and State:Installed work together #586

michael-franck opened this issue Feb 21, 2024 · 1 comment

Comments

@michael-franck
Copy link

SUMMARY

I'm not sure but couldn't make it out from the documentation.

When performing a win_updates task with a state:searched, does this store the searched updates for subsequent tasks.

Let's say you want to perform the search in the beginning of your playbook in async mode.
At the end you want to reboot and start another win_updates task with state:installed in synchronous mode.

Would the second only perform the installs, completing faster?

ISSUE TYPE
  • Documentation Report
COMPONENT NAME

ansible.windows.win_updates

ANSIBLE VERSION
ansible [core 2.13.6]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.10.6 (main, Nov  2 2022, 18:53:38) [GCC 11.3.0]
  jinja version = 3.0.3
  libyaml = True
@jborean93
Copy link
Collaborator

It's all part of the Windows Update API, while I believe it does cache the existing results internally so doing a search then install as separate tasks might be more efficient it is still going to check if there are more updates available on the second run.

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

No branches or pull requests

2 participants