# Archives

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

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

**Page:** 601

---

## [win\_regedit; binary data](https://forum.ansible.com/t/win-regedit-binary-data/20675)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 2\
**Last updated:** [April 15, 2016, 7:43am UTC](https://forum.ansible.com/t/win-regedit-binary-data/20675 "2016-04-15T07:43:14Z")

</div>

Hi, Does anyone have an example of using win\_regedit to set binary data? I have a hex encoded string from a reg export but so far not found a way to convert it to whatever powershell needs. Many thanks, Jon

---

## [Need help with a curl command](https://forum.ansible.com/t/need-help-with-a-curl-command/21164)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 0\
**Last updated:** [April 15, 2016, 5:26am UTC](https://forum.ansible.com/t/need-help-with-a-curl-command/21164 "2016-04-15T05:26:36Z")

</div>

Hi folks, I need help I am trying to translate a curl into ansible YAML and the curl supposed to return 201 or 200

---

## [Dict subelements containing arrays](https://forum.ansible.com/t/dict-subelements-containing-arrays/21058)

<div class="topic-metadata">

**Author:** [@Jeff\_Hardy](https://forum.ansible.com/u/Jeff_Hardy)\
**Replies:** 1\
**Last updated:** [April 15, 2016, 12:54am UTC](https://forum.ansible.com/t/dict-subelements-containing-arrays/21058 "2016-04-15T00:54:45Z")

</div>

Hello all, I am trying to build a play that allows for variable subelement selection, and subsequent iteration over array contained therein. The following test playbook hopefully illustrates the situation:

---

## [Question on import statement in ansible module?](https://forum.ansible.com/t/question-on-import-statement-in-ansible-module/21159)

<div class="topic-metadata">

**Author:** [@Pathangi\_Janardhanan](https://forum.ansible.com/u/Pathangi_Janardhanan)\
**Replies:** 2\
**Last updated:** [April 14, 2016, 10:46pm UTC](https://forum.ansible.com/t/question-on-import-statement-in-ansible-module/21159 "2016-04-14T22:46:49Z")

</div>

Hi, I am in the process of writting a python module for Ansible, and in this I need to import a non-standard shipped python module. How should I solve this? Should I first ensure that I get it installed in the target ho…

---

## [Syntax for running commands with braces in them](https://forum.ansible.com/t/syntax-for-running-commands-with-braces-in-them/21142)

<div class="topic-metadata">

**Author:** [@Ryan\_Groten](https://forum.ansible.com/u/Ryan_Groten)\
**Replies:** 7\
**Last updated:** [April 14, 2016, 2:26pm UTC](https://forum.ansible.com/t/syntax-for-running-commands-with-braces-in-them/21142 "2016-04-14T14:26:51Z")

</div>

I am trying to execute a task that runs the following command (which includes a number of quote, brackets, colons, etc): \` command: curl -XPUT “http://localhost:9200/\_cluster/settings” -d’{ “transient” : { “cluster.rou…

---

## [Is --user meant to override the remote\_user in the playbook? Because it doesn't seem to](https://forum.ansible.com/t/is-user-meant-to-override-the-remote-user-in-the-playbook-because-it-doesnt-seem-to/21155)

<div class="topic-metadata">

**Author:** [@Josh\_Grigonis](https://forum.ansible.com/u/Josh_Grigonis)\
**Replies:** 1\
**Last updated:** [April 14, 2016, 2:15pm UTC](https://forum.ansible.com/t/is-user-meant-to-override-the-remote-user-in-the-playbook-because-it-doesnt-seem-to/21155 "2016-04-14T14:15:22Z")

</div>

If this is the start of my playbook: \`

---

## [yml indentation quirkness](https://forum.ansible.com/t/yml-indentation-quirkness/21160)

<div class="topic-metadata">

**Author:** [@Steve\_Kieu1](https://forum.ansible.com/u/Steve_Kieu1)\
**Replies:** 2\
**Last updated:** [April 14, 2016, 1:27pm UTC](https://forum.ansible.com/t/yml-indentation-quirkness/21160 "2016-04-14T13:27:10Z")

</div>

Hi Team, I have a bug in the code that is simple to fix but hard to find out. It took me almost 30 minutes to see but it is due to the fact that yml indentation syntax quirkness! Lets see the block below block: name:…

---

## [sudo: not found - but installed](https://forum.ansible.com/t/sudo-not-found-but-installed/21118)

<div class="topic-metadata">

**Author:** [@mark.breyer](https://forum.ansible.com/u/mark.breyer)\
**Replies:** 1\
**Last updated:** [April 14, 2016, 1:04pm UTC](https://forum.ansible.com/t/sudo-not-found-but-installed/21118 "2016-04-14T13:04:53Z")

</div>

Hi, i have a strange problem with one of my ansible managed hosts. Error message: FAILED! =\> {“changed”: false, “failed”: true, “module\_stderr”: “”, “module\_stdout”: “sudo: not found\\r\\n”, “msg”: “MODULE FAILURE”, “pa…

---

## [Ansible for openstack](https://forum.ansible.com/t/ansible-for-openstack/21157)

<div class="topic-metadata">

**Author:** [@hce](https://forum.ansible.com/u/hce)\
**Replies:** 2\
**Last updated:** [April 14, 2016, 6:09am UTC](https://forum.ansible.com/t/ansible-for-openstack/21157 "2016-04-14T06:09:39Z")

</div>

Hi, I want to run ansible to install openstack from a bare metal commodity hardware, has anyone known if there is already an ansible project exists for installing openstack? I found an announcement https://www.ansible.c…

---

## [Fetch equivalent command in windows?](https://forum.ansible.com/t/fetch-equivalent-command-in-windows/21147)

<div class="topic-metadata">

**Author:** [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Replies:** 1\
**Last updated:** [April 14, 2016, 1:11am UTC](https://forum.ansible.com/t/fetch-equivalent-command-in-windows/21147 "2016-04-14T01:11:26Z")

</div>

Hi I want to copy a file from windows client to Ansible controller machine (linux). I see fetch command which does that .What is the equivalent one for windows. I could not find it in the documentation Thanks

---

## [Hard Code Ansible return 302 error message](https://forum.ansible.com/t/hard-code-ansible-return-302-error-message/21154)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 2\
**Last updated:** [April 13, 2016, 11:04pm UTC](https://forum.ansible.com/t/hard-code-ansible-return-302-error-message/21154 "2016-04-13T23:04:02Z")

</div>

Hi Folks, I am writing that ansible to register Mule server .It’s fine you don’t Mule I do believe you can still help me. Here is the Error : failed: \[ip-172-31-57-168.ec2.internal\] =\> {“content”: “”, “content\_length”:…

---

## [Ansible Network, junos\_command.](https://forum.ansible.com/t/ansible-network-junos-command/21094)

<div class="topic-metadata">

**Author:** [@Oscar\_Bengtsson](https://forum.ansible.com/u/Oscar_Bengtsson)\
**Replies:** 4\
**Last updated:** [April 13, 2016, 8:30pm UTC](https://forum.ansible.com/t/ansible-network-junos-command/21094 "2016-04-13T20:30:33Z")

</div>

Hi, I’m trying to get a playbook to connect to a juniper switch and do a ‘show version’ I’m totally new to this and wanted to do this without the use of yaml files for username and password. This is the code for the p…

---

## [Delete files from directory: delete all files except some special ones?](https://forum.ansible.com/t/delete-files-from-directory-delete-all-files-except-some-special-ones/21143)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 1\
**Last updated:** [April 13, 2016, 5:51pm UTC](https://forum.ansible.com/t/delete-files-from-directory-delete-all-files-except-some-special-ones/21143 "2016-04-13T17:51:45Z")

</div>

Hi all, excuse the subject, I'll try to explain: I can tell ansible to delete all files from a certain directory, at least I guess I can... But can I tell it to exclude certain files? I know I could use the synchron…

---

## [Ansible Core Public Meetings](https://forum.ansible.com/t/ansible-core-public-meetings/21130)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 5\
**Last updated:** [April 13, 2016, 3:11pm UTC](https://forum.ansible.com/t/ansible-core-public-meetings/21130 "2016-04-13T15:11:59Z")

</div>

Hi all, The core team will be resuming our public team meetings starting tomorrow, however with a bit of a change in format. Previously we had done them on a public hangout, we’re now going to be holding our meetings i…

---

## [Appending a variable's value to a list](https://forum.ansible.com/t/appending-a-variables-value-to-a-list/21152)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [April 13, 2016, 2:04pm UTC](https://forum.ansible.com/t/appending-a-variables-value-to-a-list/21152 "2016-04-13T14:04:15Z")

</div>

Hi everyone, how to add the value of a variable to a list?

---

## [Can Ansible interact with an application?](https://forum.ansible.com/t/can-ansible-interact-with-an-application/21150)

<div class="topic-metadata">

**Author:** [@richard\_kappler](https://forum.ansible.com/u/richard_kappler)\
**Replies:** 2\
**Last updated:** [April 13, 2016, 1:36pm UTC](https://forum.ansible.com/t/can-ansible-interact-with-an-application/21150 "2016-04-13T13:36:35Z")

</div>

I am writing a playbook to set up new VM’s remotely, and two of the tasks require interaction with a utility and an app, and I’m presuming this could be done in Ansible, but have no idea how, so I’m looking for a pointer…

---

## [ansible error message](https://forum.ansible.com/t/ansible-error-message/21151)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 0\
**Last updated:** [April 13, 2016, 1:17pm UTC](https://forum.ansible.com/t/ansible-error-message/21151 "2016-04-13T13:17:11Z")

</div>

I am running an ansible script that returned an error message anytime I have added a JSON payload TASK: \[uri url=http://ec2-54-164-162-26.compute-1.amazonaws.com:7777/mmc-support method=POST user=admin password=admin re…

---

## [New Modules Report, 12-Apr-2016](https://forum.ansible.com/t/new-modules-report-12-apr-2016/21146)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 1\
**Last updated:** [April 13, 2016, 11:02am UTC](https://forum.ansible.com/t/new-modules-report-12-apr-2016/21146 "2016-04-13T11:02:07Z")

</div>

There are currently 150 modules waiting for inclusion in Ansible Extras. One of them might be useful to you! New modules this week: InfluxDB database module https://github.com/ansible/ansible-modules-extras/pull/2015 …

---

## [lineinfile unexpected behavior](https://forum.ansible.com/t/lineinfile-unexpected-behavior/21144)

<div class="topic-metadata">

**Author:** [@adam.frederick](https://forum.ansible.com/u/adam.frederick)\
**Replies:** 1\
**Last updated:** [April 13, 2016, 12:12am UTC](https://forum.ansible.com/t/lineinfile-unexpected-behavior/21144 "2016-04-13T00:12:53Z")

</div>

I have the following in a playbook to uncomment a line. The first time I run it everything works fine. If I run it again it inserts a “Banner /etc/issue.net” at the EOF. Is there a better way to do this? name: uncommen…

---

## [This isn't working for me  -hosts: {{ hostvars\['localhost'\]\['mylist'\] }}   :   hostvars is undefined](https://forum.ansible.com/t/this-isnt-working-for-me-hosts-hostvars-localhost-mylist-hostvars-is-undefined/21145)

<div class="topic-metadata">

**Author:** [@Larry\_Fast](https://forum.ansible.com/u/Larry_Fast)\
**Replies:** 4\
**Last updated:** [April 12, 2016, 10:08pm UTC](https://forum.ansible.com/t/this-isnt-working-for-me-hosts-hostvars-localhost-mylist-hostvars-is-undefined/21145 "2016-04-12T22:08:16Z")

</div>

I’m trying to dynamically build the group of hosts that will be used in a play. I’m doing this within a hosts: localhost play. However hostvars seems to be undefined when evaluating the - hosts: line. Suggestions?

---

## [Ansbile fails to connect while ssh works](https://forum.ansible.com/t/ansbile-fails-to-connect-while-ssh-works/21112)

<div class="topic-metadata">

**Author:** [@Jack\_Minardi](https://forum.ansible.com/u/Jack_Minardi)\
**Replies:** 5\
**Last updated:** [April 12, 2016, 6:21pm UTC](https://forum.ansible.com/t/ansbile-fails-to-connect-while-ssh-works/21112 "2016-04-12T18:21:29Z")

</div>

Hi all, I may be doing something completely stupid but I failing to get even a basic ping to work. I have been using ansible for a few weeks and everything has been going great. However today everything stopped working…

---

## [Newbie: Need best practice advice on ansible used as configuration manager.](https://forum.ansible.com/t/newbie-need-best-practice-advice-on-ansible-used-as-configuration-manager/21111)

<div class="topic-metadata">

**Author:** [@Anthony\_P\_V](https://forum.ansible.com/u/Anthony_P_V)\
**Replies:** 2\
**Last updated:** [April 12, 2016, 6:08pm UTC](https://forum.ansible.com/t/newbie-need-best-practice-advice-on-ansible-used-as-configuration-manager/21111 "2016-04-12T18:08:39Z")

</div>

I build simple servers for customers. Like, email, ftp, webserver and samba. Just started using ansible and it is great for setup and reuse of work. I am using roles from ansible galaxy. Each server is independent. Tha…

---

## [Breaking up hosts file](https://forum.ansible.com/t/breaking-up-hosts-file/21137)

<div class="topic-metadata">

**Author:** [@Tom\_Hanstra](https://forum.ansible.com/u/Tom_Hanstra)\
**Replies:** 7\
**Last updated:** [April 12, 2016, 5:34pm UTC](https://forum.ansible.com/t/breaking-up-hosts-file/21137 "2016-04-12T17:34:24Z")

</div>

I currently have been putting both hosts and host related variables into the /etc/ansible/hosts file with variables such as this: \[myhosts\] host1 host2 \[host1\] host1.domain \[host1:vars\] var1=“Some data” var2=“Som…

---

## [How to run ansible playbook with Bamboo or jenkins](https://forum.ansible.com/t/how-to-run-ansible-playbook-with-bamboo-or-jenkins/21140)

<div class="topic-metadata">

**Author:** [@imed\_khaskhoussi](https://forum.ansible.com/u/imed_khaskhoussi)\
**Replies:** 2\
**Last updated:** [April 12, 2016, 5:02pm UTC](https://forum.ansible.com/t/how-to-run-ansible-playbook-with-bamboo-or-jenkins/21140 "2016-04-12T17:02:49Z")

</div>

I want to execute an ansible playbook using Bamboo or jenkins. However the build failed because i can’t pass the ssh password . Have you any idea please ?

---

## [Windows authentication](https://forum.ansible.com/t/windows-authentication/21120)

<div class="topic-metadata">

**Author:** [@Anjana\_Raghavendra\_P](https://forum.ansible.com/u/Anjana_Raghavendra_P)\
**Replies:** 2\
**Last updated:** [April 12, 2016, 4:02pm UTC](https://forum.ansible.com/t/windows-authentication/21120 "2016-04-12T16:02:13Z")

</div>

Hi, We are using CIS hardened AWS windows AMI in our production servers. What this means is the winrm basic authentication is disabled at client and service level. Now, I am unable to use the ansible to configure/deploy…

---

## [Ansible 2.0.2 RC4 is available for testing](https://forum.ansible.com/t/ansible-2-0-2-rc4-is-available-for-testing/21141)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [April 12, 2016, 3:12pm UTC](https://forum.ansible.com/t/ansible-2-0-2-rc4-is-available-for-testing/21141 "2016-04-12T15:12:10Z")

</div>

Hi all, we have released Ansible 2.0.2 RC4 to address a few more last minute bugs: A very rare yet nagging issue (https://github.com/ansible/ansible/issues/15342), which appears to be related to a bug in certain versio…

---

## [Ansible role execution order is not serial](https://forum.ansible.com/t/ansible-role-execution-order-is-not-serial/21126)

<div class="topic-metadata">

**Author:** [@Tung\_Nguyen](https://forum.ansible.com/u/Tung_Nguyen)\
**Replies:** 2\
**Last updated:** [April 12, 2016, 2:17pm UTC](https://forum.ansible.com/t/ansible-role-execution-order-is-not-serial/21126 "2016-04-12T14:17:52Z")

</div>

I have a set of custom roles like this on AWS EC2 \`

---

## [unarchive task works with root user but fails with other users](https://forum.ansible.com/t/unarchive-task-works-with-root-user-but-fails-with-other-users/21138)

<div class="topic-metadata">

**Author:** [@noses](https://forum.ansible.com/u/noses)\
**Replies:** 0\
**Last updated:** [April 12, 2016, 1:52pm UTC](https://forum.ansible.com/t/unarchive-task-works-with-root-user-but-fails-with-other-users/21138 "2016-04-12T13:52:25Z")

</div>

Hi all, I’m trying to run a playbook but I’m having some trouble. If in the playbook I have: name: spark installation playbook hosts: SPARK become\_user: root become: yes vars: spark\_folder\_name: “spark-1.6.0-bin…

---

## [provision instance on AZURE](https://forum.ansible.com/t/provision-instance-on-azure/21119)

<div class="topic-metadata">

**Author:** [@yaniv\_refael](https://forum.ansible.com/u/yaniv_refael)\
**Replies:** 1\
**Last updated:** [April 12, 2016, 1:10pm UTC](https://forum.ansible.com/t/provision-instance-on-azure/21119 "2016-04-12T13:10:39Z")

</div>

Hi, I tried to provision instance on azure (ansible-playbook -i /usr/share/pyshared/ansible/modules/core/cloud/azure/azure.py azure.yml) and I got the flowing error: ERROR! The file /usr/share/pyshared/ansible/modules/…

---

## [raw commands to appliances with limited SSH support](https://forum.ansible.com/t/raw-commands-to-appliances-with-limited-ssh-support/21136)

<div class="topic-metadata">

**Author:** [@Craig\_Wilson](https://forum.ansible.com/u/Craig_Wilson)\
**Replies:** 0\
**Last updated:** [April 12, 2016, 11:34am UTC](https://forum.ansible.com/t/raw-commands-to-appliances-with-limited-ssh-support/21136 "2016-04-12T11:34:32Z")

</div>

We are trying to issue a command to a storage appliance we have, I have setup the raw module but I am getting /bin/sh does not exist errors, how can I stop ansible executing the command as /bin/sh -c 'command rather than…

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

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