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
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
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.
> >
> >
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]
-
- 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
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
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
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