# Latest

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

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

**Page:** 709

---

## [Set the "changed" value when using the raw module](https://forum.ansible.com/t/set-the-changed-value-when-using-the-raw-module/23049)

<div class="topic-metadata">

**Author:** [@Justin\_Dugan](https://forum.ansible.com/u/Justin_Dugan)\
**Replies:** 3\
**Last updated:** [November 17, 2016, 7:52pm UTC](https://forum.ansible.com/t/set-the-changed-value-when-using-the-raw-module/23049 "2016-11-17T19:52:23Z")

</div>

Hi all, I am using the following task in a playbook: name: Install .Net 4.6.2 raw: c:/temp/NDP462-KB3151800-x86-x64-AllOS-ENU.exe /q /norestart when: raw\_output.stdout | version\_compare(‘394806’, ‘\<’) notify: reboo…

---

## [Ansible 2.2.0 - Module shell & win\_shell - possible issue when output is empty](https://forum.ansible.com/t/ansible-2-2-0-module-shell-win-shell-possible-issue-when-output-is-empty/23048)

<div class="topic-metadata">

**Author:** [@fabrice.perko](https://forum.ansible.com/u/fabrice.perko)\
**Replies:** 2\
**Last updated:** [November 17, 2016, 5:30pm UTC](https://forum.ansible.com/t/ansible-2-2-0-module-shell-win-shell-possible-issue-when-output-is-empty/23048 "2016-11-17T17:30:17Z")

</div>

Hello, I encounter a bizarre behavior with these the shell module and the new win\_shell module. It appears that, if the execution of the shell command does not produce anything in the standard output, the module consid…

---

## [expect module does not like an int I am passing in](https://forum.ansible.com/t/expect-module-does-not-like-an-int-i-am-passing-in/23028)

<div class="topic-metadata">

**Author:** [@matt\_shepherd](https://forum.ansible.com/u/matt_shepherd)\
**Replies:** 3\
**Last updated:** [November 17, 2016, 3:13pm UTC](https://forum.ansible.com/t/expect-module-does-not-like-an-int-i-am-passing-in/23028 "2016-11-17T15:13:02Z")

</div>

All, I did some searching here and did not find this specific issue. I am trying to use the expect module to work with fdisk to automatically provision new space on VMs. tasks: name: “DISK | Create a partition for the…

---

## [Using facts with Ansible Tower does not appear to work](https://forum.ansible.com/t/using-facts-with-ansible-tower-does-not-appear-to-work/23042)

<div class="topic-metadata">

**Author:** [@Jon\_Kent](https://forum.ansible.com/u/Jon_Kent)\
**Replies:** 2\
**Last updated:** [November 17, 2016, 9:52am UTC](https://forum.ansible.com/t/using-facts-with-ansible-tower-does-not-appear-to-work/23042 "2016-11-17T09:52:02Z")

</div>

Hi, I’ve been trying to get Ansible Tower to run a playbook/role which should update the /etc/hosts file across all hosts in a group. I have the following playbook: name: Update hosts file if required hosts: all ga…

---

## [Some question about the ansible 2.3 roadmap of Networking](https://forum.ansible.com/t/some-question-about-the-ansible-2-3-roadmap-of-networking/23047)

<div class="topic-metadata">

**Author:** [@jacky.gao2016](https://forum.ansible.com/u/jacky.gao2016)\
**Replies:** 0\
**Last updated:** [November 17, 2016, 8:11am UTC](https://forum.ansible.com/t/some-question-about-the-ansible-2-3-roadmap-of-networking/23047 "2016-11-17T08:11:27Z")

</div>

I have some question about the ansible 2.3 roadmap of Networking as below blue: Networking Persistent connection manager è Does it supported by openssh? Netconf/YANG implementation (only feature) è We now using ncclie…

---

## [Not sure why this when: is not working.](https://forum.ansible.com/t/not-sure-why-this-when-is-not-working/23031)

<div class="topic-metadata">

**Author:** [@Steven\_Smith](https://forum.ansible.com/u/Steven_Smith)\
**Replies:** 3\
**Last updated:** [November 17, 2016, 5:45am UTC](https://forum.ansible.com/t/not-sure-why-this-when-is-not-working/23031 "2016-11-17T05:45:12Z")

</div>

This is the play I am trying to get to run: name: Install httpd yum: name=httpd state=latest disable\_gpg\_check=yes when: (inventory\_hostname in groups\[“web”\]) or (inventory\_hostname in groups\[“web\_backend”\]) ignore\_…

---

## [Galaxy update tonight at 10:00 PM](https://forum.ansible.com/t/galaxy-update-tonight-at-10-00-pm/23044)

<div class="topic-metadata">

**Author:** [@Chris\_Houseknecht](https://forum.ansible.com/u/Chris_Houseknecht)\
**Replies:** 1\
**Last updated:** [November 17, 2016, 3:45am UTC](https://forum.ansible.com/t/galaxy-update-tonight-at-10-00-pm/23044 "2016-11-17T03:45:51Z")

</div>

We will be pushing an update to Galaxy this evening that fixes broken Travis notifications and automatic role imports. See issue 189 for details. The update will be quick, and we do not anticipate any downtime. Will upd…

---

## [Writing an endless playbook strategy plugin](https://forum.ansible.com/t/writing-an-endless-playbook-strategy-plugin/23041)

<div class="topic-metadata">

**Author:** [@Florian\_Dambrine](https://forum.ansible.com/u/Florian_Dambrine)\
**Replies:** 3\
**Last updated:** [November 16, 2016, 9:24pm UTC](https://forum.ansible.com/t/writing-an-endless-playbook-strategy-plugin/23041 "2016-11-16T21:24:57Z")

</div>

Hey everyone, I would like to have your input on that question. I have a really special use case where I want to run an endless playbook (on localhost only). I basically want to implement an endless loop on my playbook…

---

## [\--syntax-ckeck won't check syntax from variable-included files](https://forum.ansible.com/t/syntax-ckeck-wont-check-syntax-from-variable-included-files/23039)

<div class="topic-metadata">

**Author:** [@Thomas\_Faucher](https://forum.ansible.com/u/Thomas_Faucher)\
**Replies:** 1\
**Last updated:** [November 16, 2016, 7:32pm UTC](https://forum.ansible.com/t/syntax-ckeck-wont-check-syntax-from-variable-included-files/23039 "2016-11-16T19:32:33Z")

</div>

Hello, I noticed that --syntax-check won't check the syntax from included files if the include statement is based on a variable. I have an include statement such as: $ head -n 3 roles/mongodb/tasks/main.yml

---

## [multiple variables](https://forum.ansible.com/t/multiple-variables/23043)

<div class="topic-metadata">

**Author:** [@Luigi\_Crozzoli](https://forum.ansible.com/u/Luigi_Crozzoli)\
**Replies:** 1\
**Last updated:** [November 16, 2016, 5:57pm UTC](https://forum.ansible.com/t/multiple-variables/23043 "2016-11-16T17:57:24Z")

</div>

Is there a way to register two or more variables echoed from shell script? I want to do something like this: script.sh A=“hello” B=“world” echo $A echo $B ROLE shell: "{{ script }} " register: result ignore\_err…

---

## [Ansible plugin for FreeIPA](https://forum.ansible.com/t/ansible-plugin-for-freeipa/14723)

<div class="topic-metadata">

**Author:** [@Johan\_Soderberg](https://forum.ansible.com/u/Johan_Soderberg)\
**Replies:** 17\
**Last updated:** [November 16, 2016, 10:24am UTC](https://forum.ansible.com/t/ansible-plugin-for-freeipa/14723 "2016-11-16T10:24:58Z")

</div>

Hi, I’m wondering if there has been any thought of making a FreeIPA plugin for Ansible where one would be able to administrate IPA with Ansible? Add and remove servers, groups, users etc etc. Would such a plugin make se…

---

## [Passing variables via nested include\_role doesn't work Ticket #17686. Closed but still not working.](https://forum.ansible.com/t/passing-variables-via-nested-include-role-doesnt-work-ticket-17686-closed-but-still-not-working/23038)

<div class="topic-metadata">

**Author:** [@Jorge\_Moraleda](https://forum.ansible.com/u/Jorge_Moraleda)\
**Replies:** 1\
**Last updated:** [November 16, 2016, 4:28am UTC](https://forum.ansible.com/t/passing-variables-via-nested-include-role-doesnt-work-ticket-17686-closed-but-still-not-working/23038 "2016-11-16T04:28:48Z")

</div>

I believe variable resolution in nested add\_role is still not working properly. For example if we change the example shown in the ticket above such that instead of the line b: “{{ a+1 }}” in ./roles/a/tasks/main.yml whe…

---

## [Find register directory seems to not registered](https://forum.ansible.com/t/find-register-directory-seems-to-not-registered/23013)

<div class="topic-metadata">

**Author:** [@Felix\_Gao](https://forum.ansible.com/u/Felix_Gao)\
**Replies:** 4\
**Last updated:** [November 16, 2016, 1:08am UTC](https://forum.ansible.com/t/find-register-directory-seems-to-not-registered/23013 "2016-11-16T01:08:39Z")

</div>

hosts: test remote\_user: ec2-user sudo: yes tasks: #using the shell command because we need \* expansion, otherwise if we know the exact directory we can use command module instead name: list log directory to fin…

---

## [replace module works different in version 2.1.2?](https://forum.ansible.com/t/replace-module-works-different-in-version-2-1-2/23023)

<div class="topic-metadata">

**Author:** [@mtovey](https://forum.ansible.com/u/mtovey)\
**Replies:** 2\
**Last updated:** [November 15, 2016, 11:48pm UTC](https://forum.ansible.com/t/replace-module-works-different-in-version-2-1-2/23023 "2016-11-15T23:48:49Z")

</div>

I wrote the below to ensure certain options are set in a server’s /etc/fstab file for CIS compliance: name: Describe file system options set\_fact: filesystems: fs: /tmp options: nodev nosuid fs: /home …

---

## [Save remote property value to registered variable?](https://forum.ansible.com/t/save-remote-property-value-to-registered-variable/23037)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 10:01pm UTC](https://forum.ansible.com/t/save-remote-property-value-to-registered-variable/23037 "2016-11-15T22:01:36Z")

</div>

Hello - Is there a way to save a remote property value to a registered variable? Example: Remote server has file stuff.properties with below sample content: var1=Hello var2=World Can Ansible reach out to that file…

---

## [Working with async jobs that require an extra call to an api to check their state](https://forum.ansible.com/t/working-with-async-jobs-that-require-an-extra-call-to-an-api-to-check-their-state/23036)

<div class="topic-metadata">

**Author:** [@Nestor\_Manrique](https://forum.ansible.com/u/Nestor_Manrique)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 8:56pm UTC](https://forum.ansible.com/t/working-with-async-jobs-that-require-an-extra-call-to-an-api-to-check-their-state/23036 "2016-11-15T20:56:29Z")

</div>

Hello, I’ve been diving into ansible most recently because I wan’t to automate the management of several virtual environments deployed with OVM (oracle virtualization solution for x86 using xen). I found an ansible modu…

---

## [I am not being able to ssh into EC2 after creation in ansible](https://forum.ansible.com/t/i-am-not-being-able-to-ssh-into-ec2-after-creation-in-ansible/23035)

<div class="topic-metadata">

**Author:** [@suyesh\_bhandari](https://forum.ansible.com/u/suyesh_bhandari)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 7:27pm UTC](https://forum.ansible.com/t/i-am-not-being-able-to-ssh-into-ec2-after-creation-in-ansible/23035 "2016-11-15T19:27:49Z")

</div>

I am new to ansible and trying to create EC2 and i have several other tasks to perform. here is the code, \` name: Create a Dataloading environment hosts: localhost gather\_facts: False vars: key\_name: sims-admin i…

---

## [Setting a global variable in a task](https://forum.ansible.com/t/setting-a-global-variable-in-a-task/23032)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 2\
**Last updated:** [November 15, 2016, 7:19pm UTC](https://forum.ansible.com/t/setting-a-global-variable-in-a-task/23032 "2016-11-15T19:19:15Z")

</div>

Is there a way to set a variable in a task such that it has global scope? I want to do something like this: - hosts: all serial: 1 vars: foo\_first\_host: True tasks: - name: pause after th…

---

## [asa\_config not making changes](https://forum.ansible.com/t/asa-config-not-making-changes/23034)

<div class="topic-metadata">

**Author:** [@scarter](https://forum.ansible.com/u/scarter)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 7:15pm UTC](https://forum.ansible.com/t/asa-config-not-making-changes/23034 "2016-11-15T19:15:40Z")

</div>

I have the following plays: name: Associate VLAN with interface asa\_config: lines: vlan 610 parents: \[‘interface Port-channel1.610’\] context: system provider: “{{ cli }}” name: Add Context asa\_config: lin…

---

## [odd result after migrating postgresql database off-tower](https://forum.ansible.com/t/odd-result-after-migrating-postgresql-database-off-tower/23033)

<div class="topic-metadata">

**Author:** [@Stuart\_Cracraft](https://forum.ansible.com/u/Stuart_Cracraft)\
**Replies:** 2\
**Last updated:** [November 15, 2016, 6:39pm UTC](https://forum.ansible.com/t/odd-result-after-migrating-postgresql-database-off-tower/23033 "2016-11-15T18:39:47Z")

</div>

Getting a bizarre result after migrating postgresql database off-tower using jsmartin’s script. The gui no longer logs in. Shows username where admin/password are entered but then it goes to “Working…” After a very lo…

---

## [lineinfile single quotes in regexp](https://forum.ansible.com/t/lineinfile-single-quotes-in-regexp/23030)

<div class="topic-metadata">

**Author:** [@Alix\_Ak](https://forum.ansible.com/u/Alix_Ak)\
**Replies:** 2\
**Last updated:** [November 15, 2016, 3:51pm UTC](https://forum.ansible.com/t/lineinfile-single-quotes-in-regexp/23030 "2016-11-15T15:51:59Z")

</div>

hallo, i need to uncomment this statement : # 'Mirroring', in gitolite.rc . The problem is that ‘Mirroring’ contains quotes. { regexp: ‘^(\\s\*)#? \*('Mirroring,')’, line: “‘Mirroring’,” } when i run the task cont…

---

## [How to crypt the url\_username and url\_password in verbose mode](https://forum.ansible.com/t/how-to-crypt-the-url-username-and-url-password-in-verbose-mode/23029)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 1\
**Last updated:** [November 15, 2016, 3:31pm UTC](https://forum.ansible.com/t/how-to-crypt-the-url-username-and-url-password-in-verbose-mode/23029 "2016-11-15T15:31:55Z")

</div>

Hello, I did write the user/password to use for the get\_url command in a file encrypt with vault this way: urlname: user1 urlpass: pass1 in my playbook I use these variables: get\_url: url: “https:…” url\_username: …

---

## [disbale global replace in replace module](https://forum.ansible.com/t/disbale-global-replace-in-replace-module/23027)

<div class="topic-metadata">

**Author:** [@Alix\_Ak](https://forum.ansible.com/u/Alix_Ak)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 2:43pm UTC](https://forum.ansible.com/t/disbale-global-replace-in-replace-module/23027 "2016-11-15T14:43:42Z")

</div>

When using replace module the regexp will be replaced globally. How could i limit it to the first found entry ? I didn’t find a parameter that would help :confused:

---

## [Ansible Tower connection error with Node](https://forum.ansible.com/t/ansible-tower-connection-error-with-node/22997)

<div class="topic-metadata">

**Author:** [@Balu\_Kompalli](https://forum.ansible.com/u/Balu_Kompalli)\
**Replies:** 1\
**Last updated:** [November 15, 2016, 1:50pm UTC](https://forum.ansible.com/t/ansible-tower-connection-error-with-node/22997 "2016-11-15T13:50:10Z")

</div>

Hello Team, I installed Ansible Tower in my VM and have a public IP. And also have disable and stop all the firewalls in the CentOS. I changed the apache port from default to 1010 as my necessity. After did the above s…

---

## [Ansible 2.2.1.0 release](https://forum.ansible.com/t/ansible-2-2-1-0-release/23026)

<div class="topic-metadata">

**Author:** [@Jonathan\_Nunez\_Aguin](https://forum.ansible.com/u/Jonathan_Nunez_Aguin)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 11:54am UTC](https://forum.ansible.com/t/ansible-2-2-1-0-release/23026 "2016-11-15T11:54:31Z")

</div>

Hello, Is there a page where we can see when Ansible 2.2.1.0.is expected to be released in PIP? Thanks!

---

## [Help removing block in file please.](https://forum.ansible.com/t/help-removing-block-in-file-please/22629)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 1\
**Last updated:** [November 15, 2016, 11:38am UTC](https://forum.ansible.com/t/help-removing-block-in-file-please/22629 "2016-11-15T11:38:43Z")

</div>

I have a file with the following bock of text in it. I have text before and after the text block. logstash: hash: $fj;kdjjfajf;ajKFJ;dfj;dkfja;dfjFJ:LFJj;kj;lfkajs #password is: some\_pw I’m trying to remove the block u…

---

## [Relative paths behaviour changes 1.9 =\> 2.0 =\> 2.1.2](https://forum.ansible.com/t/relative-paths-behaviour-changes-1-9-2-0-2-1-2/23024)

<div class="topic-metadata">

**Author:** [@Steven\_Ringo](https://forum.ansible.com/u/Steven_Ringo)\
**Replies:** 4\
**Last updated:** [November 15, 2016, 2:00am UTC](https://forum.ansible.com/t/relative-paths-behaviour-changes-1-9-2-0-2-1-2/23024 "2016-11-15T02:00:43Z")

</div>

Hi, It seems like Ansible 2.1.2 and newer has changed path handling. My observations are: In 1.9.x it bases relative paths on the path of the playbook itself. In 2.0.0 to 2.1.1 it bases relative paths on the path of …

---

## [Problems with Ansible 2.2](https://forum.ansible.com/t/problems-with-ansible-2-2/23022)

<div class="topic-metadata">

**Author:** [@Art\_Fewell](https://forum.ansible.com/u/Art_Fewell)\
**Replies:** 2\
**Last updated:** [November 14, 2016, 11:34pm UTC](https://forum.ansible.com/t/problems-with-ansible-2-2/23022 "2016-11-14T23:34:07Z")

</div>

Hi Everyone, Please forgive any mistakes as I am a noob to this community. I just tried running an existing ansible solution on a new Ansible 2.2.0.0-1 version, and it is not happy. I have a role setup to install apach…

---

## [Wrong username being used with kerberos authentication](https://forum.ansible.com/t/wrong-username-being-used-with-kerberos-authentication/23014)

<div class="topic-metadata">

**Author:** [@mmcgrellis](https://forum.ansible.com/u/mmcgrellis)\
**Replies:** 2\
**Last updated:** [November 14, 2016, 9:47pm UTC](https://forum.ansible.com/t/wrong-username-being-used-with-kerberos-authentication/23014 "2016-11-14T21:47:35Z")

</div>

We have a current setup that works using Ansible v2.0.0 in which we specify ansible\_ssh\_user in inventory exactly as follows. ansible\_ssh\_user: user@realm When running playbooks we use kinit to get a kerberos ticket us…

---

## [Automation tool](https://forum.ansible.com/t/automation-tool/22885)

<div class="topic-metadata">

**Author:** [@mohamed\_ayman](https://forum.ansible.com/u/mohamed_ayman)\
**Replies:** 1\
**Last updated:** [November 14, 2016, 8:11pm UTC](https://forum.ansible.com/t/automation-tool/22885 "2016-11-14T20:11:57Z")

</div>

Dears, I want to make a tool which have a mix of Ansible and puppet.what should I learn to start with this project? Thanks in advance.

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

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