# Latest

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

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

**Page:** 669

---

## [Need to know where we need to write the code for below thing -](https://forum.ansible.com/t/need-to-know-where-we-need-to-write-the-code-for-below-thing/24201)

<div class="topic-metadata">

**Author:** [@nishant\_bawane](https://forum.ansible.com/u/nishant_bawane)\
**Replies:** 1\
**Last updated:** [April 13, 2017, 1:24am UTC](https://forum.ansible.com/t/need-to-know-where-we-need-to-write-the-code-for-below-thing/24201 "2017-04-13T01:24:14Z")

</div>

I know it is stupid question, but how can I use the beow code in my playbook . Do we need to use any command or shell for this ? {% for host in groups\[‘app\_servers’\] %} {{ hostvars\[host\]\[‘ansible\_eth0’\]\[‘ipv4’\]\[‘addres…

---

## [Ansible has stopped working for me](https://forum.ansible.com/t/ansible-has-stopped-working-for-me/24193)

<div class="topic-metadata">

**Author:** [@Mike\_Johnston](https://forum.ansible.com/u/Mike_Johnston)\
**Replies:** 7\
**Last updated:** [April 12, 2017, 10:55pm UTC](https://forum.ansible.com/t/ansible-has-stopped-working-for-me/24193 "2017-04-12T22:55:49Z")

</div>

I’m having an issue that I cannot google my way out of for some reason. I had Ansible working just fine on all my systems but I hadn’t used it in a while. I went back to push some changes recently and now I cannot push a…

---

## [module like expect, but on windows](https://forum.ansible.com/t/module-like-expect-but-on-windows/24212)

<div class="topic-metadata">

**Author:** [@Tony\_Walsh](https://forum.ansible.com/u/Tony_Walsh)\
**Replies:** 1\
**Last updated:** [April 12, 2017, 10:18pm UTC](https://forum.ansible.com/t/module-like-expect-but-on-windows/24212 "2017-04-12T22:18:40Z")

</div>

Ansible folk I have a package that I want Ansible to download and install on my host computer. After the download, the next step in the installation process is a configure - first step in the configure process is to res…

---

## [Ansible 2.3.0 FINAL has been released!](https://forum.ansible.com/t/ansible-2-3-0-final-has-been-released/24202)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 1\
**Last updated:** [April 12, 2017, 10:11pm UTC](https://forum.ansible.com/t/ansible-2-3-0-final-has-been-released/24202 "2017-04-12T22:11:19Z")

</div>

Hi all, we’re very happy to announce that Ansible 2.3.0 has been released! This release includes many new features and improvements: Shared code for modules can now be placed in “module\_utils” directories local to you…

---

## [Misunderstanding about host + var + group\_vars](https://forum.ansible.com/t/misunderstanding-about-host-var-group-vars/24200)

<div class="topic-metadata">

**Author:** [@Alex6](https://forum.ansible.com/u/Alex6)\
**Replies:** 1\
**Last updated:** [April 12, 2017, 9:39pm UTC](https://forum.ansible.com/t/misunderstanding-about-host-var-group-vars/24200 "2017-04-12T21:39:25Z")

</div>

I’ve seen others post similar experiences, but I can never quite get my head around it. If someone could explain the following behaviour that would be great. So i have mydev.yml and mylive.yml They look something like: …

---

## [ansible playbook with curl](https://forum.ansible.com/t/ansible-playbook-with-curl/24196)

<div class="topic-metadata">

**Author:** [@Shankar\_Bala](https://forum.ansible.com/u/Shankar_Bala)\
**Replies:** 2\
**Last updated:** [April 12, 2017, 9:37pm UTC](https://forum.ansible.com/t/ansible-playbook-with-curl/24196 "2017-04-12T21:37:25Z")

</div>

Hi All I am trying to run ansible playbook to create powerdns record .pdns.yml name: add dns record vars: pilot\_dns: “{{ input\_dns }}” pilot\_dom: “{{ input\_domain }}” arecord: “{{ input\_hostname }}” iprecord: “{{…

---

## [ansible inventory name: "{{ inventory\_hostname }}"](https://forum.ansible.com/t/ansible-inventory-name-inventory-hostname/24211)

<div class="topic-metadata">

**Author:** [@Robert\_Recchia](https://forum.ansible.com/u/Robert_Recchia)\
**Replies:** 1\
**Last updated:** [April 12, 2017, 9:20pm UTC](https://forum.ansible.com/t/ansible-inventory-name-inventory-hostname/24211 "2017-04-12T21:20:53Z")

</div>

Something weird is happening. I am creating a playbook that I would like to run when new hosts are built - they are standard centos 7 vms minimal install. when this part of the playbook is completed name: Ensure hostn…

---

## [Ansible send host with blank password](https://forum.ansible.com/t/ansible-send-host-with-blank-password/24210)

<div class="topic-metadata">

**Author:** [@Madhu](https://forum.ansible.com/u/Madhu)\
**Replies:** 0\
**Last updated:** [April 12, 2017, 7:04pm UTC](https://forum.ansible.com/t/ansible-send-host-with-blank-password/24210 "2017-04-12T19:04:00Z")

</div>

Hi, I have a host which will not prompt for password after login as root. Is there any way ansible can pass without password? I tried with blank password using ansible\_ssh\_pass=“”. But it got struck in the set up state. …

---

## [command executes main ruby script but exits before finish](https://forum.ansible.com/t/command-executes-main-ruby-script-but-exits-before-finish/24209)

<div class="topic-metadata">

**Author:** [@Rob\_Mokkink](https://forum.ansible.com/u/Rob_Mokkink)\
**Replies:** 0\
**Last updated:** [April 12, 2017, 6:41pm UTC](https://forum.ansible.com/t/command-executes-main-ruby-script-but-exits-before-finish/24209 "2017-04-12T18:41:38Z")

</div>

Hi, I am trying to the a command task to work with a ruby script(foreman-proxy-certs-generate), see https://theforeman.org/plugins/katello/3.3/installation/smart\_proxy.html. The script is the main script but executes p…

---

## [Remove multiple lines from a file](https://forum.ansible.com/t/remove-multiple-lines-from-a-file/24206)

<div class="topic-metadata">

**Author:** [@BPradhan](https://forum.ansible.com/u/BPradhan)\
**Replies:** 0\
**Last updated:** [April 12, 2017, 5:31pm UTC](https://forum.ansible.com/t/remove-multiple-lines-from-a-file/24206 "2017-04-12T17:31:28Z")

</div>

Hi All I am trying to remove multiple lines from a file. But not successful yet. The file contents are: SID\_LIST\_LISTENER= (SID\_LIST= (SID\_DESC= (GLOBAL\_DBNAME=RS5\_DBADATATEST2) (ORACLE\_HOME=/orahome/app/oracle/pr…

---

## [Group vars load time](https://forum.ansible.com/t/group-vars-load-time/24199)

<div class="topic-metadata">

**Author:** [@fdevillamil](https://forum.ansible.com/u/fdevillamil)\
**Replies:** 0\
**Last updated:** [April 12, 2017, 10:08am UTC](https://forum.ansible.com/t/group-vars-load-time/24199 "2017-04-12T10:08:47Z")

</div>

Hello, I face a strange behaviour on Ansible 2.2.2, which I didn’t have on 1.9. Inventory group vars seems to be defined after all the vars in my playbook My inventory: inventory/ production/ production group\_vars/ …

---

## [Can't i use prompt module in ansible tower?](https://forum.ansible.com/t/cant-i-use-prompt-module-in-ansible-tower/24197)

<div class="topic-metadata">

**Author:** [@user45](https://forum.ansible.com/u/user45)\
**Replies:** 0\
**Last updated:** [April 12, 2017, 4:24am UTC](https://forum.ansible.com/t/cant-i-use-prompt-module-in-ansible-tower/24197 "2017-04-12T04:24:09Z")

</div>

In Ansible Tower, I can’t take any user input by using module prompt But I can do it in linux shell What can i do ? Are there people who have same problem like me ?

---

## [combining lookups with prompts to provide choice lists for ansible vars](https://forum.ansible.com/t/combining-lookups-with-prompts-to-provide-choice-lists-for-ansible-vars/24195)

<div class="topic-metadata">

**Author:** [@Chris\_Ratcliffe](https://forum.ansible.com/u/Chris_Ratcliffe)\
**Replies:** 0\
**Last updated:** [April 11, 2017, 10:52pm UTC](https://forum.ansible.com/t/combining-lookups-with-prompts-to-provide-choice-lists-for-ansible-vars/24195 "2017-04-11T22:52:57Z")

</div>

Hello, I am looking for a way to leverage Ansible Prompts directives to include choice lists, or even just to include a dynamic prompt based on the results of a url lookup. This didn’t work: hosts: all vars: direct…

---

## [ec2\_vol\_facts failed](https://forum.ansible.com/t/ec2-vol-facts-failed/24194)

<div class="topic-metadata">

**Author:** [@Rafael\_Konrath](https://forum.ansible.com/u/Rafael_Konrath)\
**Replies:** 0\
**Last updated:** [April 11, 2017, 7:07pm UTC](https://forum.ansible.com/t/ec2-vol-facts-failed/24194 "2017-04-11T19:07:11Z")

</div>

Hi All, I got this error when I ran my ansible playbook, I have some EBS volumes with Not Encrypted sets, and looks like ec2\_vol\_facts.py failed when ‘encrypted’: volume.encrypted is false. AILED! =\> {“changed”: false,…

---

## [Looping through a Template](https://forum.ansible.com/t/looping-through-a-template/24184)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Ward](https://forum.ansible.com/u/Jeffrey_Ward)\
**Replies:** 2\
**Last updated:** [April 11, 2017, 6:06pm UTC](https://forum.ansible.com/t/looping-through-a-template/24184 "2017-04-11T18:06:08Z")

</div>

Hi, I am new to ansible and new to the form. I am wondering how to loop through a template my template looks like this { item.sitename }}-test,{{ item.sitename }} description and my variables look like this

---

## [How can we write if else logic using shell or command.. I can not use when clauseas it does not give me expected result](https://forum.ansible.com/t/how-can-we-write-if-else-logic-using-shell-or-command-i-can-not-use-when-clauseas-it-does-not-give-me-expected-result/24191)

<div class="topic-metadata">

**Author:** [@nishant\_bawane](https://forum.ansible.com/u/nishant_bawane)\
**Replies:** 3\
**Last updated:** [April 11, 2017, 5:46pm UTC](https://forum.ansible.com/t/how-can-we-write-if-else-logic-using-shell-or-command-i-can-not-use-when-clauseas-it-does-not-give-me-expected-result/24191 "2017-04-11T17:46:29Z")

</div>

How can we write if else logic using shell or command… I can not use when clauseas it does not give me expected result

---

## [ansible with nohup not stable](https://forum.ansible.com/t/ansible-with-nohup-not-stable/24188)

<div class="topic-metadata">

**Author:** [@zhangjie](https://forum.ansible.com/u/zhangjie)\
**Replies:** 1\
**Last updated:** [April 11, 2017, 4:39pm UTC](https://forum.ansible.com/t/ansible-with-nohup-not-stable/24188 "2017-04-11T16:39:01Z")

</div>

ansible is running on myMaster,and there is 14 clients（myhost1 to myhost14） to be managed.my command is like below: ansible myhosti -m shell -a “nohup sh /home/hadoop/calculate.sh \>\> /home/hadoop/logs/myhosti.log 2\>&1 &”…

---

## [SOPS support](https://forum.ansible.com/t/sops-support/21332)

<div class="topic-metadata">

**Author:** [@seth](https://forum.ansible.com/u/seth)\
**Replies:** 1\
**Last updated:** [April 11, 2017, 3:17pm UTC](https://forum.ansible.com/t/sops-support/21332 "2017-04-11T15:17:23Z")

</div>

I’m interested in contributing SOPS support to Ansible. SOPS https://github.com/mozilla/sops is a tool for encrypting only the values in YAML (and JSON) files using AWS KMS or GPG keys. Encrypting only the values makes …

---

## [OpenStack dynamic inventory](https://forum.ansible.com/t/openstack-dynamic-inventory/24190)

<div class="topic-metadata">

**Author:** [@Soufiane\_Benmalek](https://forum.ansible.com/u/Soufiane_Benmalek)\
**Replies:** 0\
**Last updated:** [April 11, 2017, 1:26pm UTC](https://forum.ansible.com/t/openstack-dynamic-inventory/24190 "2017-04-11T13:26:34Z")

</div>

Hi, I developed an Ansible playbook to launch an instance on OpenStack. I have this block:

---

## [Ansible: Need to reset the value of variable before copy command.](https://forum.ansible.com/t/ansible-need-to-reset-the-value-of-variable-before-copy-command/24189)

<div class="topic-metadata">

**Author:** [@nishant\_bawane](https://forum.ansible.com/u/nishant_bawane)\
**Replies:** 0\
**Last updated:** [April 11, 2017, 12:34pm UTC](https://forum.ansible.com/t/ansible-need-to-reset-the-value-of-variable-before-copy-command/24189 "2017-04-11T12:34:17Z")

</div>

Query: I need to fetch the latest java version from host servers and display the same on web page, using apache server which is installed on my local server(local server means server with ansible installed). I am able t…

---

## [task execution order](https://forum.ansible.com/t/task-execution-order/24183)

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 2\
**Last updated:** [April 11, 2017, 7:44am UTC](https://forum.ansible.com/t/task-execution-order/24183 "2017-04-11T07:44:02Z")

</div>

Hi, I'm facing issue, which how the ansible is running tasks. It's internal behaviour of ansible core II donot have answer on users forum. I'm writing mostly multi os/version enabled roles. See may template role on g…

---

## [Variable defined in main play is not passed to included playbook](https://forum.ansible.com/t/variable-defined-in-main-play-is-not-passed-to-included-playbook/24176)

<div class="topic-metadata">

**Author:** [@0lai.mariano](https://forum.ansible.com/u/0lai.mariano)\
**Replies:** 1\
**Last updated:** [April 11, 2017, 7:13am UTC](https://forum.ansible.com/t/variable-defined-in-main-play-is-not-passed-to-included-playbook/24176 "2017-04-11T07:13:03Z")

</div>

I posted an issue recently on github (https://github.com/ansible/ansible/issues/23394) and was advised to post here on the user list since the issue I am encountering is not a bug. I am re-posting the content here with t…

---

## [Create directory in /etc/ and copy files without password using ansible](https://forum.ansible.com/t/create-directory-in-etc-and-copy-files-without-password-using-ansible/21911)

<div class="topic-metadata">

**Author:** [@Anand\_Abyankar](https://forum.ansible.com/u/Anand_Abyankar)\
**Replies:** 4\
**Last updated:** [April 11, 2017, 5:36am UTC](https://forum.ansible.com/t/create-directory-in-etc-and-copy-files-without-password-using-ansible/21911 "2017-04-11T05:36:23Z")

</div>

I an new to ansible. I may be saying something which is completely wrong. I created VM using KVM, both remote and local are running on Ubuntu 16.0.4 Now I configured ansible by creating a key as ssh-keygen -t rsa -b 4…

---

## [Ansible Tower UI customization, trial version](https://forum.ansible.com/t/ansible-tower-ui-customization-trial-version/24187)

<div class="topic-metadata">

**Author:** [@Guruprasad\_Krishnamu](https://forum.ansible.com/u/Guruprasad_Krishnamu)\
**Replies:** 0\
**Last updated:** [April 11, 2017, 3:15am UTC](https://forum.ansible.com/t/ansible-tower-ui-customization-trial-version/24187 "2017-04-11T03:15:47Z")

</div>

Hello, I want to customize the tower UI and delegate a limited set of features to associates. It was not clear reading through the docs whether the trial version supported this, although there is mention that the license…

---

## [Ansible UI customization, trial version](https://forum.ansible.com/t/ansible-ui-customization-trial-version/24186)

<div class="topic-metadata">

**Author:** [@Guruprasad\_Krishnamu](https://forum.ansible.com/u/Guruprasad_Krishnamu)\
**Replies:** 0\
**Last updated:** [April 11, 2017, 3:10am UTC](https://forum.ansible.com/t/ansible-ui-customization-trial-version/24186 "2017-04-11T03:10:39Z")

</div>

Hello, I want to customize the tower UI and delegate a limited set of features to associates. It was not clear reading through the docs whether the trial version supported this, although there is mention that the license…

---

## [Ansible : Need information regarding the connection with Database (Oracle/MySql)](https://forum.ansible.com/t/ansible-need-information-regarding-the-connection-with-database-oracle-mysql/24182)

<div class="topic-metadata">

**Author:** [@nishant\_bawane](https://forum.ansible.com/u/nishant_bawane)\
**Replies:** 1\
**Last updated:** [April 10, 2017, 9:44pm UTC](https://forum.ansible.com/t/ansible-need-information-regarding-the-connection-with-database-oracle-mysql/24182 "2017-04-10T21:44:40Z")

</div>

Below is the task… I need to connect to host server… fetch the host name nad current java version and store it in the database on local server. I am able to fetch the host name and java version… but need assistance readi…

---

## [task order execution](https://forum.ansible.com/t/task-order-execution/24166)

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 1\
**Last updated:** [April 10, 2017, 6:50pm UTC](https://forum.ansible.com/t/task-order-execution/24166 "2017-04-10T18:50:26Z")

</div>

Hi, I'm facin g following ISSUE. My roles are mostly multi distribution enabled. My testing env is based on 8 different distribution/releases - debian 7/8, ubuntu 14.04/16.04, centos 6/7, rhel 6/7 My way how to do…

---

## [Ansible 2.3.0 RC6 is available for testing!](https://forum.ansible.com/t/ansible-2-3-0-rc6-is-available-for-testing/24181)

<div class="topic-metadata">

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

</div>

We are happy to announce the availability of Ansible 2.3.0 RC6! This release is also related to the previous networking fix. After some further internal discussion, we decided to fix the original problem in a slightly d…

---

## [Jinja "eval" type method?](https://forum.ansible.com/t/jinja-eval-type-method/14012)

<div class="topic-metadata">

**Author:** [@Brian\_Little](https://forum.ansible.com/u/Brian_Little)\
**Replies:** 4\
**Last updated:** [April 10, 2017, 2:32pm UTC](https://forum.ansible.com/t/jinja-eval-type-method/14012 "2017-04-10T14:32:22Z")

</div>

Is there anything in jinja templating to “eval” a variable name? Where I can add a string to a variable, and reference another variable I’m interesting in doing something like this (example pseudocode) #print the mac a…

---

## [Ansible: SCP and SSH Command under for loop -I need the solution for the below for loop, can we execute it using the ansible?](https://forum.ansible.com/t/ansible-scp-and-ssh-command-under-for-loop-i-need-the-solution-for-the-below-for-loop-can-we-execute-it-using-the-ansible/24180)

<div class="topic-metadata">

**Author:** [@nishant\_bawane](https://forum.ansible.com/u/nishant_bawane)\
**Replies:** 0\
**Last updated:** [April 10, 2017, 1:13pm UTC](https://forum.ansible.com/t/ansible-scp-and-ssh-command-under-for-loop-i-need-the-solution-for-the-below-for-loop-can-we-execute-it-using-the-ansible/24180 "2017-04-10T13:13:36Z")

</div>

I am working on one of the case in which i need to copy the auth file and hosts files from one server to other. This can be done with normal copy acion of ansible, but i need to do it using the for loop. The “list” file…

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

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