# Archives

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

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

**Page:** 498

---

## [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…

---

## [Ansible: How to run the for command through playbook](https://forum.ansible.com/t/ansible-how-to-run-the-for-command-through-playbook/24160)

<div class="topic-metadata">

**Author:** [@nishant\_bawane](https://forum.ansible.com/u/nishant_bawane)\
**Replies:** 2\
**Last updated:** [April 10, 2017, 1:00pm UTC](https://forum.ansible.com/t/ansible-how-to-run-the-for-command-through-playbook/24160 "2017-04-10T13:00:28Z")

</div>

Below is the playbook using “for command”. Playbook: name: “Fetch the ip of all the servers from hosts.new file” shell: for i in awk '{print $1}' hosts.new do echo “$i” done args: chdir: “/home/dp794d/” failed\_w…

---

## [Unable to ssh as centos to my ansible AWS instance Permission denied (publickey,gssapi-keyex,gssapi-with-mic).](https://forum.ansible.com/t/unable-to-ssh-as-centos-to-my-ansible-aws-instance-permission-denied-publickey-gssapi-keyex-gssapi-with-mic/24175)

<div class="topic-metadata">

**Author:** [@Guruprasad\_Krishnamu](https://forum.ansible.com/u/Guruprasad_Krishnamu)\
**Replies:** 1\
**Last updated:** [April 10, 2017, 11:30am UTC](https://forum.ansible.com/t/unable-to-ssh-as-centos-to-my-ansible-aws-instance-permission-denied-publickey-gssapi-keyex-gssapi-with-mic/24175 "2017-04-10T11:30:54Z")

</div>

Hello, I have been using ansible AWS instance on a CentOs machine for a couple of days now. However on logging in now I get this error. The machine is running fine, and I need to retrieve data from it. Any suggestions ?…

---

## [creating my own dynamic vars module](https://forum.ansible.com/t/creating-my-own-dynamic-vars-module/24169)

<div class="topic-metadata">

**Author:** [@Matt\_Graham](https://forum.ansible.com/u/Matt_Graham)\
**Replies:** 3\
**Last updated:** [April 10, 2017, 7:00am UTC](https://forum.ansible.com/t/creating-my-own-dynamic-vars-module/24169 "2017-04-10T07:00:15Z")

</div>

Hi All Im probably doing this wrong. I’m working on a version of include\_vars module where by my variables (based off a text file) get added to the global vars like include\_vars Im trying to figure out how I add it. I …

---

## [Problem creating brigde network using nmcli.](https://forum.ansible.com/t/problem-creating-brigde-network-using-nmcli/24177)

<div class="topic-metadata">

**Author:** [@Anthony\_P\_V](https://forum.ansible.com/u/Anthony_P_V)\
**Replies:** 0\
**Last updated:** [April 10, 2017, 3:55am UTC](https://forum.ansible.com/t/problem-creating-brigde-network-using-nmcli/24177 "2017-04-10T03:55:54Z")

</div>

Hi, I am trying to create a bridge network on centos 7. Unfortunately it does not work with my playbook. What am I doing wrong? Using Fedora 25 with Ansible 2.2.1.0 to change network settings on Centos 7 64bit. This i…

---

## [Looking for an available port number](https://forum.ansible.com/t/looking-for-an-available-port-number/24168)

<div class="topic-metadata">

**Author:** [@andrew.leung](https://forum.ansible.com/u/andrew.leung)\
**Replies:** 2\
**Last updated:** [April 9, 2017, 11:37pm UTC](https://forum.ansible.com/t/looking-for-an-available-port-number/24168 "2017-04-09T23:37:07Z")

</div>

Hi, I am new to ansible and trying to test a playbook to check availability of a port number. If one found then use it, if not then go to the next one. Following is my playbook code, tasks: name: check port number b…

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

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