[ansible-project] Re: How to pass Node_Resource_Group while creating AKS cluster via ansible azure_rm_aks module

2020-02-23 Thread Prakash Sharma
Just for benefit of other audience , you need to install galaxy role of azure _preview_modules to achieve this. ansible-galaxy install azure.azure_preview_modules On Tuesday, February 11, 2020 at 10:34:24 AM UTC+8, Prakash Sharma wrote: > > Has anyone tried this ? > > On Saturday, February 8, 2

[ansible-project] Need provisioning in gcp_container_cluster module to specify GKE cluster version

2020-02-23 Thread Rahul Monde
Hello, *Background*: We have ansible tower where all the playbooks resides. End user makes call to such playbook to create required resource. *Problem statement*: I am using *gcp_container_cluster* module to launch GKE cluster. Apart from specifying all the parameters, I want to control the ve

[ansible-project] Re: Windows updates found but not installed

2020-02-23 Thread Andre Gronwald
hi, there should not be a pending reboot, because i rebooted the servers before and tested lots of things. this is the playbook: - name: Install Windows Updates hosts: all tasks: - name: Install all security, critical, and rollup updates without a scheduled task win_updates:

Re: [ansible-project] Connecting to a WinRM host with different credentials?

2020-02-23 Thread Dave York
That was what I was looking for. Thanks Jordan/Tom On Sunday, February 23, 2020 at 10:52:47 AM UTC-8, Jordan Borean wrote: > > Further to the above, those are variables and not attributes you can set > on a play. You need to set them under your the vars key or just add them > using add_host in

[ansible-project] Re: Building a VM using Ansible Tower

2020-02-23 Thread Dan Linder
> I'm not sure if there is a difference in vmware_guest module for Tower or with versions. If the output is the same between Ansible Engine and Ansible Tower, then that would be my first though. Check the versions Tower and your test system are using and make sure Tower is the same version.

[ansible-project] Re: Windows updates found but not installed

2020-02-23 Thread Dan Linder
Can you include a simplified playbook showing the steps you're performing? Were the systems pending a reboot from a previous update? On Saturday, February 22, 2020 at 8:38:35 AM UTC-6, Andre Gronwald wrote: > > hi, > i tried to update some sql-servers with ansible (awx). > overall it worked fine,

Re: [ansible-project] win_shell module with multiple lines not working

2020-02-23 Thread Jordan Borean
It’s totally possible you just need to learn how to do multi lined yaml values. Have a look at the 5th example at https://docs.ansible.com/ansible/latest/modules/win_shell_module.html#examples. https://yaml-multiline.info/ is a great tool that can help you understand how multi lined strings wor

Re: [ansible-project] wait_for ping?

2020-02-23 Thread Jordan Borean
wait_for_connection is designed to wait until ssh is up and running and Ansible can actually run a module on it. No need for any until loops just ‘wait_for_connection:’. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from th

Re: [ansible-project] Connecting to a WinRM host with different credentials?

2020-02-23 Thread Jordan Borean
Further to the above, those are variables and not attributes you can set on a play. You need to set them under your the vars key or just add them using add_host in the previous play. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubs

[ansible-project] ansible-playbook for getting orion managed nodes

2020-02-23 Thread Yehuda Pinhas
Hi! Can anyone help me build this playbook? how can i fetch this information from my orion windows-based server? -- 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

Re: [ansible-project] win_shell module with multiple lines not working

2020-02-23 Thread Dick Visser
Hii You are trying to execute multiple commands with the win_shell module, but according to the docs (https://docs.ansible.com/ansible/latest/modules/win_shell_module.html#synopsis) that support one at a time: "The win_shell module takes the command name followed by a list of space-delimited argu

[ansible-project] win_shell module with multiple lines not working

2020-02-23 Thread Yehuda Pinhas
*Hi guys*. *This is my code*: --- - name: Multi-line shell win_shell: ## Creating Scopes Add-DhcpServerv4Scope -Name "{{ hebrew_site_name }}" -StartRange "{{ DHCP_computers_segment }}.61" -EndRange "{{ DHCP_computers_segment }}.243" -SubnetMask "255.255.255.0" -LeaseDuration "8.

Re: [ansible-project] wait_for ping?

2020-02-23 Thread Heinz Meier
Am Sonntag, 23. Februar 2020 11:28:45 UTC+1 schrieb Kai Stian Olstad: > > On Sun, Feb 23, 2020 at 02:10:32AM -0800, Heinz Meier wrote: > > need to wait until a host is up and running. This host does not (yet) > offer > > ssh, so I need a simple ping. The module wait_for only offers port > tes

Re: [ansible-project] wait_for ping?

2020-02-23 Thread Kai Stian Olstad
On Sun, Feb 23, 2020 at 02:10:32AM -0800, Heinz Meier wrote: > need to wait until a host is up and running. This host does not (yet) offer > ssh, so I need a simple ping. The module wait_for only offers port tests, > as far as I can see. Any ideas? You can use the until on a task - command: p

Re: [ansible-project] Connecting to a WinRM host with different credentials?

2020-02-23 Thread Tom Van de Velde
Hi, According to doc it should be ansible_user: LocalUsername ansible_password: Password ansible_connection: winrm ansible_winrm_transport: basic Regards Tom > On 23 Feb 2020, at 05:42, Dave York wrote: > >  > I have a playbook in which I want to create a random password and use it > later t

[ansible-project] wait_for ping?

2020-02-23 Thread Heinz Meier
Hi, need to wait until a host is up and running. This host does not (yet) offer ssh, so I need a simple ping. The module wait_for only offers port tests, as far as I can see. Any ideas? Michael Schwartzkopff -- You received this message because you are subscribed to the Google Groups "Ansibl

Re: [ansible-project] Callback plugins works with ansible command?

2020-02-23 Thread Kai Stian Olstad
On 23.02.2020 08:13, Ansible Krazy wrote: Does callback plugin only works with ansible-playbooks or that's not the case? It's in the documentation https://docs.ansible.com/ansible/latest/plugins/callback.html#setting-a-callback-plugin-for-ad-hoc-commands -- Kai Stian Olstad -- You received t