Re: [ansible-project] Ansible Cant find Debian Apt Package for Multi Playbook/Tasks Runs with Galaxy FreeIPA Install

2022-02-03 Thread Roberto J. R. Paz
Maybe it's not the most clean approach, but you can check if the command returned an error message including "Could not get lock" substring. You can repeat this command with some delay in between and with a limit of repeating cycles, waiting for the automatic update to finish. Once the command end

Re: [ansible-project] Re: need help to configure a loop

2021-06-28 Thread Roberto J. R. Paz
You can't apply a loop to a block. A possible caveat for that is to include the code of the block as a separated playbook and run the loop on that. Example here: https://ericsysmin.com/2019/06/20/how-to-loop-blocks-of-code-in-ansible/ El lun, 28 jun 2021 a las 9:53, Yahia CHILALI () escribió: >

[ansible-project] ovirt upload iso

2021-03-23 Thread j..r..
I would like to upload iso to ovirt, but I'm getting error: OSError: [Errno 2] No such file or directory: '/rear/olrearc' fatal: [olvman]: FAILED! => { How that ansible can't find iso image? If I change upload_image_path: /rear/olrearc/rear-olrearc.iso I'm getting the same error. [ansible@nfs o

Re: [ansible-project] inventory inside play

2021-02-19 Thread j..r..
entory meta: refresh_inventory - name: change something1 on new vm's - name: change something2 on new vm's On Friday, February 19, 2021 at 7:10:10 PM UTC+1 dick@geant.org wrote: > I think that is how it is supposed to work... > > On Fri, 19 Feb 2021 at

Re: [ansible-project] inventory inside play

2021-02-19 Thread j..r..
collections-ansible-builtin-group-by-module > > Regards, > > JYL > > > Le 18/02/2021 à 19:45, j..r.. a écrit : > > I'm trying to deploy vms from template on esx with vmware_guest module > and this work great, but I would like to do inside this playbook some > modi

[ansible-project] inventory inside play

2021-02-18 Thread j..r..
I'm trying to deploy vms from template on esx with vmware_guest module and this work great, but I would like to do inside this playbook some modification on vm after deployment. My inventory file is being populated with the same playbook with hosts that are being deployed, but after that I'm do

Re: [ansible-project] report for mount size_available

2021-01-28 Thread j..r..
m shell -a "cat /tmp/file-copy" servera > > servera | CHANGED | rc=0 >> > > VG: vg_root free 0 GB > > > > lineinfile: > >- name: vg free > > lineinfile: > >path: /tmp/file-lineinfile > >line: "VG

Re: [ansible-project] report for mount size_available

2021-01-27 Thread j..r..
M UTC+1 brae...@gmail.com wrote: > On 1/26/21 2:35 PM, j..r.. wrote: > > Hi > > > > I was trying to make report for free space in vg, but I have a problems, > it's look like jinja doesn't like me::)) > > ansible_lvm > >}, > >

Re: [ansible-project] report for mount size_available

2021-01-26 Thread j..r..
-free-vgs but it keep telling me that I didn't defined variable vgs: (The task includes an option with an undefined variable. The error was: 'str object' has no attribute 'vgs') . Can you please help me once again with this? Thanks On Sunday, January 24, 2021 at 1:55

Re: [ansible-project] report for mount size_available

2021-01-24 Thread j..r..
what will be jinja template if I would like to create report only for / and /var partition? Or haw would I accomplish that? Thanks Regards On Sunday, January 24, 2021 at 10:17:24 AM UTC+1 brae...@gmail.com wrote: > On 1/23/21 1:11 PM, j..r.. wrote: > > Thanks, this works great

Re: [ansible-project] report for mount size_available

2021-01-23 Thread j..r..
Friday, January 22, 2021 at 8:39:35 PM UTC+1 brae...@gmail.com wrote: > On 1/22/21 5:29 PM, j..r.. wrote: > > Hi > > > > I would like to create report for free partition size under > "ansible_mounts" > > > >"ansible_mounts": [

[ansible-project] report for mount size_available

2021-01-22 Thread j..r..
Hi I would like to create report for free partition size under "ansible_mounts" "ansible_mounts": [ { "block_available": 3911145, "block_size": 4096, "block_total": 4452864, "block_used": 541719, "d

[ansible-project] Jinja template regex search for a specific word or up to a specific character

2020-06-05 Thread J R
I'm trying to search for a specific string from a var and while it finds it, it prints the whole line and not the exact match I'm looking for. I'm running ansible 2.9 Here is what it finds: *Interface GigabitEthernet0/1 "outside1", is up, line protocol is up* And what I'm looking for is eve