Re: [ansible-project] Re: unsupported parameter for ios_l2_interfaces

2022-07-29 Thread Sagar Paul
Hi Hossein, Would you be able to help me with the collection version you are using and the cisco ios version that both the devices have? Note the currently supported version of the collection is 15.6.x we are planning to upgrade to 17.4.x soon. Regards, Sagar Paul -- You received this message b

Re: [ansible-project] Deploying Windows Server using Ansible Tower

2022-07-29 Thread Evan Hisey
Sounds like good use of Tower callback function. That way Tower does not have to know anything about the new host. Just be sure the windows image is configure for ansible, and then use either a cloud_init or or a first run script to execute the callback. On Fri, Jul 29, 2022, 12:18 PM Wei-Yen Tan

Re: [ansible-project] Deploying Windows Server using Ansible Tower

2022-07-29 Thread Wei-Yen Tan
You can use add_host to the playbook that generates In memory hosts during the execution run Get Outlook for iOS From: 'Nicholas Branson' via Ansible Project Sent: Friday, July 29, 2022 10:31:11 PM To: Ansible Project Subject: [ansible-pro

Re: [ansible-project] Re: unsupported parameter for ios_l2_interfaces

2022-07-29 Thread Hossein Malakooti
Hi Sagar Thanks for your prompt reply , the test I have conducted was on Switch Cisco 2960X when I change the host to a Cisco 9200 switch it surprisingly works and I am confused now , how would different switch types give me different results ? Thank you On Fri, Jul 29, 2022 at 2:04 AM Sagar Pa

Re: [ansible-project] to which local bash command does get_url translate to?

2022-07-29 Thread Richard Megginson
Looking at the source: https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/get_url.py#L381 fetch_url is defined here: https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/urls.py#L1803 Which is *not* forking a cli program, it is using a python library, most likely h

[ansible-project] to which local bash command does get_url translate to?

2022-07-29 Thread dulhaver via Ansible Project
I am running ansible playbooks against hosts in different networks or firewall-zones and need to fetch confg-files from a local BitBucket server at times with get_url TASKS. connectivoty to that BitBucket Server is challenging, to put it nicely. In order to troubleshoot how to make this work i

Re: [ansible-project] renaming a folder on the remote ... issue with defaults/main.yml

2022-07-29 Thread dulhaver via Ansible Project
> On 07/29/2022 12:24 PM CEST Dick Visser wrote: > > > On Fri, 29 Jul 2022 at 12:02, dulhaver via Ansible Project > wrote: > > > it seems neither > > > > > > - name: move legacy postgres - stat postgres_data > >

[ansible-project] Deploying Windows Server using Ansible Tower

2022-07-29 Thread 'Nicholas Branson' via Ansible Project
Ansible Newbie Calling... We have Ansible Tower and Satellite. I've been asked to look at Deploying Windows Server using Ansible Tower. I've created a win2019-tmp (template) in VMware Now I need to look at creating a Role playbook to deploy a Windows system in VMware. I've made a start on th

Re: [ansible-project] renaming a folder on the remote ... issue with defaults/main.yml

2022-07-29 Thread Dick Visser
On Fri, 29 Jul 2022 at 12:02, dulhaver via Ansible Project wrote: > it seems neither > > > - name: move legacy postgres - stat postgres_data > stat: path="{{ postgres_data }}" > register: postgres_data > > - name

Re: [ansible-project] renaming a folder on the remote ... issue with defaults/main.yml

2022-07-29 Thread dulhaver via Ansible Project
> On 07/29/2022 11:24 AM CEST Dick Visser wrote: > > > On Fri, 29 Jul 2022 at 11:09, dulhaver via Ansible Project > wrote: > > > "mv: cannot stat '{'\\''changed'\\'': False, '\\''stat'\\'': > > {'\\''exists'\\'': True, '\\''path'\\'': > > '\\''/opt/db/data/postgres/data'\\'', '\\''m

Re: [ansible-project] renaming a folder on the remote ... issue with defaults/main.yml

2022-07-29 Thread Dick Visser
On Fri, 29 Jul 2022 at 11:24, Dick Visser wrote: > You should use the correct key from that dict (i.e. 'postgres_data.path') probably 'postgres_data.stat.path' -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

Re: [ansible-project] renaming a folder on the remote ... issue with defaults/main.yml

2022-07-29 Thread Dick Visser
On Fri, 29 Jul 2022 at 11:09, dulhaver via Ansible Project wrote: > "mv: cannot stat '{'\\''changed'\\'': False, '\\''stat'\\'': > {'\\''exists'\\'': True, '\\''path'\\'': > '\\''/opt/db/data/postgres/data'\\'', '\\''mode'\\'': '\\''0750'\\'', > '\\''isdir'\\'': True, '\\''ischr'\\'':

[ansible-project] renaming a folder on the remote ... issue with defaults/main.yml

2022-07-29 Thread dulhaver via Ansible Project
I am trying to rename a folder on a remote if it exists. this is being done via a role. == my two tasks === - name: move legacy postgres - stat postgres_data stat: path="{{ postgres_data }}" register: postgres_data - name: move