About 1,664,831 results (4,879 milliseconds)

Create a varaible list conditionally from dictionary items

https://groups.google.com/g/ansible-project/c/VerPXFuLUb0
May 20, 2015 ... {%- for item in my_dict if item.item_en -%} {%- do names.append(item ... In the former case, Ansible converts it to a proper list ...

checking list of files to see if one exists

https://groups.google.com/g/ansible-project/c/zJY-dRgMlF4
Jul 5, 2023 ... path: "/work/{{ item }}" ... - If that state is reached (file is 'absent') Ansible is happy and won't do anything. - If that state is not reached ...

Stuck on a playbook development - Fs

https://groups.google.com/g/ansible-devel/c/Y_B6Vs6RCTg
Sep 29, 2016 ... ... not a directory and create the mount point if it doesn't exist ... when: is_linux and '{{ dir_agente }}' not included in item.mount ---> is ...

lineinfile problem

https://groups.google.com/g/ansible-project/c/EWxu8ydN6pY
Jan 25, 2017 ... ... if it does not already exist. Does anyone have any suggestions ... TASK [Insert the wanted line into the file as it doesn't exist] ...

Can ansible iterate through lines in a file?

https://groups.google.com/g/ansible-project/c/45qZWxkte3A
Aug 1, 2014 ... I have a list of lines I want to add to a file on the target system if they don't exist. ... lineinfile: dest=/some/file line={{ item }}

Authorized_key for multiple keys (contribution proposal)

https://groups.google.com/g/ansible-devel/c/9p99IQ8aPqs
Nov 27, 2014 ... the feature "replace_all" does not exist yet. The way I want to ... I have written a few more tests but they are inside the ansible repository and ...

Inserting multiple lines in a file after specific line

https://groups.google.com/g/ansible-project/c/Sf5UbHxelyE
Apr 11, 2013 ... // List of packages to not update. Unattended ... I match against regexp='postgresql' and that line does NOT exist nowhere in the file.

Custom module error

https://groups.google.com/g/ansible-devel/c/SLyXLAat3GY
Aug 8, 2017 ... elementattrib.append((element.tag,element.text )) # add tag:text if exist ... if type(value) is not list: listOfDicts = []. listOfDicts ...

[newbie]Start/stop EC2 instances based on tags

https://groups.google.com/g/ansible-project/c/OGkbqKB9sqA
I need to check to see if the instance exists; if not, I create it using a base AMI in a particular VPC, then configure the instance with whatever roles I need ...

copy files based on descending precedence

https://groups.google.com/g/ansible-project/c/-KDdn5GEGmc
Apr 18, 2023 ... config files and select a host specific file if it exists. not sure ... 5 - "files/{{item.src}}_AH{{ansible_hostname}}" 6 - "files ...

using register stdout_lines in with_items loop

https://groups.google.com/g/ansible-project/c/QUugEQRZT-g
Feb 22, 2016 ... Am I misusing or not understanding http://docs.ansible.com/ansible ... 'item' within each result in the list displays the item name provided when ...

Ansible 2.0 Deprecation in "when:" conditional.

https://groups.google.com/g/ansible-project/c/xgiJUEY4NfA
Jan 13, 2016 ... ## IF NOT EXISTS, LIST ALL FILES AND STORE THEM IN A VAR. - shell: ls -1 /etc/cron.d. register: crond. when: placeholdercrond.stat.exists == ...

Git module: don't pull when the clone is already up-to-date.

https://groups.google.com/g/ansible-project/c/yIp1cIB0jCM
... item": "/path/to/clone", "msg": "Local modifications exist"} You can see that ... to ansible list. Try using something other than 'master' as a version ...

Creating symlinks and their parent directories

https://groups.google.com/g/ansible-project/c/5A8QxXM-KgA
Dec 29, 2015 ... ... add a second task unless anyone else has an idea. ... I'm looping over a list of dictionaries and using omit on values that I know may not exist.

Ansible Tower installation getting failed.

https://groups.google.com/g/ansible-project/c/CM6aMeNY9F0
Aug 19, 2019 ... [warn] /var/log/tower does not exist. Setup log saved to setup.log.

Deploying Windows Server using Ansible Tower

https://groups.google.com/g/ansible-project/c/Oi_lAPbMWG4
Jul 29, 2022 ... ... Ansible Tower Template Inventory area if it does not exist? I hope ... One more item I will add .. in our Customize step of our ...

Conditionally add or remove storage controllers in Vagrant file.

https://groups.google.com/g/vagrant-up/c/ZNxC0aYv1Os
#below commented SATA customize will only work when the VM has already been created...on a fresh run this will error since the SATA controller does not exist

--skip-tags equivalent inside playbooks

https://groups.google.com/g/ansible-project/c/WimzDEJLHJc
tags add a tag and when it's filtering on tags. > is pretty much useless since instead filtering the role's tasks based > on > that "tags" list it adds those ...

applying sudo_user to a list of tasks

https://groups.google.com/g/ansible-project/c/Ldp3Kue1m8g
But this does not seem right. I wish I could parametrize the sudo_user ... - install everything with sudo=yes and sudo_user=item, so that the ...

Exit with_items loop after first success?

https://groups.google.com/g/ansible-project/c/uJqSmkKTpZc
Dec 11, 2014 ... Add previous_iteration variable for use in when clause, eg when ... It would have been great if the register had the final form and the item ...