Perhaps, if you provide a clean piece of xml.
On Fri, 8 Jul 2022 at 08:37, maulik patel wrote:
> anyone here to help me out with this please ? thanks...
>
> On Thursday, July 7, 2022 at 6:57:27 PM UTC+5:30 maulik patel wrote:
>
>> hi ,
>>
>> I was trying to parse a XML response to JSON using pa
You can remove nth element like - like in following case I am removing 2nd
element
- name: Print variable
set_fact:
my_new_list: |
{% set result = name.split(':') %}
{% set _ = result.pop(2) %}
{{ result }}
On Thu, Jul 7, 2022 at 11:37 PM go
Hi,
I am trying to create the partition, but got the following error:
---
- hosts: default
become: true
become_method: sudo
tasks:
- name: part1
parted:
device: "/dev/vdb"
number: 1
state: present
- name: filesystem
filesystem:
On 08/07/2022 10:04, Ashok Reddy wrote:
Hi,
I am trying to create the partition, but got the following error:
I think that the error message is clear about the problem. The device doesn't
exist.
Regards
Racke
---
- hosts: default
become: true
become_method: sudo
task
Another easy solution - but you need to know value to drop before hand
- name: Print variable
set_fact:
new_name: "{{ name.split(':') | reject('search', 'hi') }}"
vars:
name: "ab:hi:je:et"
On Fri, Jul 8, 2022 at 12:48 PM Abhijeet Kasurde
wrote:
> You can remove n
I am trying to create new partition.
If that is not available, so that only need to create the /dev/vdb
partition.
On Friday, July 8, 2022 at 2:06:16 PM UTC+5:30 ra...@linuxia.de wrote:
> On 08/07/2022 10:04, Ashok Reddy wrote:
> > Hi,
> >
> > I am trying to create the partition, but got the fo
Hello All,
I am Creating VM in vCenter using *community.vmware.vmware_guest, *after
the VM is Created I have certain prerequisites to be fulfilled:
- Do Patching
- Do some package installation.
- And some more
How to accomplish this. I am able to create the VM then in the next task
On 2022-07-08 (Fri) 11:50, Ashok Reddy wrote:
I am trying to create new partition.
If that is not available, so that only need to create the /dev/vdb
partition.
Your logic is flawed.
You cannot create devices.
You can only create partitions on existing devices.
--
You received this messag
On Fri, Jul 8, 2022 at 12:33 AM 'Felix Fontein' via Ansible Project
wrote:
>
> Hi,
>
> > > > The best alternative is usually to install it from system
> > > > packages. For example, on Ubuntu and Debian, there's the
> > > > python3-docker system package you can install. For other OSes
> > > > simi
Hi @Nicolas Grilly,
I met the same issue... It's year 2022 already, did you get any solution?
thanks.
On Tuesday, May 5, 2015 at 3:17:34 PM UTC-4 Nicolas Grilly wrote:
> On Tuesday, May 5, 2015 at 7:16:58 PM UTC+2, Brad Smith wrote:
>>
>> Did anything ever come of this? I would really like to be
I am trying to copy a file to one host. the file will be on my ansible host
I am copying over to the remote host
do I need to create a file folder and put the file I want copied there
project
├── hosts
├── main.yml
└── roles
└── poc
├── *files*
│ └── *cluster.yml*
├
Your question is a little vague without invoking the "read-my-mind" module.
If you're talking about on the Ansible controller, you already have the
file in a director: roles/poc/files/cluster.yml
If you're asking about on the target host, if the directory already exists,
you can just copy it with
Thank you here is a snippet and it works fine with the file in the file
folder structure
- name: copy cluster file to jumphost
become: true
copy:
src: "cluster.yml"
dest: "/home/rke"
owner: "{{ username }}"
group: "{{ username }}"
mode: '0644'
but I want to only run this
keep getting this
ERROR! conflicting action statements: hosts, copy
when I add
hosts: gui
On Fri, Jul 8, 2022 at 9:58 AM Tony Wong wrote:
> Thank you here is a snippet and it works fine with the file in the file
> folder structure
>
> - name: copy cluster file to jumphost
> become: true
>
At the same indentation level as "copy:", you want something like
when: ansible_host == gui
Or, if "gui" is a group
when: "'gui' in group_names"
The "w" of "when" and the "c" of "copy" should be in the same column.
On Friday, July 8, 2022 at 1:24:05 PM UTC-4 tdub...@gmail.com wrote:
> keep
15 matches
Mail list logo