# Latest

**URL:** https://forum.ansible.com/latest.md?page=624

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

**Page:** 625

---

## [Append {{item}} to existing line](https://forum.ansible.com/t/append-item-to-existing-line/25486)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [September 14, 2017, 9:54pm UTC](https://forum.ansible.com/t/append-item-to-existing-line/25486 "2017-09-14T21:54:22Z")

</div>

I need to update the grub.conf, for example, with some custom parameters. The kernel line in the grub.conf will vary on each server; therefore, I just wish to append to the line if it doesn’t already contain the paramete…

---

## [inventory issue](https://forum.ansible.com/t/inventory-issue/25489)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 1\
**Last updated:** [September 14, 2017, 9:51pm UTC](https://forum.ansible.com/t/inventory-issue/25489 "2017-09-14T21:51:01Z")

</div>

I’m getting the following error: ERROR! invalid host \<host\_name\> specified for playbook iteration I have a role that is set to only run against X group of servers that are in an inventory list. The server that is getti…

---

## [Ansible 2.4.0 RC3 is ready for testing](https://forum.ansible.com/t/ansible-2-4-0-rc3-is-ready-for-testing/25479)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 1\
**Last updated:** [September 14, 2017, 8:54pm UTC](https://forum.ansible.com/t/ansible-2-4-0-rc3-is-ready-for-testing/25479 "2017-09-14T20:54:29Z")

</div>

Hi all, we're happy to announce that RC3 for 2.4.0 is now available for testing. How do you get it?

---

## [Unsupported parameters for (lineinfile) module: notify](https://forum.ansible.com/t/unsupported-parameters-for-lineinfile-module-notify/25477)

<div class="topic-metadata">

**Author:** [@Vijay\_R](https://forum.ansible.com/u/Vijay_R)\
**Replies:** 2\
**Last updated:** [September 14, 2017, 7:16pm UTC](https://forum.ansible.com/t/unsupported-parameters-for-lineinfile-module-notify/25477 "2017-09-14T19:16:43Z")

</div>

Whether notify doesn’t come under lineinfile module? - is that a mistake, I have committed. Is there any other way or I can use one more name, shell module under the lineinfile to start the service? roles/conf/tasks/mai…

---

## [Find module questions](https://forum.ansible.com/t/find-module-questions/23466)

<div class="topic-metadata">

**Author:** [@Reji](https://forum.ansible.com/u/Reji)\
**Replies:** 6\
**Last updated:** [September 14, 2017, 7:15pm UTC](https://forum.ansible.com/t/find-module-questions/23466 "2017-09-14T19:15:11Z")

</div>

I am using Ansible 2.2 and I am running into issues when using the “find” module. My intention is to check for a pattern in a remote host file. Please note the code: name: Checking if string exists find: paths: ‘/ho…

---

## [Become isn't respected](https://forum.ansible.com/t/become-isnt-respected/25487)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 6:44pm UTC](https://forum.ansible.com/t/become-isnt-respected/25487 "2017-09-14T18:44:45Z")

</div>

can you show the error output when run with -vvv?

---

## [Handler's execution order is unintuitive and misleading when reading through a set of tasks and trying to reason about execution flow.](https://forum.ansible.com/t/handlers-execution-order-is-unintuitive-and-misleading-when-reading-through-a-set-of-tasks-and-trying-to-reason-about-execution-flow/25485)

<div class="topic-metadata">

**Author:** [@camilo.aguilar](https://forum.ansible.com/u/camilo.aguilar)\
**Replies:** 2\
**Last updated:** [September 14, 2017, 4:40pm UTC](https://forum.ansible.com/t/handlers-execution-order-is-unintuitive-and-misleading-when-reading-through-a-set-of-tasks-and-trying-to-reason-about-execution-flow/25485 "2017-09-14T16:40:57Z")

</div>

One would normally think notify statements will get queued up and dequeued at the end of the playbook run, in the same order they were notified. However, that doesn’t seem to happen. Instead, they get executed in the or…

---

## [Real time configuration management](https://forum.ansible.com/t/real-time-configuration-management/25484)

<div class="topic-metadata">

**Author:** [@Joe\_Gabrielli](https://forum.ansible.com/u/Joe_Gabrielli)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 3:51pm UTC](https://forum.ansible.com/t/real-time-configuration-management/25484 "2017-09-14T15:51:13Z")

</div>

I’m new to Ansible, and the consulting Co. I work for is looking into Ansible Tower. I heard that tower is capable of doing real time configuration management including file resurrection when changes occur. Much like how…

---

## [trouble slurping archives](https://forum.ansible.com/t/trouble-slurping-archives/25351)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 1\
**Last updated:** [September 14, 2017, 2:08pm UTC](https://forum.ansible.com/t/trouble-slurping-archives/25351 "2017-09-14T14:08:29Z")

</div>

using ansible 2.3.2.0 on fedora 26, the vagrant boxes run ubuntu 16.04 slurp fails on tar.gz archives \`

---

## [do-until loop with find function and regulare expression](https://forum.ansible.com/t/do-until-loop-with-find-function-and-regulare-expression/25474)

<div class="topic-metadata">

**Author:** [@Narahari\_n\_Savitha](https://forum.ansible.com/u/Narahari_n_Savitha)\
**Replies:** 2\
**Last updated:** [September 14, 2017, 2:28am UTC](https://forum.ansible.com/t/do-until-loop-with-find-function-and-regulare-expression/25474 "2017-09-14T02:28:13Z")

</div>

Freinds: Thank you for your time and attention on this, in advance. I have the following do-until loop and I am trying to understand how to match regurlar experssions. … … shell: “curl -sk -m 2 http://localhost:8080…

---

## [Syntax issue... I think.](https://forum.ansible.com/t/syntax-issue-i-think/25478)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 1\
**Last updated:** [September 13, 2017, 10:56pm UTC](https://forum.ansible.com/t/syntax-issue-i-think/25478 "2017-09-13T22:56:01Z")

</div>

I have the following in my playbook. (As a side note, I am unsure of my syntax under “with\_items”. I have tried multiple variations, but I always get the same error. I just need another set of eyes to point out my proble…

---

## [Neatest way to automate role installation](https://forum.ansible.com/t/neatest-way-to-automate-role-installation/24990)

<div class="topic-metadata">

**Author:** [@Listing](https://forum.ansible.com/u/Listing)\
**Replies:** 2\
**Last updated:** [September 13, 2017, 8:09pm UTC](https://forum.ansible.com/t/neatest-way-to-automate-role-installation/24990 "2017-09-13T20:09:50Z")

</div>

Hi guys, I want to install a role automatically via a playbook. But what would be the best way to do this? Is that by using the shell/command module and then ‘ansible-galaxy install’, or is there something better availa…

---

## [Newbie question on syntax](https://forum.ansible.com/t/newbie-question-on-syntax/25411)

<div class="topic-metadata">

**Author:** [@Kenny\_Barnes](https://forum.ansible.com/u/Kenny_Barnes)\
**Replies:** 9\
**Last updated:** [September 13, 2017, 6:41pm UTC](https://forum.ansible.com/t/newbie-question-on-syntax/25411 "2017-09-13T18:41:48Z")

</div>

Keep getting an error when running the following playbook. Copied from gethub and watch youtube running the same w/o error.

---

## [Using with\_fileglob is not behaving how I expect it to, am I missing something?](https://forum.ansible.com/t/using-with-fileglob-is-not-behaving-how-i-expect-it-to-am-i-missing-something/25475)

<div class="topic-metadata">

**Author:** [@Ryan\_Fisher](https://forum.ansible.com/u/Ryan_Fisher)\
**Replies:** 2\
**Last updated:** [September 13, 2017, 5:05pm UTC](https://forum.ansible.com/t/using-with-fileglob-is-not-behaving-how-i-expect-it-to-am-i-missing-something/25475 "2017-09-13T17:05:35Z")

</div>

I’m attempting to use the file module to delete some cruft left over after installing Wordpress and I’m getting a not found warning when the task executes. Not sure what I’m doing wrong… On the target host, the path and…

---

## [How do I include vars.yml in playbook or tasks - main.yml](https://forum.ansible.com/t/how-do-i-include-vars-yml-in-playbook-or-tasks-main-yml/25473)

<div class="topic-metadata">

**Author:** [@Vijay\_R](https://forum.ansible.com/u/Vijay_R)\
**Replies:** 1\
**Last updated:** [September 13, 2017, 2:59pm UTC](https://forum.ansible.com/t/how-do-i-include-vars-yml-in-playbook-or-tasks-main-yml/25473 "2017-09-13T14:59:39Z")

</div>

Hi All, I am trying to include variables that I have defined under roles/var/var.yml in roles/conf/tasks/main.yml, but I am not able to do it. roles/conf/tasks/main.yml \`

---

## [Creating a var from nested facts](https://forum.ansible.com/t/creating-a-var-from-nested-facts/25469)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 3\
**Last updated:** [September 13, 2017, 2:55pm UTC](https://forum.ansible.com/t/creating-a-var-from-nested-facts/25469 "2017-09-13T14:55:23Z")

</div>

I need to get the speed of the default ipv4 address; unfortunately, this information is contained within multiple facts. The default ipv4 address can be found in the “ansible\_default\_\_ipv4.interface” fact. The speed is …

---

## [Ansible Tower main menu](https://forum.ansible.com/t/ansible-tower-main-menu/25459)

<div class="topic-metadata">

**Author:** [@Jae\_Kim](https://forum.ansible.com/u/Jae_Kim)\
**Replies:** 5\
**Last updated:** [September 13, 2017, 2:53pm UTC](https://forum.ansible.com/t/ansible-tower-main-menu/25459 "2017-09-13T14:53:54Z")

</div>

Hi We noticed that Ansible Tower’s main menu has moved from the top part to the left side in AWX I am referring to the menu that has the following items Dashboard Jobs Schedules Portal mode Projects Credentials Inven…

---

## [strange behaviour of template module](https://forum.ansible.com/t/strange-behaviour-of-template-module/25462)

<div class="topic-metadata">

**Author:** [@Gildas\_Cotomale](https://forum.ansible.com/u/Gildas_Cotomale)\
**Replies:** 3\
**Last updated:** [September 13, 2017, 2:52pm UTC](https://forum.ansible.com/t/strange-behaviour-of-template-module/25462 "2017-09-13T14:52:11Z")

</div>

Hello, I’m having a strange issue using template module. First, here is my template file, ovz.j2: ONBOOT="yes" {# https://wiki.openvz.org/User\_Guide/Managing\_Resources #} PHYSPAGES="0:{{ (ct\_vram |int) \* 1024 }}" SWA…

---

## [Where to put environnement specific config files to copy (not templated)](https://forum.ansible.com/t/where-to-put-environnement-specific-config-files-to-copy-not-templated/25472)

<div class="topic-metadata">

**Author:** [@Julien\_Musat](https://forum.ansible.com/u/Julien_Musat)\
**Replies:** 2\
**Last updated:** [September 13, 2017, 12:54pm UTC](https://forum.ansible.com/t/where-to-put-environnement-specific-config-files-to-copy-not-templated/25472 "2017-09-13T12:54:24Z")

</div>

Hi, My ansible project is multi env. I managed to put each inventory file in a separate directory (as advise in ansible best practices : http://docs.ansible.com/ansible/latest/playbooks\_best\_practices.html#alternative-d…

---

## [How to use fact information such as IP address in task yml files](https://forum.ansible.com/t/how-to-use-fact-information-such-as-ip-address-in-task-yml-files/25467)

<div class="topic-metadata">

**Author:** [@Vijay\_R](https://forum.ansible.com/u/Vijay_R)\
**Replies:** 4\
**Last updated:** [September 13, 2017, 9:27am UTC](https://forum.ansible.com/t/how-to-use-fact-information-such-as-ip-address-in-task-yml-files/25467 "2017-09-13T09:27:18Z")

</div>

Hello there! I am new to Ansible, I have been searching all through the web for this info, but I couldn’t able to get it correctly. I am trying to get the IP address of the machine (local) with some variable under task…

---

## [Copy file(s) locally in Ansible machine](https://forum.ansible.com/t/copy-file-s-locally-in-ansible-machine/25470)

<div class="topic-metadata">

**Author:** [@Nick\_Mellor](https://forum.ansible.com/u/Nick_Mellor)\
**Replies:** 1\
**Last updated:** [September 13, 2017, 12:39am UTC](https://forum.ansible.com/t/copy-file-s-locally-in-ansible-machine/25470 "2017-09-13T00:39:29Z")

</div>

Hi, My playbook selects a bunch of files from various places on the Ansible host, puts them together in a directory, processes them then sends that processed directory to remote servers, something like this: copy sou…

---

## [Variables within variables](https://forum.ansible.com/t/variables-within-variables/25468)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [September 12, 2017, 10:38pm UTC](https://forum.ansible.com/t/variables-within-variables/25468 "2017-09-12T22:38:19Z")

</div>

don't stack mustaches: {{ (ansible\[ansible\_default\_ipv4\]\['interface'\]\['speed'\])|int|abs }}

---

## [passing variables in  ansible 2.3 not working](https://forum.ansible.com/t/passing-variables-in-ansible-2-3-not-working/25461)

<div class="topic-metadata">

**Author:** [@Yz\_Xyz](https://forum.ansible.com/u/Yz_Xyz)\
**Replies:** 10\
**Last updated:** [September 12, 2017, 9:51pm UTC](https://forum.ansible.com/t/passing-variables-in-ansible-2-3-not-working/25461 "2017-09-12T21:51:26Z")

</div>

Hi - I want to pass variable to template… Tried known methods to pass variable to template but gives errors. test Playbook : - name: Creating template template: src: value1.test.yml.j2 dest: "/u01/{{ansible…

---

## [Can vmware\_inventory.py get a bump from the ansible/contrib/inventory tree?](https://forum.ansible.com/t/can-vmware-inventory-py-get-a-bump-from-the-ansible-contrib-inventory-tree/25466)

<div class="topic-metadata">

**Author:** [@countryroad62](https://forum.ansible.com/u/countryroad62)\
**Replies:** 1\
**Last updated:** [September 12, 2017, 8:42pm UTC](https://forum.ansible.com/t/can-vmware-inventory-py-get-a-bump-from-the-ansible-contrib-inventory-tree/25466 "2017-09-12T20:42:55Z")

</div>

https://github.com/ansible/ansible/blob/devel/contrib/inventory/vmware\_inventory.py is getting some attention and works great on its own so far and it beats adding it as a custom script for now. thx jim

---

## [option creates broken on Solaris10](https://forum.ansible.com/t/option-creates-broken-on-solaris10/25463)

<div class="topic-metadata">

**Author:** [@Bernhard\_L](https://forum.ansible.com/u/Bernhard_L)\
**Replies:** 1\
**Last updated:** [September 12, 2017, 6:26pm UTC](https://forum.ansible.com/t/option-creates-broken-on-solaris10/25463 "2017-09-12T18:26:46Z")

</div>

Hi, Running the script module with the option “creates” is broken (at least since 2.3): /bin/sh on Solaris10 is not POSIX compliant and the “test” command does not have the option “-e”, therefore the return code is alw…

---

## [Ansible Tower Playbook issue: need to limit SSH connections to specific Cisco switch hosts within each task](https://forum.ansible.com/t/ansible-tower-playbook-issue-need-to-limit-ssh-connections-to-specific-cisco-switch-hosts-within-each-task/25465)

<div class="topic-metadata">

**Author:** [@mark.kleinhaus](https://forum.ansible.com/u/mark.kleinhaus)\
**Replies:** 0\
**Last updated:** [September 12, 2017, 5:27pm UTC](https://forum.ansible.com/t/ansible-tower-playbook-issue-need-to-limit-ssh-connections-to-specific-cisco-switch-hosts-within-each-task/25465 "2017-09-12T17:27:12Z")

</div>

I’m new to Ansible Automation and hopefully this is a simple fix- Running Ansible Tower 2.4.4 on Windows Server 2012 R2. I’m using the ios\_command and ios\_config modules. I have a group called “XYZ” that contains host…

---

## [Monumental slowless in parsing inventory](https://forum.ansible.com/t/monumental-slowless-in-parsing-inventory/25454)

<div class="topic-metadata">

**Author:** [@Tobias\_Wolf](https://forum.ansible.com/u/Tobias_Wolf)\
**Replies:** 3\
**Last updated:** [September 12, 2017, 5:06pm UTC](https://forum.ansible.com/t/monumental-slowless-in-parsing-inventory/25454 "2017-09-12T17:06:07Z")

</div>

So, we’ve had some issues in the past with Ansible itself in how slow it reads our custom inventory. But that slowness was in the area of 25 seconds at the worst of times. It improved to 8-ish seconds later. Now, I wan…

---

## [extract remote windows registry value](https://forum.ansible.com/t/extract-remote-windows-registry-value/25460)

<div class="topic-metadata">

**Author:** [@misha](https://forum.ansible.com/u/misha)\
**Replies:** 0\
**Last updated:** [September 12, 2017, 2:28pm UTC](https://forum.ansible.com/t/extract-remote-windows-registry-value/25460 "2017-09-12T14:28:38Z")

</div>

Hi, I’m using the playbook to extract registry key of a product using win\_reg\_stat module \` name: check product installed hosts: windows tasks: name: phase one win\_reg\_stat: path: HKLM:\\SOFTWARE\\Microsoft\\Win…

---

## [Using Netbox to set variables in my playbook](https://forum.ansible.com/t/using-netbox-to-set-variables-in-my-playbook/25456)

<div class="topic-metadata">

**Author:** [@Marco\_Baldanza](https://forum.ansible.com/u/Marco_Baldanza)\
**Replies:** 2\
**Last updated:** [September 12, 2017, 1:41pm UTC](https://forum.ansible.com/t/using-netbox-to-set-variables-in-my-playbook/25456 "2017-09-12T13:41:09Z")

</div>

Hi all, I currently use Ansible to generate all the network device configs and store them locally which works great. However, i currently have to store all my variables in a static .yml file. Is it possible for ansible…

---

## [Can't run development environment](https://forum.ansible.com/t/cant-run-development-environment/25444)

<div class="topic-metadata">

**Author:** [@Julen\_Landa\_Alustiza](https://forum.ansible.com/u/Julen_Landa_Alustiza)\
**Replies:** 4\
**Last updated:** [September 12, 2017, 12:51pm UTC](https://forum.ansible.com/t/cant-run-development-environment/25444 "2017-09-12T12:51:38Z")

</div>

Hi, I followed the contributing guide to setup the dev environment. After building the container I try to run the environment but the script tries to fetch a container from gcr.io and I don’t have credentials for it. A…

[Previous page](https://forum.ansible.com/latest.md?page=623)

[Next page](https://forum.ansible.com/latest.md?page=625)
