Re: [ansible-project] Re: return code as the input value for another play

2021-03-21 Thread Ramakrishna Veeragandham
Registered variables can't persists across different plays when the second playbook runs on another host than first playbook. Look at this below solution. Solution: Store the required variable in a dummy host and refer that variable in another play through dummy host. Example is given below. h

Re: [ansible-project] Not able to copy backup files between 2 remote windows server

2021-02-20 Thread Ramakrishna Veeragandham
Remoe remote_src: yes option and try. Thanks, Ram On Sat, Feb 20, 2021, 21:44 'Praveen Kumar Singh' via Ansible Project < ansible-project@googlegroups.com> wrote: > Hello Everyone, > > I am trying to copy backup files from one remote windows server to another > windows server using ansible playb

Re: [ansible-project] How to get backup ip and assign to a variable

2021-01-29 Thread Ramakrishna Veeragandham
n Hornburg (Racke) wrote: > On 1/29/21 1:15 PM, Ramakrishna Veeragandham wrote: > > Hi, > > > > How to search for a IPv4 starting with "192.168.x.x" > from ansible_all_ipv4_addresses and assign to variable. If not, > > assign default ipv4. > > > >

[ansible-project] How to get backup ip and assign to a variable

2021-01-29 Thread Ramakrishna Veeragandham
Hi, How to search for a IPv4 starting with "192.168.x.x" from ansible_all_ipv4_addresses and assign to variable. If not, assign default ipv4. The use case is, I need to get backup ip and assign to a variable. I need to use this variable in some configuration file. [root@ agents_deploy]

Re: [ansible-project] Unable to gather virtual machines configuration information from KVM hypervisor

2021-01-15 Thread Ramakrishna Veeragandham
- - hosts: all name: become: yes tasks: - name: Gathering Facts ovirt.ovirt.ovirt_vm_info: register: result - debug: msg: "{{ result.ovirt_vms }}" On Fri, Jan 15, 2021, 22:02 jaya...@gmail.com wrote: > Hi Racke, > > Thanks a lot for the update. > > I have corrected the pl

Re: [ansible-project] help while running sudo in Ansible playbooks

2021-01-14 Thread Ramakrishna Veeragandham
5 January 2021 at 14:23:44 UTC+8 brae...@gmail.com wrote: > On 1/15/21 6:08 AM, Ramakrishna Veeragandham wrote: > > Hi Ansible team, > > > > I am Ram. We need some help in running the Ansible playbook ( > specifically how to add sudo while running playbooks ). > &g

[ansible-project] help while running sudo in Ansible playbooks

2021-01-14 Thread Ramakrishna Veeragandham
Hi Ansible team, I am Ram. We need some help in running the Ansible playbook ( specifically how to add sudo while running playbooks ). in your environment, we can run all admin related commands with sudo acess ( by adding sudo in front of command . For example, sudo vgs or sudo vi /etc/sud

[ansible-project] Need help to develop a playbook to take vm snapshot by choosing only os disk in RHV environment

2020-06-10 Thread Ramakrishna Veeragandham
Need help to develop a playbook to select only os disk in RHV while taking VM snapshot. The use case to develop a playbook to take vm snapshot by choosing only os disk in RHV environment. Ansible version is 2.8 and RHV version is 4.3. I didn't find much documentation on how to select specific