# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=568

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

**Page:** 569

---

## [Save a variable to a File](https://forum.ansible.com/t/save-a-variable-to-a-file/22135)

<div class="topic-metadata">

**Author:** [@John\_Lewis](https://forum.ansible.com/u/John_Lewis)\
**Replies:** 1\
**Last updated:** [July 27, 2016, 5:14pm UTC](https://forum.ansible.com/t/save-a-variable-to-a-file/22135 "2016-07-27T17:14:42Z")

</div>

How do I save a variable to a file if it contained contents of a file on a host that couldn’t support anything but the raw module?

---

## [How to add a 'fake’ loopback alias with the public/elastic IP address](https://forum.ansible.com/t/how-to-add-a-fake-loopback-alias-with-the-public-elastic-ip-address/22136)

<div class="topic-metadata">

**Author:** [@Rohit\_Maheshwari1](https://forum.ansible.com/u/Rohit_Maheshwari1)\
**Replies:** 1\
**Last updated:** [July 27, 2016, 5:06pm UTC](https://forum.ansible.com/t/how-to-add-a-fake-loopback-alias-with-the-public-elastic-ip-address/22136 "2016-07-27T17:06:33Z")

</div>

Hi Everyone, I wanted to automate the below commands using ansible but I am facing difficulty to do that. Need your help. - Adding a ‘fake’ loopback alias with the public/elastic IP address: sudo cat \>\> /etc/sysconfig…

---

## [Gather variables from database](https://forum.ansible.com/t/gather-variables-from-database/22137)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 0\
**Last updated:** [July 27, 2016, 2:50pm UTC](https://forum.ansible.com/t/gather-variables-from-database/22137 "2016-07-27T14:50:11Z")

</div>

In setting up a brand new server that is being migrated from old server with the same (similar) name. e.g. server1 is migrating to migrate-server1. The old server has a volume name mounted to a particular dir. e.g. the v…

---

## [Ansible-Python Dependency](https://forum.ansible.com/t/ansible-python-dependency/22132)

<div class="topic-metadata">

**Author:** [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Replies:** 1\
**Last updated:** [July 27, 2016, 10:36am UTC](https://forum.ansible.com/t/ansible-python-dependency/22132 "2016-07-27T10:36:11Z")

</div>

Dear All, I have a playbook written to fetch various type of inventory information. This playbook gives the following error when i try to run in on RHEL5.5 server with Python2.4.3 in it Error: fatal: \[172.19.1.156\]: …

---

## [Format for conditional password change](https://forum.ansible.com/t/format-for-conditional-password-change/22068)

<div class="topic-metadata">

**Author:** [@Ian\_Dennison](https://forum.ansible.com/u/Ian_Dennison)\
**Replies:** 2\
**Last updated:** [July 27, 2016, 5:40am UTC](https://forum.ansible.com/t/format-for-conditional-password-change/22068 "2016-07-27T05:40:58Z")

</div>

Am creating a playbook where the password age is set to 0 on userid create. The variable “user\_created” gets detected as “changed” when a deleted userid is already deleted (ie, has “absent” in the item.state), so I am tr…

---

## [Ansible Not Passing Domain](https://forum.ansible.com/t/ansible-not-passing-domain/20748)

<div class="topic-metadata">

**Author:** [@navarone52](https://forum.ansible.com/u/navarone52)\
**Replies:** 4\
**Last updated:** [July 26, 2016, 10:27pm UTC](https://forum.ansible.com/t/ansible-not-passing-domain/20748 "2016-07-26T22:27:19Z")

</div>

I’m trying to get Ansible working with Windows Systems. I’m currently testing it against 2k8 box. Run: ansible windows -m win\_ping -vvvvv (I have one system in the windows group) Returns: \<System.DOMAIN.COM\> ESTABLISH…

---

## [Improving default output](https://forum.ansible.com/t/improving-default-output/22123)

<div class="topic-metadata">

**Author:** [@James\_Pic](https://forum.ansible.com/u/James_Pic)\
**Replies:** 1\
**Last updated:** [July 26, 2016, 1:54pm UTC](https://forum.ansible.com/t/improving-default-output/22123 "2016-07-26T13:54:32Z")

</div>

Hi all ! When supporting openshift-ansible, users share pastes like (ie. on IRC):: TASK: \[openshift\_serviceaccounts | Grant the user access to the privileged scc\] \*\*\* changed: \[li1491-86.members.linode.com\] =\> (item=\[…

---

## [Cisco ios\_config replace: block not working](https://forum.ansible.com/t/cisco-ios-config-replace-block-not-working/22122)

<div class="topic-metadata">

**Author:** [@Markus\_Rainer](https://forum.ansible.com/u/Markus_Rainer)\
**Replies:** 0\
**Last updated:** [July 26, 2016, 11:16am UTC](https://forum.ansible.com/t/cisco-ios-config-replace-block-not-working/22122 "2016-07-26T11:16:59Z")

</div>

Hi, I am using ansible 2.1.0.0 Module using: ios\_config It seems that replace: block is not working. Whenever changing one of my ntp\_server ip addresses, only this ntp server is configured on my device. All other NT…

---

## [More fields being added to setup module for windows?](https://forum.ansible.com/t/more-fields-being-added-to-setup-module-for-windows/22112)

<div class="topic-metadata">

**Author:** [@kumaraseem](https://forum.ansible.com/u/kumaraseem)\
**Replies:** 2\
**Last updated:** [July 26, 2016, 10:12am UTC](https://forum.ansible.com/t/more-fields-being-added-to-setup-module-for-windows/22112 "2016-07-26T10:12:54Z")

</div>

Hello developers, I have recently started to use ansible and I am very impressed with its simplicity and ease of doing things. Thank you for making a great software! I am managing both windows and unix boxes and want t…

---

## [Error in NTLM for ansible to windows connection](https://forum.ansible.com/t/error-in-ntlm-for-ansible-to-windows-connection/22108)

<div class="topic-metadata">

**Author:** [@Rakshatha\_Shetty](https://forum.ansible.com/u/Rakshatha_Shetty)\
**Replies:** 1\
**Last updated:** [July 26, 2016, 5:46am UTC](https://forum.ansible.com/t/error-in-ntlm-for-ansible-to-windows-connection/22108 "2016-07-26T05:46:15Z")

</div>

Hi, I’m using Ansible 2.1 and trying to do NTLM connection to windows server, ansible\_transport variable is set to NTLM, pywinrm 0.2.0 is installed, but connection is not being established. Is there any other configurat…

---

## [Error while doing kerbrose connection from Ansible to Windows](https://forum.ansible.com/t/error-while-doing-kerbrose-connection-from-ansible-to-windows/22088)

<div class="topic-metadata">

**Author:** [@manoj\_kumar1](https://forum.ansible.com/u/manoj_kumar1)\
**Replies:** 3\
**Last updated:** [July 26, 2016, 5:44am UTC](https://forum.ansible.com/t/error-while-doing-kerbrose-connection-from-ansible-to-windows/22088 "2016-07-26T05:44:28Z")

</div>

Hi, I have ansible version ansible 2.1.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides Kerberos is also installled along with request\_kerberose and pywinrm0.2.0. I a…

---

## [Problems with module blockinfile](https://forum.ansible.com/t/problems-with-module-blockinfile/22104)

<div class="topic-metadata">

**Author:** [@Rick\_Paxton](https://forum.ansible.com/u/Rick_Paxton)\
**Replies:** 2\
**Last updated:** [July 26, 2016, 12:39am UTC](https://forum.ansible.com/t/problems-with-module-blockinfile/22104 "2016-07-26T00:39:17Z")

</div>

So I just want to state that I’m new to Ansible and not sure how to debug issues yet, any guidance would be appreciated. I’m attempting to use module blockinfile to update /etc/sysctl.conf file, but it doesn’t seem to w…

---

## [junos\_package](https://forum.ansible.com/t/junos-package/22118)

<div class="topic-metadata">

**Author:** [@RaviCharan\_Reddy](https://forum.ansible.com/u/RaviCharan_Reddy)\
**Replies:** 0\
**Last updated:** [July 25, 2016, 9:28pm UTC](https://forum.ansible.com/t/junos-package/22118 "2016-07-25T21:28:45Z")

</div>

Hello, has anyone used the latest ansible core module junos\_package to updgrade the OS. I am trying to update the OS using this module, but my playbook throws an error (unable to install package on device). When I check…

---

## [Support for gathering facts before evaluating conditional playbook includes?](https://forum.ansible.com/t/support-for-gathering-facts-before-evaluating-conditional-playbook-includes/22117)

<div class="topic-metadata">

**Author:** [@Thomas\_Brezinski](https://forum.ansible.com/u/Thomas_Brezinski)\
**Replies:** 0\
**Last updated:** [July 25, 2016, 9:08pm UTC](https://forum.ansible.com/t/support-for-gathering-facts-before-evaluating-conditional-playbook-includes/22117 "2016-07-25T21:08:11Z")

</div>

Hello, I’ve been looking at using the support for conditionally including playbooks, that was introduced in Ansible 2.0, to simplify some old playbooks. I noticed that the playbook include conditionals are evaluated bef…

---

## [ansible assemble regexp to Assembles specific files](https://forum.ansible.com/t/ansible-assemble-regexp-to-assembles-specific-files/22101)

<div class="topic-metadata">

**Author:** [@samir\_patry](https://forum.ansible.com/u/samir_patry)\
**Replies:** 1\
**Last updated:** [July 25, 2016, 8:41pm UTC](https://forum.ansible.com/t/ansible-assemble-regexp-to-assembles-specific-files/22101 "2016-07-25T20:41:09Z")

</div>

I am using assemble module to make one file from multiple files. I have a list of files and from that list I want only .pub files to be assembled, but I am not sure how to use this. list of files: root\_rsa\_comiskey-v01…

---

## [Location of custom powershell cmdlets in ansible](https://forum.ansible.com/t/location-of-custom-powershell-cmdlets-in-ansible/22107)

<div class="topic-metadata">

**Author:** [@Rakshatha\_Shetty](https://forum.ansible.com/u/Rakshatha_Shetty)\
**Replies:** 1\
**Last updated:** [July 25, 2016, 8:33pm UTC](https://forum.ansible.com/t/location-of-custom-powershell-cmdlets-in-ansible/22107 "2016-07-25T20:33:41Z")

</div>

Hi, Where are the custom powershell cmdlets present in ps1 script of windows modules defined in anisble? For example: Get-AnsibleParam is powershell cmdlet used in windows module windows\_env.ps1, where is the cmdlet Ge…

---

## [Creating a swap file on a new partition using Ansible](https://forum.ansible.com/t/creating-a-swap-file-on-a-new-partition-using-ansible/22114)

<div class="topic-metadata">

**Author:** [@karthik\_keyan](https://forum.ansible.com/u/karthik_keyan)\
**Replies:** 0\
**Last updated:** [July 25, 2016, 5:47pm UTC](https://forum.ansible.com/t/creating-a-swap-file-on-a-new-partition-using-ansible/22114 "2016-07-25T17:47:16Z")

</div>

We are running a project to automate server build on our AWS infrastructure. On a AWS instance, I need to create a swap space as that of memory size of the instance. Any suggestions to use existing modules or I need to w…

---

## [Lineinfile Idempotency issue](https://forum.ansible.com/t/lineinfile-idempotency-issue/22091)

<div class="topic-metadata">

**Author:** [@GANA\_SAGAR](https://forum.ansible.com/u/GANA_SAGAR)\
**Replies:** 2\
**Last updated:** [July 25, 2016, 2:10pm UTC](https://forum.ansible.com/t/lineinfile-idempotency-issue/22091 "2016-07-25T14:10:56Z")

</div>

Is lineinfile really idempotent ?? I am using it to uncomment the logrorate option in logrotate.conf. Everytime I run the playbook. This play is being executed every single time and add the word compress at the bottom af…

---

## [CFEngine to Ansible Migration](https://forum.ansible.com/t/cfengine-to-ansible-migration/22111)

<div class="topic-metadata">

**Author:** [@GANA\_SAGAR](https://forum.ansible.com/u/GANA_SAGAR)\
**Replies:** 0\
**Last updated:** [July 25, 2016, 2:05pm UTC](https://forum.ansible.com/t/cfengine-to-ansible-migration/22111 "2016-07-25T14:05:02Z")

</div>

We are working on CM tool migration from CFEngine to Ansible. For all those who have done the same, any tips on creating groups from classes or any other generic suggestions would be helpful. Currently CFEngine creates d…

---

## [Role dependencies gets skipped in ansible 2](https://forum.ansible.com/t/role-dependencies-gets-skipped-in-ansible-2/20803)

<div class="topic-metadata">

**Author:** [@deep.d2010](https://forum.ansible.com/u/deep.d2010)\
**Replies:** 3\
**Last updated:** [July 25, 2016, 1:07pm UTC](https://forum.ansible.com/t/role-dependencies-gets-skipped-in-ansible-2/20803 "2016-07-25T13:07:50Z")

</div>

Hi, I was trying to upgrade from ansible 1.8.4 to ansible 2, and noticed that some of my roles with meta dependencies stopped working. I have these roles role-main1/meta/main.yml --- dependencies: - { role: role-de…

---

## [redhat-subscription module functionality enhancement](https://forum.ansible.com/t/redhat-subscription-module-functionality-enhancement/21677)

<div class="topic-metadata">

**Author:** [@Jeff\_Richards](https://forum.ansible.com/u/Jeff_Richards)\
**Replies:** 3\
**Last updated:** [July 25, 2016, 12:33pm UTC](https://forum.ansible.com/t/redhat-subscription-module-functionality-enhancement/21677 "2016-07-25T12:33:13Z")

</div>

We currently use a role comprising shell commands to subscribe systems to Red Hat Network but I noticed that there is now a redhat\_subscription module, providing basic functionality in this area. Are there any plans to …

---

## [Ansile Return Value](https://forum.ansible.com/t/ansile-return-value/22106)

<div class="topic-metadata">

**Author:** [@Kevin-Ian\_Giermann](https://forum.ansible.com/u/Kevin-Ian_Giermann)\
**Replies:** 0\
**Last updated:** [July 25, 2016, 6:24am UTC](https://forum.ansible.com/t/ansile-return-value/22106 "2016-07-25T06:24:45Z")

</div>

Hey guys, i’ve got a question. So we are currently using Ansible in conjunction with OpenStack. i’ve written a playbook (to deploy new server via OpenStack) where i use the module “os\_server” where i use “auto\_ip: yes…

---

## [Confused with writing modules.](https://forum.ansible.com/t/confused-with-writing-modules/22105)

<div class="topic-metadata">

**Author:** [@Amrit\_Bhandari](https://forum.ansible.com/u/Amrit_Bhandari)\
**Replies:** 0\
**Last updated:** [July 25, 2016, 5:28am UTC](https://forum.ansible.com/t/confused-with-writing-modules/22105 "2016-07-25T05:28:43Z")

</div>

Hello everyone, I am trying to use Ansible to start certain tasks in remode nodes.So, I run a python script which starts a JVM in the remode nodes using an integration tool named “jpype”.The code produces 3 different da…

---

## [Ansible 2.1.1 RC5 is ready for testing](https://forum.ansible.com/t/ansible-2-1-1-rc5-is-ready-for-testing/22103)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [July 24, 2016, 11:22pm UTC](https://forum.ansible.com/t/ansible-2-1-1-rc5-is-ready-for-testing/22103 "2016-07-24T23:22:36Z")

</div>

Hi all, we’re happy to announce that RC5 for 2.1.1 is now available for testing. This release candidate adds in one more patch, which restores some functionality provided by an internal API method related to getting va…

---

## [Retrieving value from nested list?](https://forum.ansible.com/t/retrieving-value-from-nested-list/22099)

<div class="topic-metadata">

**Author:** [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Replies:** 1\
**Last updated:** [July 24, 2016, 7:04am UTC](https://forum.ansible.com/t/retrieving-value-from-nested-list/22099 "2016-07-24T07:04:41Z")

</div>

Let’s say if I got this ugly debug output (nested list?), how about would I go to retrieve this value? ok: \[127.0.0.1\] =\> { "foo.stdout": \[ \[ \[ "bar" \] \] \] } Tried: \` with\_items: “{{ foo.stdout }}” with\_items: “{{ f…

---

## [Galaxy - Install Role from Subdirectory of Github Repo](https://forum.ansible.com/t/galaxy-install-role-from-subdirectory-of-github-repo/20677)

<div class="topic-metadata">

**Author:** [@Nick\_Allen](https://forum.ansible.com/u/Nick_Allen)\
**Replies:** 4\
**Last updated:** [July 24, 2016, 5:35am UTC](https://forum.ansible.com/t/galaxy-install-role-from-subdirectory-of-github-repo/20677 "2016-07-24T05:35:08Z")

</div>

I have a Github repository that contains multiple roles, each in separate subdirectories. For example, I have separate roles ‘role-alpha’ and ‘role-beta’ in a repo at https://github.com/whoami/project.git each located in…

---

## [1.9.4 vs 2.1 get\_url regression](https://forum.ansible.com/t/1-9-4-vs-2-1-get-url-regression/22100)

<div class="topic-metadata">

**Author:** [@barrett](https://forum.ansible.com/u/barrett)\
**Replies:** 0\
**Last updated:** [July 24, 2016, 1:54am UTC](https://forum.ansible.com/t/1-9-4-vs-2-1-get-url-regression/22100 "2016-07-24T01:54:01Z")

</div>

I have an action - name: download flyaway get\_url: url=https://bintray.com/artifact/download/business/maven/flyway-commandline-3.2.1-linux-x64.tar.gz dest=/opt/ mode=0660 register: flyway\_status tags: \[ db \] When…

---

## [Ansible 2.1.1 RC4 is ready for testing](https://forum.ansible.com/t/ansible-2-1-1-rc4-is-ready-for-testing/22098)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [July 23, 2016, 9:09pm UTC](https://forum.ansible.com/t/ansible-2-1-1-rc4-is-ready-for-testing/22098 "2016-07-23T21:09:10Z")

</div>

Hi all, we’re happy to announce that RC4 for 2.1.1 is now available for testing. This release candidate fixes several more bugs since the RC3 release: Fixed a regression in the way we handle variables from dependent r…

---

## [Permissions to Create Azure Blob and Container](https://forum.ansible.com/t/permissions-to-create-azure-blob-and-container/22095)

<div class="topic-metadata">

**Author:** [@barrett](https://forum.ansible.com/u/barrett)\
**Replies:** 1\
**Last updated:** [July 23, 2016, 6:58pm UTC](https://forum.ansible.com/t/permissions-to-create-azure-blob-and-container/22095 "2016-07-23T18:58:57Z")

</div>

Hello all, I’m attempting to use the azure\_rm functionality I appear to be having an issue I have an action like - name: azure\_rm\_storageblob: resource\_group: MY\_COMPANY storage\_account\_name: testdeletemebnr…

---

## [ERROR: Ansible filedescriptor out of range in select()](https://forum.ansible.com/t/error-ansible-filedescriptor-out-of-range-in-select/22097)

<div class="topic-metadata">

**Author:** [@varun\_bhatnagar](https://forum.ansible.com/u/varun_bhatnagar)\
**Replies:** 0\
**Last updated:** [July 23, 2016, 11:39am UTC](https://forum.ansible.com/t/error-ansible-filedescriptor-out-of-range-in-select/22097 "2016-07-23T11:39:50Z")

</div>

Hi, I am using Ansible 1.9 and during the execution on playbook I am getting below error message: PLAY \[Setup mysql\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TASK: \[installing\_galera | Fix expire\_l…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=567)

[Next page](https://forum.ansible.com/c/archives/31.md?page=569)
