# Ansible Project

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

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

**Page:** 313

---

## [Learning Ansible](https://forum.ansible.com/t/learning-ansible/25498)

<div class="topic-metadata">

**Author:** [@Mohan\_Musti](https://forum.ansible.com/u/Mohan_Musti)\
**Replies:** 1\
**Last updated:** [September 17, 2017, 5:34am UTC](https://forum.ansible.com/t/learning-ansible/25498 "2017-09-17T05:34:32Z")

</div>

Hi , I am sure this question is already asked . but i couldn\`t find the post . I wanted to learn from others how they approached to learn and master Ansible. any insight is helpful . As of now i started with resources …

---

## [Ansible 2.4.0 RC4 is ready for testing](https://forum.ansible.com/t/ansible-2-4-0-rc4-is-ready-for-testing/25501)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [September 16, 2017, 7:38pm UTC](https://forum.ansible.com/t/ansible-2-4-0-rc4-is-ready-for-testing/25501 "2017-09-16T19:38:04Z")

</div>

Subject: Hi all, we're happy to announce that RC4 for 2.4.0 is now available for testing. As a reminder, unless blocker bugs are found, this is the last rc tarball which will contain code changes before we release f…

---

## [Best practice for cluster nodes](https://forum.ansible.com/t/best-practice-for-cluster-nodes/25416)

<div class="topic-metadata">

**Author:** [@Cev\_Ing](https://forum.ansible.com/u/Cev_Ing)\
**Replies:** 3\
**Last updated:** [September 16, 2017, 5:42pm UTC](https://forum.ansible.com/t/best-practice-for-cluster-nodes/25416 "2017-09-16T17:42:45Z")

</div>

I have several clusters containing several nodes. I want to run configuration jobs on all cluster nodes. The configuration jobs involve a small down time of the cluster node. I have to take care, that at least a minimum …

---

## [How to set SSH KexAlgorithm for Ansible 2.3.0.0](https://forum.ansible.com/t/how-to-set-ssh-kexalgorithm-for-ansible-2-3-0-0/24585)

<div class="topic-metadata">

**Author:** [@Boyan\_Sotirov](https://forum.ansible.com/u/Boyan_Sotirov)\
**Replies:** 4\
**Last updated:** [September 16, 2017, 8:10am UTC](https://forum.ansible.com/t/how-to-set-ssh-kexalgorithm-for-ansible-2-3-0-0/24585 "2017-09-16T08:10:08Z")

</div>

Hi, I’m using Ansible version 2.3.0.0 and I’m trying to connect to an old Cisco IOS router. The issue is, that the Cisco IOS still uses diffie-hellman-group1-sha1 So in order for this to work I naturally made local con…

---

## [ansible-pull fails on subsequent runs](https://forum.ansible.com/t/ansible-pull-fails-on-subsequent-runs/25497)

<div class="topic-metadata">

**Author:** [@Rob\_V](https://forum.ansible.com/u/Rob_V)\
**Replies:** 0\
**Last updated:** [September 15, 2017, 10:05pm UTC](https://forum.ansible.com/t/ansible-pull-fails-on-subsequent-runs/25497 "2017-09-15T22:05:38Z")

</div>

for some reason ansible-pull fails after the initial run with ERROR! Decryption failed on /opt/ansible-edge/group\_vars/all/secret.yml i have some files vaulted and i pass the vault file each time to ansible, but for so…

---

## [Ansible vars\_prompt value in menu](https://forum.ansible.com/t/ansible-vars-prompt-value-in-menu/25491)

<div class="topic-metadata">

**Author:** [@vsslava\_one](https://forum.ansible.com/u/vsslava_one)\
**Replies:** 3\
**Last updated:** [September 15, 2017, 9:38pm UTC](https://forum.ansible.com/t/ansible-vars-prompt-value-in-menu/25491 "2017-09-15T21:38:52Z")

</div>

I have playbook - hosts: "{{ host }}" connection: paramiko gather\_facts: no serial: 1 user: administrator vars\_prompt: - name: host prompt: "select the router to change default route?\\n1- Test01\\n2- …

---

## [Inventory to Variable Question](https://forum.ansible.com/t/inventory-to-variable-question/25483)

<div class="topic-metadata">

**Author:** [@Sven\_Hans\_Knecht](https://forum.ansible.com/u/Sven_Hans_Knecht)\
**Replies:** 17\
**Last updated:** [September 15, 2017, 2:42pm UTC](https://forum.ansible.com/t/inventory-to-variable-question/25483 "2017-09-15T14:42:34Z")

</div>

Is it possible to pull hosts from an inventory file as a variable to be used? Example: ######## Inventory File ########### \[group\_1\] host1 ####### Variable File ############## hostname: {{ host1 }} I want to reduc…

---

## [Remotely restarting iptables](https://forum.ansible.com/t/remotely-restarting-iptables/25495)

<div class="topic-metadata">

**Author:** [@maarten\_suetens](https://forum.ansible.com/u/maarten_suetens)\
**Replies:** 0\
**Last updated:** [September 15, 2017, 10:57am UTC](https://forum.ansible.com/t/remotely-restarting-iptables/25495 "2017-09-15T10:57:39Z")

</div>

Hello, I’m trying to restart iptables on both localhost and a remote host. Iptables is actually restarted on both, but ansible doesn’t seem to pick up the restart on the remote host. Ansible output: TASK \[Allow Apach…

---

## [Documentation for beginners (mostly Windows based)](https://forum.ansible.com/t/documentation-for-beginners-mostly-windows-based/25492)

<div class="topic-metadata">

**Author:** [@Adam\_Brush](https://forum.ansible.com/u/Adam_Brush)\
**Replies:** 0\
**Last updated:** [September 15, 2017, 8:28am UTC](https://forum.ansible.com/t/documentation-for-beginners-mostly-windows-based/25492 "2017-09-15T08:28:31Z")

</div>

Hi, I’ve had a stab at doing some documentation for Windows Server Administrators who might be running a small POC or Test of Ansible, (which is what i’m doing). I’d be interested in any comments feedback / suggestions…

---

## [Ansible Expect Respones query](https://forum.ansible.com/t/ansible-expect-respones-query/25480)

<div class="topic-metadata">

**Author:** [@aussiepete2015](https://forum.ansible.com/u/aussiepete2015)\
**Replies:** 3\
**Last updated:** [September 15, 2017, 5:58am UTC](https://forum.ansible.com/t/ansible-expect-respones-query/25480 "2017-09-15T05:58:32Z")

</div>

Hi all, I’m trying to install Talend ESB 6.3.1 using Ansible. This works up to a point. The last few steps are causing me the grief. Once TESB has been installed there are manual steps to complete the installation as …

---

## [have one src file to many dest in single file copy block?](https://forum.ansible.com/t/have-one-src-file-to-many-dest-in-single-file-copy-block/25488)

<div class="topic-metadata">

**Author:** [@daddyocruzer](https://forum.ansible.com/u/daddyocruzer)\
**Replies:** 2\
**Last updated:** [September 14, 2017, 10:26pm UTC](https://forum.ansible.com/t/have-one-src-file-to-many-dest-in-single-file-copy-block/25488 "2017-09-14T22:26:52Z")

</div>

I have this for copying the same (new) banner file to each locations - is there a way for ‘dest’ to expand to include each location in a single line so I can have just one ‘copy’ block? tasks: - copy: src : ~/new-banner…

---

## [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 …

---

## [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…

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

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