[ansible-project] Re: Use Ansible to Install SharePoint Server Updates
Thanks for the answer. We tried your recommendations, but the result is the same. Updates are not installed :-( пятница, 5 июня 2020 г., 16:37:45 UTC+6 пользователь Jordan Borean написал: > > What’s the output when you run the win_whoami module with the same become > setup you have for win_shell. Please use -vvv so we can see the output. I > would also try ansible_become_pass as I believe ansible_become_password is > only valid in later Ansible versions. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/39ebd9c6-ae36-4417-884e-4db36b9cd904o%40googlegroups.com.
[ansible-project] Re: Use Ansible to Install SharePoint Server Updates
What’s the output when you run the win_whoami module with the same become setup you have for win_shell. Please use -vvv so we can see the output. I would also try ansible_become_pass as I believe ansible_become_password is only valid in later Ansible versions. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/089606d9-9412-40dc-9562-b997e7dda253o%40googlegroups.com.
[ansible-project] Re: Use Ansible to Install SharePoint Server Updates
Hello, Jordan! Thanks for the answer. We use this playbook and it does not work: - name: Run ps1 script in privileged mode hosts: all gather_facts: no become_method: runas vars: ansible_become_password: elon*musk#1 tasks: - win_shell: C:\Script\Install-Update.ps1 become: yes become_user: spa...@test.kz But, if we run the powershell script "Install-Update.ps1" manually, as an administrator - The installation of updates is successful ! What can you recommend for installing updates through Ansible? Thanks! пятница, 5 июня 2020 г., 4:44:47 UTC+6 пользователь Jordan Borean написал: > > If the task is trying to install updates then you are typically restricted > by Windows over a network logon like WinRM. The way around this that > Ansible provides is the become [1]. This turns the logon type to an > interactive logon which is allowed to install Windows updates just like you > can when running it manually. > > [1] - > https://docs.ansible.com/ansible/latest/user_guide/become.html#become-and-windows > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c4f7b5b8-8cd6-448f-8193-58f9554559cdo%40googlegroups.com.
[ansible-project] Re: Use Ansible to Install SharePoint Server Updates
If the task is trying to install updates then you are typically restricted by Windows over a network logon like WinRM. The way around this that Ansible provides is the become [1]. This turns the logon type to an interactive logon which is allowed to install Windows updates just like you can when running it manually. [1] - https://docs.ansible.com/ansible/latest/user_guide/become.html#become-and-windows -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d7ab32f3-52d0-4470-9f70-4508a8b9d0e4o%40googlegroups.com.