# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=190

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

**Page:** 191

---

## [ansible cron with 2.8rc3](https://forum.ansible.com/t/ansible-cron-with-2-8rc3/30308)

<div class="topic-metadata">

**Author:** [@Michael\_Stroder](https://forum.ansible.com/u/Michael_Stroder)\
**Replies:** 4\
**Last updated:** [May 13, 2019, 1:51pm UTC](https://forum.ansible.com/t/ansible-cron-with-2-8rc3/30308 "2019-05-13T13:51:19Z")

</div>

HI! I'm testing my ansible roles with ansible 2.8rc3. The roles work with ansible 2.7.10. This cron task fails with 2.8rc3 using Python 2.7.16 (see details attached at message end): - name: "Remove obsolete CRON job…

---

## [Looking for an ansible module which supports  yum-utils package](https://forum.ansible.com/t/looking-for-an-ansible-module-which-supports-yum-utils-package/30311)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 1\
**Last updated:** [May 12, 2019, 9:43pm UTC](https://forum.ansible.com/t/looking-for-an-ansible-module-which-supports-yum-utils-package/30311 "2019-05-12T21:43:47Z")

</div>

Hi , I am looking for an ansible module which supports yum-utils package commands. It consists of a command \*\*"package-cleanup\*\*" which is pretty useful in cleaning the old kernels. package-cleanup --oldkernels --coun…

---

## [set\_facts with if-else clause, also check if the var contains digits?](https://forum.ansible.com/t/set-facts-with-if-else-clause-also-check-if-the-var-contains-digits/30309)

<div class="topic-metadata">

**Author:** [@sahitansar](https://forum.ansible.com/u/sahitansar)\
**Replies:** 0\
**Last updated:** [May 11, 2019, 6:15pm UTC](https://forum.ansible.com/t/set-facts-with-if-else-clause-also-check-if-the-var-contains-digits/30309 "2019-05-11T18:15:31Z")

</div>

Im trying to set a variable based on below condition where templname is an external variable with below options ansible-playbook -i hosts -e “templname=CTrl03\_kerbs\_09” OR ansible-playbook -i hosts -e “templname=CTrl0…

---

## [Pass a variable in "vars\_file" to "with\_items" from command prompt as part of "extra-vars"](https://forum.ansible.com/t/pass-a-variable-in-vars-file-to-with-items-from-command-prompt-as-part-of-extra-vars/30299)

<div class="topic-metadata">

**Author:** [@Anuradha\_Gangu](https://forum.ansible.com/u/Anuradha_Gangu)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 7:04pm UTC](https://forum.ansible.com/t/pass-a-variable-in-vars-file-to-with-items-from-command-prompt-as-part-of-extra-vars/30299 "2019-05-10T19:04:47Z")

</div>

My main objective is, I want to create a playbook with one task which will take list of docker images and list of hosts and then run one image on one host respectively or run list of images on one of host list supplied. …

---

## [Linebreak Ansible Filters](https://forum.ansible.com/t/linebreak-ansible-filters/30291)

<div class="topic-metadata">

**Author:** [@Ron\_Gebauer](https://forum.ansible.com/u/Ron_Gebauer)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 3:37pm UTC](https://forum.ansible.com/t/linebreak-ansible-filters/30291 "2019-05-10T15:37:05Z")

</div>

Hi, I want to fix the Ansible Linter issue “\[204\] Lines should be no longer than 160 chars”. But how I can linebreak filters? \` local\_filters\_in\_templates\_list: “{{ local\_filters\_in\_templates.files | map(attribute=‘p…

---

## [setup module fails sometimes](https://forum.ansible.com/t/setup-module-fails-sometimes/30296)

<div class="topic-metadata">

**Author:** [@sampsont](https://forum.ansible.com/u/sampsont)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 2:09pm UTC](https://forum.ansible.com/t/setup-module-fails-sometimes/30296 "2019-05-10T14:09:35Z")

</div>

When I run a playbook, sometimes a target gets in a mode where the setup module fails. Other times it runs just fine. Can anyone give me any ideas of what might be going on? Kindof looks like: https://github.com/ansible/…

---

## [Need assistance using SSH keys and Ansible](https://forum.ansible.com/t/need-assistance-using-ssh-keys-and-ansible/30304)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [May 10, 2019, 2:06pm UTC](https://forum.ansible.com/t/need-assistance-using-ssh-keys-and-ansible/30304 "2019-05-10T14:06:34Z")

</div>

Hi This isn't an ansible problem. Take a look at some general SSH public key authentication pages, for instance: https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linu…

---

## [Using a bash script in github by the ansible playbook](https://forum.ansible.com/t/using-a-bash-script-in-github-by-the-ansible-playbook/30302)

<div class="topic-metadata">

**Author:** [@michal.misiak](https://forum.ansible.com/u/michal.misiak)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 12:08pm UTC](https://forum.ansible.com/t/using-a-bash-script-in-github-by-the-ansible-playbook/30302 "2019-05-10T12:08:02Z")

</div>

Hi, I have some bash scripts which I use in my ansible playbooks by script module. Now, I would like to move my bash scripts to github and still use them in my ansible playbooks, but directly from github. How can I do t…

---

## [Ansible nested variable regex search](https://forum.ansible.com/t/ansible-nested-variable-regex-search/30293)

<div class="topic-metadata">

**Author:** [@Srikanth\_Ethiraj](https://forum.ansible.com/u/Srikanth_Ethiraj)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 10:22am UTC](https://forum.ansible.com/t/ansible-nested-variable-regex-search/30293 "2019-05-10T10:22:57Z")

</div>

How do we do a wildcard search with ansible nested variable? test: name: address: zipcode: 12345 Ansible nested variable - {{ test\[name\]\[addre\*\].zipcode }}

---

## [Windows patch update](https://forum.ansible.com/t/windows-patch-update/30301)

<div class="topic-metadata">

**Author:** [@The\_Vandyy\_Vines](https://forum.ansible.com/u/The_Vandyy_Vines)\
**Replies:** 0\
**Last updated:** [May 10, 2019, 9:32am UTC](https://forum.ansible.com/t/windows-patch-update/30301 "2019-05-10T09:32:48Z")

</div>

Hello All, I am trying to do a Windows patch update. So far i have use win\_update modules. I am trying to understand how before starting the update we can know the pending reboot . Any clue ? Thanks

---

## [How to pass the remote\_user to callback plugins?](https://forum.ansible.com/t/how-to-pass-the-remote-user-to-callback-plugins/30300)

<div class="topic-metadata">

**Author:** [@KaKin\_Kwok](https://forum.ansible.com/u/KaKin_Kwok)\
**Replies:** 0\
**Last updated:** [May 10, 2019, 8:26am UTC](https://forum.ansible.com/t/how-to-pass-the-remote-user-to-callback-plugins/30300 "2019-05-10T08:26:42Z")

</div>

Hi all, I would like to set the ssh user from ansible-playbook as a variable in callback plugins .py script. Is there any method to make it done? Regards with thanks

---

## [$PATH with shell is different to manual ssh](https://forum.ansible.com/t/path-with-shell-is-different-to-manual-ssh/30278)

<div class="topic-metadata">

**Author:** [@Matthew\_Davis](https://forum.ansible.com/u/Matthew_Davis)\
**Replies:** 4\
**Last updated:** [May 10, 2019, 12:20am UTC](https://forum.ansible.com/t/path-with-shell-is-different-to-manual-ssh/30278 "2019-05-10T00:20:24Z")

</div>

Hi, I have been redirected from Github issue 56044. I am finding that commands which work when run manually fail when run with a shell task, because the $PATH is different, so binaries such as ip and modinfo cannot be …

---

## [vars\_prompt within a role](https://forum.ansible.com/t/vars-prompt-within-a-role/30295)

<div class="topic-metadata">

**Author:** [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Replies:** 3\
**Last updated:** [May 9, 2019, 8:09pm UTC](https://forum.ansible.com/t/vars-prompt-within-a-role/30295 "2019-05-09T20:09:39Z")

</div>

I am working on a project that will be mostly api based running locally and attaching to different environments via the api (uri module) My plan was to create a role for each type of call that will be made, that way pla…

---

## [Help with ovirt\_vms module](https://forum.ansible.com/t/help-with-ovirt-vms-module/30294)

<div class="topic-metadata">

**Author:** [@Robert2](https://forum.ansible.com/u/Robert2)\
**Replies:** 2\
**Last updated:** [May 9, 2019, 6:01pm UTC](https://forum.ansible.com/t/help-with-ovirt-vms-module/30294 "2019-05-09T18:01:21Z")

</div>

Hey everyone. I am working on a role that will delete VM’s from RHV and remove their entries from satelite and AD. The challenge I have is that I need to pass the current host into the name field without doing a loop. …

---

## [Host File as a command line variable](https://forum.ansible.com/t/host-file-as-a-command-line-variable/30270)

<div class="topic-metadata">

**Author:** [@John\_Andrew](https://forum.ansible.com/u/John_Andrew)\
**Replies:** 1\
**Last updated:** [May 9, 2019, 5:56pm UTC](https://forum.ansible.com/t/host-file-as-a-command-line-variable/30270 "2019-05-09T17:56:34Z")

</div>

Can i do this in my hosts/inventory file? Also, can i pass a host group in command line -e? \[env1\] vm1 ansible\_host=vm001 vm2 ansible\_host=vm002 \[env2\] vm1 ansible\_host=vm888 vm2 ansible\_host=vm999 I want to use t…

---

## [how to get the total failed count using ansible](https://forum.ansible.com/t/how-to-get-the-total-failed-count-using-ansible/30247)

<div class="topic-metadata">

**Author:** [@Bubunia\_Patra](https://forum.ansible.com/u/Bubunia_Patra)\
**Replies:** 2\
**Last updated:** [May 9, 2019, 3:50pm UTC](https://forum.ansible.com/t/how-to-get-the-total-failed-count-using-ansible/30247 "2019-05-09T15:50:34Z")

</div>

Hi all, I am writing a ansible playbook which will gather all the failed count from script and after sum it will display in the report. For example: shell script fails that is called from the ansible fails with exit 1,…

---

## [Serial failure, fail remaining hosts](https://forum.ansible.com/t/serial-failure-fail-remaining-hosts/30289)

<div class="topic-metadata">

**Author:** [@Ryan\_Belgrave](https://forum.ansible.com/u/Ryan_Belgrave)\
**Replies:** 0\
**Last updated:** [May 9, 2019, 2:24pm UTC](https://forum.ansible.com/t/serial-failure-fail-remaining-hosts/30289 "2019-05-09T14:24:49Z")

</div>

I have a playbook that is using serial: 1 to perform rolling updates to 1 host at a time. Sometimes one host will fail which stops the whole play. However this seems to only fail one host, not all the remaining hosts. I…

---

## [How to synchronize the tasks after a block-rescue is executed?](https://forum.ansible.com/t/how-to-synchronize-the-tasks-after-a-block-rescue-is-executed/30288)

<div class="topic-metadata">

**Author:** [@Nathan\_Swartz](https://forum.ansible.com/u/Nathan_Swartz)\
**Replies:** 0\
**Last updated:** [May 9, 2019, 1:45pm UTC](https://forum.ansible.com/t/how-to-synchronize-the-tasks-after-a-block-rescue-is-executed/30288 "2019-05-09T13:45:05Z")

</div>

I’m having an issue with the behavior of a block-rescue section. When there is a failure, the target that failed will execute its tasks independently from the rest of the targets. For most of the playbook it’s not an iss…

---

## [Integration Ansible tower with Cisco Identity Services Engine(ISE)](https://forum.ansible.com/t/integration-ansible-tower-with-cisco-identity-services-engine-ise/30287)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 4\
**Last updated:** [May 9, 2019, 12:15pm UTC](https://forum.ansible.com/t/integration-ansible-tower-with-cisco-identity-services-engine-ise/30287 "2019-05-09T12:15:24Z")

</div>

Hi Team, How to integrate Ansible tower with Cisco Identity Services Engine(ISE). thanks, Pushparaj

---

## [Win\_Copy Checksuming](https://forum.ansible.com/t/win-copy-checksuming/30257)

<div class="topic-metadata">

**Author:** [@ground7612](https://forum.ansible.com/u/ground7612)\
**Replies:** 2\
**Last updated:** [May 9, 2019, 5:12am UTC](https://forum.ansible.com/t/win-copy-checksuming/30257 "2019-05-09T05:12:49Z")

</div>

Hi All With regards to the checksuming mentioned for the win\_copy module in the “force” parameter, could anyone shed some light how this works? https://docs.ansible.com/ansible/latest/modules/win\_copy\_module.html#win-c…

---

## [multiline jinja2 lists returned as string?](https://forum.ansible.com/t/multiline-jinja2-lists-returned-as-string/30265)

<div class="topic-metadata">

**Author:** [@Adam\_E](https://forum.ansible.com/u/Adam_E)\
**Replies:** 5\
**Last updated:** [May 8, 2019, 9:52pm UTC](https://forum.ansible.com/t/multiline-jinja2-lists-returned-as-string/30265 "2019-05-08T21:52:59Z")

</div>

Hi there, I have some logic that I want to apply when creating assigning a list to a variable. See my sample playbook below, Ideally i’d like a nice clean way to have a logic based list. the “users” approach works, howe…

---

## [Ansible Local Log ( Overwrite Issue)](https://forum.ansible.com/t/ansible-local-log-overwrite-issue/30262)

<div class="topic-metadata">

**Author:** [@Tiz](https://forum.ansible.com/u/Tiz)\
**Replies:** 1\
**Last updated:** [May 8, 2019, 7:53pm UTC](https://forum.ansible.com/t/ansible-local-log-overwrite-issue/30262 "2019-05-08T19:53:58Z")

</div>

Hey guys, i need to log into a local file the user’s group of a specific user for all the Virtual Machines my Vcenter hosts. Actually my playbook works, but there’s a issue because the data is overwritten on the destinat…

---

## [print free space for mount](https://forum.ansible.com/t/print-free-space-for-mount/30237)

<div class="topic-metadata">

**Author:** [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Replies:** 1\
**Last updated:** [May 8, 2019, 7:18pm UTC](https://forum.ansible.com/t/print-free-space-for-mount/30237 "2019-05-08T19:18:58Z")

</div>

I am trying to print the free space for a mount that an application needs to have x free on. Once i can do that i would look at adding actions based on that, but i would also like to the user running the play to know if …

---

## [run a task when a play gets skipped by all hosts](https://forum.ansible.com/t/run-a-task-when-a-play-gets-skipped-by-all-hosts/30200)

<div class="topic-metadata">

**Author:** [@IP\_Freely](https://forum.ansible.com/u/IP_Freely)\
**Replies:** 1\
**Last updated:** [May 8, 2019, 6:49pm UTC](https://forum.ansible.com/t/run-a-task-when-a-play-gets-skipped-by-all-hosts/30200 "2019-05-08T18:49:10Z")

</div>

Hi all I have a playbook that checks 2 servers for log entrys, below is what is expected when it runs correctly: (part of the playbook below)

---

## [Ansible + F5](https://forum.ansible.com/t/ansible-f5/30281)

<div class="topic-metadata">

**Author:** [@renato.marcandier](https://forum.ansible.com/u/renato.marcandier)\
**Replies:** 3\
**Last updated:** [May 8, 2019, 4:17pm UTC](https://forum.ansible.com/t/ansible-f5/30281 "2019-05-08T16:17:10Z")

</div>

Hello all, I am in a project with Ansible and F5 and I was checking this article about best practices for structure and groups → https://support.f5.com/csp/article/K35276063 I was hoping they would have best practices f…

---

## [Playbook using host groups: Notify slack on failure and fail entire playbook](https://forum.ansible.com/t/playbook-using-host-groups-notify-slack-on-failure-and-fail-entire-playbook/30284)

<div class="topic-metadata">

**Author:** [@AllenJB](https://forum.ansible.com/u/AllenJB)\
**Replies:** 0\
**Last updated:** [May 8, 2019, 3:45pm UTC](https://forum.ansible.com/t/playbook-using-host-groups-notify-slack-on-failure-and-fail-entire-playbook/30284 "2019-05-08T15:45:41Z")

</div>

Hi, I’m working on an Ansible (2.7.9) playbook ( https://gist.github.com/AllenJB/09f54224a8731467548391e0f093ad33 ) to deploy our project via AWX (4.0.0 via docker) and I’m currently trying to achieve the following: T…

---

## [Create a variable that contains other variable values with labels](https://forum.ansible.com/t/create-a-variable-that-contains-other-variable-values-with-labels/30250)

<div class="topic-metadata">

**Author:** [@mark.tovey](https://forum.ansible.com/u/mark.tovey)\
**Replies:** 2\
**Last updated:** [May 8, 2019, 2:50pm UTC](https://forum.ansible.com/t/create-a-variable-that-contains-other-variable-values-with-labels/30250 "2019-05-08T14:50:30Z")

</div>

I have a list: list1 value1 value2 and I want to use set\_fact create a new variable that contains these variables with a label in front of them, so that this debug task: debug: msg: “{{var1}}” would…

---

## [vmware - add new guest to VM group](https://forum.ansible.com/t/vmware-add-new-guest-to-vm-group/30283)

<div class="topic-metadata">

**Author:** [@deewon](https://forum.ansible.com/u/deewon)\
**Replies:** 0\
**Last updated:** [May 8, 2019, 2:27pm UTC](https://forum.ansible.com/t/vmware-add-new-guest-to-vm-group/30283 "2019-05-08T14:27:42Z")

</div>

Hi, Not sure if anyone has ever tried to do this: I’m trying to add a VM in ESXi to a specific VM group in a cluster. I stumbled on vmware\_vm\_vm\_drs\_rule\_module.html which seems to try to do the job but looks more like …

---

## [Ansible-Vault remove key file after playbook start](https://forum.ansible.com/t/ansible-vault-remove-key-file-after-playbook-start/30280)

<div class="topic-metadata">

**Author:** [@user14](https://forum.ansible.com/u/user14)\
**Replies:** 0\
**Last updated:** [May 8, 2019, 8:20am UTC](https://forum.ansible.com/t/ansible-vault-remove-key-file-after-playbook-start/30280 "2019-05-08T08:20:20Z")

</div>

Hi! Just don’t know where to post feature requests/suggestions, so I’ve decided to post it here. How about additional key to ansible-playbook binary which will tell Ansible to delete vault password file right after sta…

---

## [ANSIBLE and CYBERARK AIM](https://forum.ansible.com/t/ansible-and-cyberark-aim/30279)

<div class="topic-metadata">

**Author:** [@The\_Vandyy\_Vines](https://forum.ansible.com/u/The_Vandyy_Vines)\
**Replies:** 0\
**Last updated:** [May 8, 2019, 5:36am UTC](https://forum.ansible.com/t/ansible-and-cyberark-aim/30279 "2019-05-08T05:36:38Z")

</div>

Hello, I am trying to secure my ansible server with help of AIM , For that i gathered this info : 1\> Setup AIM client at Ansible 2\>integrate AIM client to Cyberark vault Would appreciate suggestions/walkthroughs/docs…

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=189)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=191)
