# Archives

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

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

**Page:** 559

---

## [Work with Jinja/template issue](https://forum.ansible.com/t/work-with-jinja-template-issue/22405)

<div class="topic-metadata">

**Author:** [@lupindeterd](https://forum.ansible.com/u/lupindeterd)\
**Replies:** 1\
**Last updated:** [August 31, 2016, 3:00pm UTC](https://forum.ansible.com/t/work-with-jinja-template-issue/22405 "2016-08-31T15:00:11Z")

</div>

Hi, I want to gather all the NICs and its IP address from facts. So I tried iterating to all interfaces, i.e {% for nic in ansible\_interfaces %} {% set present\_nic = ‘facter\_ipaddress\_%s’ | format( nic ) %} {{ nic }…

---

## [wrong order of variable loading](https://forum.ansible.com/t/wrong-order-of-variable-loading/22431)

<div class="topic-metadata">

**Author:** [@Hajo\_Kliemeck](https://forum.ansible.com/u/Hajo_Kliemeck)\
**Replies:** 0\
**Last updated:** [August 31, 2016, 1:41pm UTC](https://forum.ansible.com/t/wrong-order-of-variable-loading/22431 "2016-08-31T13:41:52Z")

</div>

Hey, we are experiencing problems related to the variable load order. Anyone having issues with the order again? Would be nice if we get a fix soon since this is critical, there is no workaround available and its diffe…

---

## [ActionModule Update hostvars for specific hosts](https://forum.ansible.com/t/actionmodule-update-hostvars-for-specific-hosts/22350)

<div class="topic-metadata">

**Author:** [@Jim\_Ficarra](https://forum.ansible.com/u/Jim_Ficarra)\
**Replies:** 3\
**Last updated:** [August 31, 2016, 11:32am UTC](https://forum.ansible.com/t/actionmodule-update-hostvars-for-specific-hosts/22350 "2016-08-31T11:32:47Z")

</div>

Hi, I am building an ActionModule (bypassing the host loop) to query an internal REST service that provides bulk metrics for a bunch of hosts at once (for the hosts that are in play). After getting the data back from th…

---

## [display a message at the end of a ansible playbook](https://forum.ansible.com/t/display-a-message-at-the-end-of-a-ansible-playbook/22418)

<div class="topic-metadata">

**Author:** [@synova.marketing](https://forum.ansible.com/u/synova.marketing)\
**Replies:** 1\
**Last updated:** [August 31, 2016, 9:46am UTC](https://forum.ansible.com/t/display-a-message-at-the-end-of-a-ansible-playbook/22418 "2016-08-31T09:46:14Z")

</div>

Hi, Is there a way to display a message on the screen at the end of the script (for example: you can now connect to http://xyz.com/setup.php to finish installation) Best regards

---

## [HowTo: combine two lists in vars section/file](https://forum.ansible.com/t/howto-combine-two-lists-in-vars-section-file/21017)

<div class="topic-metadata">

**Author:** [@Jard\_Leex](https://forum.ansible.com/u/Jard_Leex)\
**Replies:** 5\
**Last updated:** [August 31, 2016, 6:59am UTC](https://forum.ansible.com/t/howto-combine-two-lists-in-vars-section-file/21017 "2016-08-31T06:59:41Z")

</div>

Hello together, i’d like to combine two lists directly in a vars section/file. I’ve tried the combine filter but as i understood it, it is for dicts and not lists. Also the union filter did not worked for me as i trie…

---

## [Always append a '/' to variable whose value is supplied as extra vars](https://forum.ansible.com/t/always-append-a-to-variable-whose-value-is-supplied-as-extra-vars/22411)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 2\
**Last updated:** [August 31, 2016, 6:28am UTC](https://forum.ansible.com/t/always-append-a-to-variable-whose-value-is-supplied-as-extra-vars/22411 "2016-08-31T06:28:43Z")

</div>

I have a variable config\_src which i use in a lot many places (host vars, inventory file, playbook) and its value is supplied at the run time as extra vars (-e) This variable is actually a path variable, so i need to en…

---

## [Issues when using jinja "include" directive](https://forum.ansible.com/t/issues-when-using-jinja-include-directive/22426)

<div class="topic-metadata">

**Author:** [@Filipe\_Felisbino](https://forum.ansible.com/u/Filipe_Felisbino)\
**Replies:** 0\
**Last updated:** [August 30, 2016, 10:25pm UTC](https://forum.ansible.com/t/issues-when-using-jinja-include-directive/22426 "2016-08-30T22:25:51Z")

</div>

Hello I was testing the latest devel version and one of my playbooks stopped working due to TemplateNotFound error on a jinja template. The problem is happening because my template includes another template ( {% include…

---

## [Controlling the STDOUT/STDERR output of plays / suppressing output](https://forum.ansible.com/t/controlling-the-stdout-stderr-output-of-plays-suppressing-output/22400)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 3\
**Last updated:** [August 30, 2016, 7:50pm UTC](https://forum.ansible.com/t/controlling-the-stdout-stderr-output-of-plays-suppressing-output/22400 "2016-08-30T19:50:22Z")

</div>

Hello, I am getting ready to have our general populace execute patches using Ansible. We are running playbooks with wrapper shell scripts at the moment and do not have Tower evaluated yet. I would like to control what …

---

## [2.2 Feature Freeze and upcoming Schedule](https://forum.ansible.com/t/2-2-feature-freeze-and-upcoming-schedule/22424)

<div class="topic-metadata">

**Author:** [@jmckerr](https://forum.ansible.com/u/jmckerr)\
**Replies:** 0\
**Last updated:** [August 30, 2016, 6:46pm UTC](https://forum.ansible.com/t/2-2-feature-freeze-and-upcoming-schedule/22424 "2016-08-30T18:46:01Z")

</div>

All, This is a reminder that Ansible Core 2.2 will be in feature freeze on 05 SEPTEMBER 2016. All Ansible Core features must be frozen, and testing begins at that time. For modules all major features (parameter changes,…

---

## [The differences between callback types?](https://forum.ansible.com/t/the-differences-between-callback-types/22423)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 1\
**Last updated:** [August 30, 2016, 4:28pm UTC](https://forum.ansible.com/t/the-differences-between-callback-types/22423 "2016-08-30T16:28:16Z")

</div>

I have to rework my callback plugin. I noticed there’s a variable called “CALLBACK\_TYPE” and depending on which one you use, you can grab certain values. Where the heck can I find more documentation regarding this?

---

## [Validating performance expectations: 10x overhead on ssh?](https://forum.ansible.com/t/validating-performance-expectations-10x-overhead-on-ssh/22421)

<div class="topic-metadata">

**Author:** [@Chris\_West](https://forum.ansible.com/u/Chris_West)\
**Replies:** 0\
**Last updated:** [August 30, 2016, 12:59pm UTC](https://forum.ansible.com/t/validating-performance-expectations-10x-overhead-on-ssh/22421 "2016-08-30T12:59:51Z")

</div>

Our “go off and do everything” playbook is now taking an uncomfortable number of minutes to run against a single host, even when there are no changes. This feels like a lot to me. I have pipelining and ControlPersist en…

---

## [HOstname always change](https://forum.ansible.com/t/hostname-always-change/22413)

<div class="topic-metadata">

**Author:** [@Pietro\_Leone](https://forum.ansible.com/u/Pietro_Leone)\
**Replies:** 1\
**Last updated:** [August 30, 2016, 7:59am UTC](https://forum.ansible.com/t/hostname-always-change/22413 "2016-08-30T07:59:28Z")

</div>

Hi, I created this playbook:

---

## [How to use the copy mode in python API.](https://forum.ansible.com/t/how-to-use-the-copy-mode-in-python-api/22417)

<div class="topic-metadata">

**Author:** [@PP\_letter](https://forum.ansible.com/u/PP_letter)\
**Replies:** 0\
**Last updated:** [August 30, 2016, 2:30am UTC](https://forum.ansible.com/t/how-to-use-the-copy-mode-in-python-api/22417 "2016-08-30T02:30:29Z")

</div>

\` #!/usr/bin/env python # -\*- coding: UTF-8 -\*- from collections import namedtuple from ansible.parsing.dataloader import DataLoader from ansible.vars import VariableManager from ansible.inventory import Inventory from …

---

## [Configuring AWS EC2 instance after it's created through Ansible](https://forum.ansible.com/t/configuring-aws-ec2-instance-after-its-created-through-ansible/22392)

<div class="topic-metadata">

**Author:** [@Michael\_Ludvig](https://forum.ansible.com/u/Michael_Ludvig)\
**Replies:** 1\
**Last updated:** [August 30, 2016, 1:03am UTC](https://forum.ansible.com/t/configuring-aws-ec2-instance-after-its-created-through-ansible/22392 "2016-08-30T01:03:35Z")

</div>

Hi there I’ve got a play that creates an AWS EC2 instance through a CloudFormation template. After it’s created I would like to configure it - I can use the AWS tools to do that but I prefer to use Ansible to be consist…

---

## [Any tips on how to get started?](https://forum.ansible.com/t/any-tips-on-how-to-get-started/22382)

<div class="topic-metadata">

**Author:** [@Theo\_Vasileiadis](https://forum.ansible.com/u/Theo_Vasileiadis)\
**Replies:** 1\
**Last updated:** [August 29, 2016, 8:45pm UTC](https://forum.ansible.com/t/any-tips-on-how-to-get-started/22382 "2016-08-29T20:45:12Z")

</div>

Hi, I’d like to contribute to Ansible and I’m looking for some guidelines to help me get familiar with the project and start working.

---

## [Random SSH unreachables using delegation in Ansible 2.1.0](https://forum.ansible.com/t/random-ssh-unreachables-using-delegation-in-ansible-2-1-0/22374)

<div class="topic-metadata">

**Author:** [@Soren\_Olegnowicz](https://forum.ansible.com/u/Soren_Olegnowicz)\
**Replies:** 2\
**Last updated:** [August 29, 2016, 8:09pm UTC](https://forum.ansible.com/t/random-ssh-unreachables-using-delegation-in-ansible-2-1-0/22374 "2016-08-29T20:09:04Z")

</div>

So I have a task that delegates a template deployed to one server to a different server. When this task is run on just a single server I get no errors. However if I try running this delegation task on all the servers (16…

---

## [How to install specific version of things?](https://forum.ansible.com/t/how-to-install-specific-version-of-things/22415)

<div class="topic-metadata">

**Author:** [@Cann](https://forum.ansible.com/u/Cann)\
**Replies:** 0\
**Last updated:** [August 29, 2016, 8:01pm UTC](https://forum.ansible.com/t/how-to-install-specific-version-of-things/22415 "2016-08-29T20:01:51Z")

</div>

Hello Everyone, I have a ubuntu 14 server and I simply want to have latest version of php 5 on my machine. I add a PPA repo and I ran following playbook to install my php extensions but my PHP version is keep getting u…

---

## [In Ansible, how do I use the ec2\_group module to query if a security group exists, and then check for the result?](https://forum.ansible.com/t/in-ansible-how-do-i-use-the-ec2-group-module-to-query-if-a-security-group-exists-and-then-check-for-the-result/22414)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 1\
**Last updated:** [August 29, 2016, 6:37pm UTC](https://forum.ansible.com/t/in-ansible-how-do-i-use-the-ec2-group-module-to-query-if-a-security-group-exists-and-then-check-for-the-result/22414 "2016-08-29T18:37:47Z")

</div>

Im trying to write a role that queries a security group if it exists, and then create if if not. So I manually created the security group first via AWS GUI. Then I tried the following for the query. \` name: Query if …

---

## [replace public ip from /etc/hosts file with private ip using Ansible](https://forum.ansible.com/t/replace-public-ip-from-etc-hosts-file-with-private-ip-using-ansible/22402)

<div class="topic-metadata">

**Author:** [@Auto-mate](https://forum.ansible.com/u/Auto-mate)\
**Replies:** 1\
**Last updated:** [August 29, 2016, 6:02pm UTC](https://forum.ansible.com/t/replace-public-ip-from-etc-hosts-file-with-private-ip-using-ansible/22402 "2016-08-29T18:02:15Z")

</div>

I need to replace public ip from /etc/hosts file with private ip in bulk cluster of systems. Ansible gathered fact , may work but not sure which is for what. Another way, I can have public and private ip register as va…

---

## [Confused By EC2 Dynamic Inventory](https://forum.ansible.com/t/confused-by-ec2-dynamic-inventory/22407)

<div class="topic-metadata">

**Author:** [@Jon\_Forrest](https://forum.ansible.com/u/Jon_Forrest)\
**Replies:** 1\
**Last updated:** [August 29, 2016, 5:59pm UTC](https://forum.ansible.com/t/confused-by-ec2-dynamic-inventory/22407 "2016-08-29T17:59:43Z")

</div>

I'm 90% done with a problem. The remaining 10% requires using EC2 dynamic inventory, but I'm missing something important. I'm creating two instances ('frontend' and 'backend') where backend only allows SSH access from…

---

## [Ansible Expect module can't match string/regex script questions](https://forum.ansible.com/t/ansible-expect-module-cant-match-string-regex-script-questions/22393)

<div class="topic-metadata">

**Author:** [@Andrea\_Francesco\_Spe](https://forum.ansible.com/u/Andrea_Francesco_Spe)\
**Replies:** 1\
**Last updated:** [August 29, 2016, 3:05pm UTC](https://forum.ansible.com/t/ansible-expect-module-cant-match-string-regex-script-questions/22393 "2016-08-29T15:05:16Z")

</div>

I’m trying to automate a script installation through Ansible in a Vagrant machine. I tried a lot to find a solution across the web but the documentation and the examples are very weak. That script I’m trying to install…

---

## [Callback plugin with Ansible 2.0](https://forum.ansible.com/t/callback-plugin-with-ansible-2-0/22404)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 4\
**Last updated:** [August 29, 2016, 2:26pm UTC](https://forum.ansible.com/t/callback-plugin-with-ansible-2-0/22404 "2016-08-29T14:26:18Z")

</div>

I inherited a callback plugin that was woirking with Ansible 1.9. We upgraded to 2.1 and it no longer works. Looks like it’s trying to access the playbook object but it’s not getting passed into “v2\_playbook\_on\_stats.” …

---

## [Vaultier Installation Issue](https://forum.ansible.com/t/vaultier-installation-issue/22412)

<div class="topic-metadata">

**Author:** [@puneet.sharma](https://forum.ansible.com/u/puneet.sharma)\
**Replies:** 0\
**Last updated:** [August 29, 2016, 12:27pm UTC](https://forum.ansible.com/t/vaultier-installation-issue/22412 "2016-08-29T12:27:22Z")

</div>

Hi Guys, I have installing Vaultier on Ubuntu server 14.04 i am getting below error (venv)oneadmin@us-server3:/opt/vaultier$ vaultier init Traceback (most recent call last): File “/usr/local/bin/vaultier”, line 9, in…

---

## [Vars defined in host file not getting the value when the value is supplied as extra vars during playbook run](https://forum.ansible.com/t/vars-defined-in-host-file-not-getting-the-value-when-the-value-is-supplied-as-extra-vars-during-playbook-run/22410)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 0\
**Last updated:** [August 29, 2016, 10:44am UTC](https://forum.ansible.com/t/vars-defined-in-host-file-not-getting-the-value-when-the-value-is-supplied-as-extra-vars-during-playbook-run/22410 "2016-08-29T10:44:05Z")

</div>

My host file looks something like this: \[Group\] host.com \[Group:vars\] vars="{{src}}/varsFile.yaml And in my playbook:

---

## [Can i use variables as values to variables defined in inventory file](https://forum.ansible.com/t/can-i-use-variables-as-values-to-variables-defined-in-inventory-file/22304)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 2\
**Last updated:** [August 29, 2016, 6:14am UTC](https://forum.ansible.com/t/can-i-use-variables-as-values-to-variables-defined-in-inventory-file/22304 "2016-08-29T06:14:56Z")

</div>

I am trying to imply environment wide values via inventory file for which i need to use some other variables as values. My host file looks like this: \[linunx\] linux1 linux2 \[windows\] windows1 windows2 \[all\] linu…

---

## [print public dns name of ec2 instance](https://forum.ansible.com/t/print-public-dns-name-of-ec2-instance/22408)

<div class="topic-metadata">

**Author:** [@Benjamin\_Fernandis](https://forum.ansible.com/u/Benjamin_Fernandis)\
**Replies:** 0\
**Last updated:** [August 29, 2016, 3:50am UTC](https://forum.ansible.com/t/print-public-dns-name-of-ec2-instance/22408 "2016-08-29T03:50:25Z")

</div>

Hi, I am testing to print ec2 instance public dns names by ansible. hosts: localhost connection: local tasks: name: get instance public dns name ec2\_remote\_facts: region: ap-southeast-2 filters: instance-stat…

---

## [replace public ip from /etc/hosts file with private ip using Ansible](https://forum.ansible.com/t/replace-public-ip-from-etc-hosts-file-with-private-ip-using-ansible/22406)

<div class="topic-metadata">

**Author:** [@Auto-mate](https://forum.ansible.com/u/Auto-mate)\
**Replies:** 0\
**Last updated:** [August 27, 2016, 4:26pm UTC](https://forum.ansible.com/t/replace-public-ip-from-etc-hosts-file-with-private-ip-using-ansible/22406 "2016-08-27T16:26:16Z")

</div>

I need to replace public ip from /etc/hosts file with private ip in bulk cluster of systems. Ansible gathered fact , may work but not sure which is for what. Another way, I can have public and private ip register as va…

---

## [Python3 -- where are we now?](https://forum.ansible.com/t/python3-where-are-we-now/22384)

<div class="topic-metadata">

**Author:** [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Replies:** 1\
**Last updated:** [August 27, 2016, 1:49pm UTC](https://forum.ansible.com/t/python3-where-are-we-now/22384 "2016-08-27T13:49:09Z")

</div>

Hey everyone, just dropping a short status update on the progress on getting Ansible running on python3. Bad news first: I don't think that Ansible-2.2 on python3 will be production ready. There are large pieces of th…

---

## [Where'd self.playbook.extra\_vars get moved to](https://forum.ansible.com/t/whered-self-playbook-extra-vars-get-moved-to/21083)

<div class="topic-metadata">

**Author:** [@Zacharias\_Thompson](https://forum.ansible.com/u/Zacharias_Thompson)\
**Replies:** 1\
**Last updated:** [August 27, 2016, 1:17am UTC](https://forum.ansible.com/t/whered-self-playbook-extra-vars-get-moved-to/21083 "2016-08-27T01:17:09Z")

</div>

I’ve been using a callback plugin in Ansible 1.9.4 to pull a bunch of variables, format them into a string, and send out an email to users. I’m testing the upgrade to Ansible 2.0.1 and it looks like the property is not …

---

## [Access group vars from callback module in ansible-2.0](https://forum.ansible.com/t/access-group-vars-from-callback-module-in-ansible-2-0/20392)

<div class="topic-metadata">

**Author:** [@tinyzais](https://forum.ansible.com/u/tinyzais)\
**Replies:** 2\
**Last updated:** [August 26, 2016, 8:00pm UTC](https://forum.ansible.com/t/access-group-vars-from-callback-module-in-ansible-2-0/20392 "2016-08-26T20:00:02Z")

</div>

Hello, I’m trying to write callback plugin for ansible. Below code was working on in ansible-1.9, but it isn’t in ansible-2.0 \` def v2\_playbook\_on\_play\_start(self, play): self.play = play self.playbook = self.play.…

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

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