Re: [ansible-project] rename datastore in vcenter

2021-03-02 Thread Jon POK
Hello Directly is not working TASK [Rename object name] fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (community.vmware.vmware_object_rename) modu

Re: [ansible-project] rename datastore in vcenter

2021-03-02 Thread Jon POK
Hello In case of gather info there is no mood :( "properties": [ "_moId" ], "proxy_host": null, "proxy_port": null, "schema": "vsphere", "username": "root", "validate_certs": false set facts are not working

[ansible-project] Clarifications needed for 'prompt' parameter of ios_command module

2021-03-02 Thread Vikram S
When i use 'prompt' parameter of ios_command module for IOS image copying as in Example 1, it fails. But it succeeds as in Example 2. I want to understand why? I am trying to understand why this below syntax works? Destination filename \[ image name\]?' This issue happens only for IOS copying

Re: [ansible-project] Am I missing something or Ansible is uselessly verbose?

2021-03-02 Thread Nuno Jordão
Hello, "become: yes" means you need to become a different user than the user used to connect. By default "root" as is normally used to elevate privileges. "*become_user: postgres*" if you need a different user, other than connecting user or root. On Tue, Mar 2, 2021 at 12:25 AM Istvan Kis wrote:

Re: [ansible-project] Oracle/Python

2021-03-02 Thread Keith Mills
Thank you for the information, it is well received. On Monday, March 1, 2021 at 1:33:58 PM UTC-6 dick@geant.org wrote: > In that case you should not use ansible at all to manage this system. > There is a reason ansible requires python 2.6+. So even if you would > somehow get this (arcane and

[ansible-project] Is it possible to add async on raw module

2021-03-02 Thread Arjan Goos
I am currently patching firmware on 100+ routers in the field with the raw command. It is doing an ftp get from a file and after that it flashes the router and reboots the router. But ansible hangs. Is it possible to fix this? -- You received this message because you are subscribed to the Goog

Re: [ansible-project] [ HELP ] Ansible Module Error [ Parameter format not correct - >nul\r\n ]

2021-03-02 Thread jbor...@gmail.com
There's not much else we can say, the error you have indicates the shell being used in OpenSSH is cmd so trying to run ansible_shell_type=powershell will cause that failure. Either set it to cmd or work out how to change the DefaultShell for your installation on the Windows host. Ansible needs t

Re: [ansible-project] remote to remote host copy. using AWX

2021-03-02 Thread Stefan Hornburg (Racke)
On 3/1/21 6:36 PM, Raja Natte wrote: > Hi, > > How to copy remote to remote  hosts. Basically this should work: - name: copy files from server_a to server B,C,D. synchronize: mode: push src: "/tmp" dest: delegate_to: server_a when: inventory_hostname != 'server_a' Regar

[ansible-project] Re: Ansible started giving SSH Error: data could not be sent to remote host error in several playbooks and several tasks

2021-03-02 Thread Bruce M.
Not sure if you have found the answer but you might try a couple things to help investigate. It seems to me that something is not "awake" during the first transaction but then awakens and begins processing. Does you company have leased lines that go dormant when not in use? Have you tried s

Re: [ansible-project] Re: Ansible - User Create Module - Not working with Vault

2021-03-02 Thread Bruce M.
That page may have been deprecated cause I believe the same instruction is found in the faqs now.: *https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-generate-encrypted-passwords-for-the-user-module* On Wednesday, February 10, 2021 at 7:08:21 AM UTC-6 jereme...@gmail

[ansible-project] How to kill/restart ssh remote connection

2021-03-02 Thread Softestplease
Hi all, Could anyone please share some knowledge on how to kill/restart ssh from remote connection in Ansible? Basically, I need to re-login in order the changes to take affect but it seems that Ansible has shared connection for ssh. any help much appreciated cheers -- You received this mes

Re: [ansible-project] Am I missing something or Ansible is uselessly verbose?

2021-03-02 Thread Brian Coca
it is 'useless' for those not using certain features, but mandatory to support them. Also you have the 'user' module and user(deprecated)/remote_user keywords (login user) so become_user is required for disambiguation, but you can drop `become_user: root` since that is the default. -- --

Re: [ansible-project] How to kill/restart ssh remote connection

2021-03-02 Thread Brian Coca
- meta: reset_connection Though if you are not using the default control path you might find issues, which i'm in the middle of fixing. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this gr

[ansible-project] update hots file - the default inventory file

2021-03-02 Thread esxi...@gmail.com
Hi I have a playbook which create the vm in vCenter --- - hosts: localhost gather_facts: false connection: local vars_files: - ./vars/xxx.yml tasks: - name: Create VM using template vmware_guest: hostname: "{{ vcenter_server }}" username: "{{ vcenter_user

Re: [ansible-project] update hots file - the default inventory file

2021-03-02 Thread Abhijeet Kasurde
Can you provide output of lineinfile ? Mine look like changed: [localhost] => (item=a) => {"ansible_loop_var": "item", "backup": "", "changed": true, "item": "a", "msg": "line added"} changed: [localhost] => (item=b) => {"ansible_loop_var": "item", "backup": "", "changed": true, "item": "b", "msg"

Re: [ansible-project] update hots file - the default inventory file

2021-03-02 Thread esxi...@gmail.com
Thanks for the reply Abhi What i noticed is it does update the file if there is no entry like blow is the o/p TASK [Update the Inventory] *

Re: [ansible-project] update hots file - the default inventory file

2021-03-02 Thread esxi...@gmail.com
for eg [group1] server1 server2 [group2] server1 server2 if you remove from group one & run does not update So lineinfile should have someway to say the position exactly below [group1] add is missing ... On Tuesday, March 2, 2021 at 11:08:50 PM UTC-8 esxi...@gmail.com wrote: > Than