# Archives

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

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

**Page:** 600

---

## [How to loop on a parameter file the play of the playbook](https://forum.ansible.com/t/how-to-loop-on-a-parameter-file-the-play-of-the-playbook/21189)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 1\
**Last updated:** [April 19, 2016, 10:32am UTC](https://forum.ansible.com/t/how-to-loop-on-a-parameter-file-the-play-of-the-playbook/21189 "2016-04-19T10:32:10Z")

</div>

Hello, I would like to use only parameters in my playbook and so to use an external variables file to set the host, user, http parameters etc … so my playbook would loop on it. Is this possible ? Here is an explainati…

---

## [can extra-vars be a parameter from the host file ?](https://forum.ansible.com/t/can-extra-vars-be-a-parameter-from-the-host-file/21190)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 4\
**Last updated:** [April 19, 2016, 10:31am UTC](https://forum.ansible.com/t/can-extra-vars-be-a-parameter-from-the-host-file/21190 "2016-04-19T10:31:20Z")

</div>

Hello, I would like to set a lot of parameters when playing my playbook, depending on the server/user where it will be deployed so the idea is to set it in the hosts file. It doesn’t seem to work as my varaibles are no…

---

## [Can't pass seem to pass list of variables to ansible via variables file](https://forum.ansible.com/t/cant-pass-seem-to-pass-list-of-variables-to-ansible-via-variables-file/21191)

<div class="topic-metadata">

**Author:** [@Joseph\_DJOMEDA](https://forum.ansible.com/u/Joseph_DJOMEDA)\
**Replies:** 1\
**Last updated:** [April 19, 2016, 8:46am UTC](https://forum.ansible.com/t/cant-pass-seem-to-pass-list-of-variables-to-ansible-via-variables-file/21191 "2016-04-19T08:46:33Z")

</div>

Hello Gurus, I have been banging my head against the wall about this issue. With the variable below: serviceinstaller\_deployment\_details: { “service\_name”: “cardmanagement”, “artifact\_location”: “{{ javamicroapp\_de…

---

## [get\_url is not a valid attribute for play](https://forum.ansible.com/t/get-url-is-not-a-valid-attribute-for-play/21200)

<div class="topic-metadata">

**Author:** [@darknight](https://forum.ansible.com/u/darknight)\
**Replies:** 1\
**Last updated:** [April 19, 2016, 7:51am UTC](https://forum.ansible.com/t/get-url-is-not-a-valid-attribute-for-play/21200 "2016-04-19T07:51:49Z")

</div>

Hi, I am totally confused about why i cannot use the get\_url attribute in a play i was writing. I get the above error when i try to run the play-book. I am not sure why this is happening and i am totally lost of whats w…

---

## [retry file not generated if failed hosts associated to succeded hosts](https://forum.ansible.com/t/retry-file-not-generated-if-failed-hosts-associated-to-succeded-hosts/21203)

<div class="topic-metadata">

**Author:** [@nickwe3](https://forum.ansible.com/u/nickwe3)\
**Replies:** 0\
**Last updated:** [April 19, 2016, 7:48am UTC](https://forum.ansible.com/t/retry-file-not-generated-if-failed-hosts-associated-to-succeded-hosts/21203 "2016-04-19T07:48:08Z")

</div>

Hello, I don’t know if it’s a bug or not, so I prefer to ask first: ansible --version ansible 2.1.0 (devel 0e2f1b423d) last updated 2016/04/19 09:21:18 (GMT +200) lib/ansible/modules/core: (detached HEAD 5409ed1b28) la…

---

## [Ansible Netscaler  error](https://forum.ansible.com/t/ansible-netscaler-error/21167)

<div class="topic-metadata">

**Author:** [@gsong](https://forum.ansible.com/u/gsong)\
**Replies:** 1\
**Last updated:** [April 19, 2016, 7:09am UTC](https://forum.ansible.com/t/ansible-netscaler-error/21167 "2016-04-19T07:09:58Z")

</div>

Dear All, My command is : ansible localhost -m netscaler -a “nsc\_host=nsc.example user=user password=password name=node1.example.com type=service action=disable validate\_certs=False” got error : “‘NoneType’ object ha…

---

## [Need help on Dynamic Inventory (AWS) with Ansible](https://forum.ansible.com/t/need-help-on-dynamic-inventory-aws-with-ansible/21198)

<div class="topic-metadata">

**Author:** [@MrVegas](https://forum.ansible.com/u/MrVegas)\
**Replies:** 1\
**Last updated:** [April 18, 2016, 6:53pm UTC](https://forum.ansible.com/t/need-help-on-dynamic-inventory-aws-with-ansible/21198 "2016-04-18T18:53:04Z")

</div>

Hi Guys, I was following the dynamic inventory guide here for AWS EC2 Inventory Script http://docs.ansible.com/ansible/intro\_dynamic\_inventory.html#example-aws-ec2-external-inventory-script Unfortunately when I get to…

---

## [Ansible error code for a role, not each ansible task](https://forum.ansible.com/t/ansible-error-code-for-a-role-not-each-ansible-task/21196)

<div class="topic-metadata">

**Author:** [@Richard\_M](https://forum.ansible.com/u/Richard_M)\
**Replies:** 0\
**Last updated:** [April 18, 2016, 3:58pm UTC](https://forum.ansible.com/t/ansible-error-code-for-a-role-not-each-ansible-task/21196 "2016-04-18T15:58:32Z")

</div>

Is it possible to capture an error code (success/failure) at the level of an ansible role and not each individual task? We have a rather complex ansible playbook with multiple roles and would like to be able to log (on …

---

## [Dynamic inventory not working in playbook](https://forum.ansible.com/t/dynamic-inventory-not-working-in-playbook/21192)

<div class="topic-metadata">

**Author:** [@Pavanan\_M\_S](https://forum.ansible.com/u/Pavanan_M_S)\
**Replies:** 0\
**Last updated:** [April 18, 2016, 2:06pm UTC](https://forum.ansible.com/t/dynamic-inventory-not-working-in-playbook/21192 "2016-04-18T14:06:50Z")

</div>

Hi all, I am using a playbook to create a GCE VM intance and deploy some code to it. I was hard coding the IP of the created instance until i realized the use of dynamic inventories. I downloaded gce.py and made it exe…

---

## [Random "'ansible\_hostname' is undefined" errors](https://forum.ansible.com/t/random-ansible-hostname-is-undefined-errors/21180)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 5\
**Last updated:** [April 18, 2016, 1:30pm UTC](https://forum.ansible.com/t/random-ansible-hostname-is-undefined-errors/21180 "2016-04-18T13:30:55Z")

</div>

I have a weird issue where occasionally when I run a playbook that has a task which uses the {{ ansible\_hostname }} variable in it, I get an error “‘ansible\_hostname’ is undefined”. In most cases, if I re-run the playboo…

---

## [Ansible AD Domain Authentication](https://forum.ansible.com/t/ansible-ad-domain-authentication/21091)

<div class="topic-metadata">

**Author:** [@Mark\_Matthews](https://forum.ansible.com/u/Mark_Matthews)\
**Replies:** 15\
**Last updated:** [April 18, 2016, 10:23am UTC](https://forum.ansible.com/t/ansible-ad-domain-authentication/21091 "2016-04-18T10:23:26Z")

</div>

Hi Currently I have been connecting to servers to using local server accounts, and therefore my ‘group\_vars/winservers.yml’ file has looked like the following: ansible\_ssh\_user: Administrator ansible\_ssh\_pass: PASSWOR…

---

## [ssh connection is broken while running task.](https://forum.ansible.com/t/ssh-connection-is-broken-while-running-task/21148)

<div class="topic-metadata">

**Author:** [@selvam\_vasu](https://forum.ansible.com/u/selvam_vasu)\
**Replies:** 1\
**Last updated:** [April 18, 2016, 8:12am UTC](https://forum.ansible.com/t/ssh-connection-is-broken-while-running-task/21148 "2016-04-18T08:12:40Z")

</div>

Hi, I have playbook which has 4 tasks on that. The task are running on more than 10 remote hosts. The first two tasks are ever running without any problem. But when the third task is running, The am getting error like “…

---

## [lineinfile behavior replace line if found, add line if not found?](https://forum.ansible.com/t/lineinfile-behavior-replace-line-if-found-add-line-if-not-found/21184)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 2\
**Last updated:** [April 18, 2016, 7:31am UTC](https://forum.ansible.com/t/lineinfile-behavior-replace-line-if-found-add-line-if-not-found/21184 "2016-04-18T07:31:21Z")

</div>

Struggling with lineinfile behavior. The general question: can lineinfile be used to replace a line in a file if it’s found and if it’s not found add the line to the file? I’ve seen posts saying yes, same saying no, sa…

---

## [How can I output debug info from ansible API](https://forum.ansible.com/t/how-can-i-output-debug-info-from-ansible-api/21187)

<div class="topic-metadata">

**Author:** [@Andy3](https://forum.ansible.com/u/Andy3)\
**Replies:** 0\
**Last updated:** [April 18, 2016, 6:57am UTC](https://forum.ansible.com/t/how-can-i-output-debug-info-from-ansible-api/21187 "2016-04-18T06:57:20Z")

</div>

Hi experts, I am using ansible pre 2.0 api, I meet one problem when use the api to connect to other host, and this is a random bug, I want to enable ansible debug for track this issue, but I didn’t find how to enable de…

---

## [Discussion of open proposals at upcoming core team meeting](https://forum.ansible.com/t/discussion-of-open-proposals-at-upcoming-core-team-meeting/21186)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 0\
**Last updated:** [April 18, 2016, 4:51am UTC](https://forum.ansible.com/t/discussion-of-open-proposals-at-upcoming-core-team-meeting/21186 "2016-04-18T04:51:37Z")

</div>

Now that our proposal process is underway, we've got some open proposals to discuss: https://github.com/ansible/proposals/issues We'd like to have our first discussion period of these at our upcoming Core meeting on …

---

## [Using an inventory group with\_Items in playbook and in template](https://forum.ansible.com/t/using-an-inventory-group-with-items-in-playbook-and-in-template/21185)

<div class="topic-metadata">

**Author:** [@Rick\_O\_Shea](https://forum.ansible.com/u/Rick_O_Shea)\
**Replies:** 3\
**Last updated:** [April 18, 2016, 3:47am UTC](https://forum.ansible.com/t/using-an-inventory-group-with-items-in-playbook-and-in-template/21185 "2016-04-18T03:47:54Z")

</div>

This sort of works: - hosts: master tasks: - name loop through slaves and copy template results to master template: src=template.txt dest={item}.txt with\_items: {{groups.slaves}} What I really want is this but it f…

---

## [Set Environment help](https://forum.ansible.com/t/set-environment-help/21161)

<div class="topic-metadata">

**Author:** [@Pushparaj\_BS](https://forum.ansible.com/u/Pushparaj_BS)\
**Replies:** 2\
**Last updated:** [April 17, 2016, 2:30am UTC](https://forum.ansible.com/t/set-environment-help/21161 "2016-04-17T02:30:06Z")

</div>

Hi , I’m using the following to set the environment for an already extracted package to append to PATH \` name: Set Environment lineinfile: dest=‘/etc/environment’ state=present backrefs=yes regexp=‘PATH=(\["\])((?!.?{…

---

## [unable to delegate\_to in playbook](https://forum.ansible.com/t/unable-to-delegate-to-in-playbook/21181)

<div class="topic-metadata">

**Author:** [@Vivek\_Aggarwal](https://forum.ansible.com/u/Vivek_Aggarwal)\
**Replies:** 0\
**Last updated:** [April 16, 2016, 4:10pm UTC](https://forum.ansible.com/t/unable-to-delegate-to-in-playbook/21181 "2016-04-16T16:10:06Z")

</div>

i have a playbook in which there one particular task which i want to run only on one host & i m tried that using “delegate\_to” but while executing it is showing ssh error. SSH user is showing as NONE. PLease suggest wha…

---

## [Synchronize Module always copies](https://forum.ansible.com/t/synchronize-module-always-copies/21176)

<div class="topic-metadata">

**Author:** [@Pushparaj\_BS](https://forum.ansible.com/u/Pushparaj_BS)\
**Replies:** 1\
**Last updated:** [April 16, 2016, 9:14am UTC](https://forum.ansible.com/t/synchronize-module-always-copies/21176 "2016-04-16T09:14:01Z")

</div>

My files directory under roles has the following structure chat -ejabberd -erlang Need to copy these to the remote server under /srv So after the copy operation the structure on remote would be /srv -chat -ejabbe…

---

## [Ansible 1.9.6-1 has been released](https://forum.ansible.com/t/ansible-1-9-6-1-has-been-released/21177)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [April 15, 2016, 7:34pm UTC](https://forum.ansible.com/t/ansible-1-9-6-1-has-been-released/21177 "2016-04-15T19:34:56Z")

</div>

Hi all, we’re happy to announce that 1.9.6-1 has been released. As noted in the RC1 announcement, 1.9.6 fixes a few bugs introduced in the 1.9.5 release, as well as a security flaw: Fixes several security bugs in the …

---

## [Ansible when statements NOT WORKING when checking the ansible\_os\_family fact](https://forum.ansible.com/t/ansible-when-statements-not-working-when-checking-the-ansible-os-family-fact/21175)

<div class="topic-metadata">

**Author:** [@vmartin](https://forum.ansible.com/u/vmartin)\
**Replies:** 2\
**Last updated:** [April 15, 2016, 5:46pm UTC](https://forum.ansible.com/t/ansible-when-statements-not-working-when-checking-the-ansible-os-family-fact/21175 "2016-04-15T17:46:38Z")

</div>

Ok so I have this code(using version 2.0.1.0 of ansible):

---

## [how to wait for a windows machine to come up after rebooting?](https://forum.ansible.com/t/how-to-wait-for-a-windows-machine-to-come-up-after-rebooting/21173)

<div class="topic-metadata">

**Author:** [@Mick\_st\_john](https://forum.ansible.com/u/Mick_st_john)\
**Replies:** 1\
**Last updated:** [April 15, 2016, 5:28pm UTC](https://forum.ansible.com/t/how-to-wait-for-a-windows-machine-to-come-up-after-rebooting/21173 "2016-04-15T17:28:02Z")

</div>

I am trying to reboot a windows machine and I want to wait for it come up. I tried the following playbook:

---

## [Add the functionality in bigip\_virtual\_server where you can specify an irule to be associated when you create a virtual server](https://forum.ansible.com/t/add-the-functionality-in-bigip-virtual-server-where-you-can-specify-an-irule-to-be-associated-when-you-create-a-virtual-server/21162)

<div class="topic-metadata">

**Author:** [@William\_Sia](https://forum.ansible.com/u/William_Sia)\
**Replies:** 1\
**Last updated:** [April 15, 2016, 4:12pm UTC](https://forum.ansible.com/t/add-the-functionality-in-bigip-virtual-server-where-you-can-specify-an-irule-to-be-associated-when-you-create-a-virtual-server/21162 "2016-04-15T16:12:00Z")

</div>

Hi All, The current implementation of bigip\_virtual\_server does not contain an irule properties when creating a virtual server. Any reason why this it not included in the initial implementation. We are thinking of intro…

---

## [i couldnt get facts for servers ... os\_server\_facts](https://forum.ansible.com/t/i-couldnt-get-facts-for-servers-os-server-facts/21174)

<div class="topic-metadata">

**Author:** [@Vahric\_Muhtaryan](https://forum.ansible.com/u/Vahric_Muhtaryan)\
**Replies:** 0\
**Last updated:** [April 15, 2016, 3:20pm UTC](https://forum.ansible.com/t/i-couldnt-get-facts-for-servers-os-server-facts/21174 "2016-04-15T15:20:17Z")

</div>

Hello Somehow i couldnt debug why and how i couldnt get facts for servers … TASK \[Retrieve facts for all servers\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* task path: /home/noroot/ansible/openstack\_server\_facts.yml:4 …

---

## [Newbie Developer Question: how does TaskQueueManager work exactly please?](https://forum.ansible.com/t/newbie-developer-question-how-does-taskqueuemanager-work-exactly-please/21081)

<div class="topic-metadata">

**Author:** [@Yang\_X](https://forum.ansible.com/u/Yang_X)\
**Replies:** 4\
**Last updated:** [April 15, 2016, 1:48pm UTC](https://forum.ansible.com/t/newbie-developer-question-how-does-taskqueuemanager-work-exactly-please/21081 "2016-04-15T13:48:22Z")

</div>

Hi, I am trying to retrofit the pre2.0 runner based script to use the new TaskQueueManager interface and I tried to tweak the example given in the ansible API documentation and it simply will NOT work. I have ssh keyle…

---

## [How to changing the transport lay from ssh to http?](https://forum.ansible.com/t/how-to-changing-the-transport-lay-from-ssh-to-http/21168)

<div class="topic-metadata">

**Author:** [@Sicheng\_Tang](https://forum.ansible.com/u/Sicheng_Tang)\
**Replies:** 2\
**Last updated:** [April 15, 2016, 1:03pm UTC](https://forum.ansible.com/t/how-to-changing-the-transport-lay-from-ssh-to-http/21168 "2016-04-15T13:03:35Z")

</div>

Recently we are trying to use ansible as our deployment tool. However, for security reason, we can not connect to our target machine through SSH2. Instead SSH2, our operations engineers provide a service based on HTTP t…

---

## [stderr: Missing argument for option:i (use -h for usage) Error while running the ansible script](https://forum.ansible.com/t/stderr-missing-argument-for-option-i-use-h-for-usage-error-while-running-the-ansible-script/21172)

<div class="topic-metadata">

**Author:** [@iamarunk1898](https://forum.ansible.com/u/iamarunk1898)\
**Replies:** 0\
**Last updated:** [April 15, 2016, 12:23pm UTC](https://forum.ansible.com/t/stderr-missing-argument-for-option-i-use-h-for-usage-error-while-running-the-ansible-script/21172 "2016-04-15T12:23:54Z")

</div>

Hi Team I am creating the NAT instance using Ansible. Below is my code. This is the NAT instance for routing traffic and jumphost, etc.

---

## [bare variables deprecated, what am I suppose to use instead?](https://forum.ansible.com/t/bare-variables-deprecated-what-am-i-suppose-to-use-instead/21171)

<div class="topic-metadata">

**Author:** [@Willjw1](https://forum.ansible.com/u/Willjw1)\
**Replies:** 0\
**Last updated:** [April 15, 2016, 11:59am UTC](https://forum.ansible.com/t/bare-variables-deprecated-what-am-i-suppose-to-use-instead/21171 "2016-04-15T11:59:19Z")

</div>

So first I’ll point out that we probably aren’t using this the standard way. I get that. But please tell me another way of doing this without as much user interaction which gets rid of these deprecation warnings and we’l…

---

## [URI Module in Ansible](https://forum.ansible.com/t/uri-module-in-ansible/21170)

<div class="topic-metadata">

**Author:** [@John\_McCormack](https://forum.ansible.com/u/John_McCormack)\
**Replies:** 0\
**Last updated:** [April 15, 2016, 10:46am UTC](https://forum.ansible.com/t/uri-module-in-ansible/21170 "2016-04-15T10:46:56Z")

</div>

Hi all Looking for help in using Tokens for my Cloud provider Curl works fine: curl -i -X POST https://api.madrid.gigas.com/token -d 'login=apiuser&password=apipswd' -H 'Accept: application/json' \`\` curl -i -X GET h…

---

## [Grunt Module](https://forum.ansible.com/t/grunt-module/12961)

<div class="topic-metadata">

**Author:** [@Shahar\_Kedar](https://forum.ansible.com/u/Shahar_Kedar)\
**Replies:** 11\
**Last updated:** [April 15, 2016, 7:48am UTC](https://forum.ansible.com/t/grunt-module/12961 "2016-04-15T07:48:42Z")

</div>

I was thinking of implementing a Grunt module and contributing it to the core modules. Is contributing a core module as simple as developing (following the guideline of course) and sending a pull request? If it is, wher…

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

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