# Archives

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

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

**Page:** 522

---

## [cryptic errors nxos\_config](https://forum.ansible.com/t/cryptic-errors-nxos-config/23520)

<div class="topic-metadata">

**Author:** [@Eric\_Marquez](https://forum.ansible.com/u/Eric_Marquez)\
**Replies:** 0\
**Last updated:** [January 20, 2017, 10:53pm UTC](https://forum.ansible.com/t/cryptic-errors-nxos-config/23520 "2017-01-20T22:53:36Z")

</div>

I'm troubleshooting why I keep getting this cryptic errors when I'm attempting to use nxos\_config Ansible Version: ansible 2.2.0.0 config file = /home/emarq/Solutions.Network.Automation/MAS/Ansible/cisco/nexus/ansib…

---

## [Help to get the .pem file for Auze](https://forum.ansible.com/t/help-to-get-the-pem-file-for-auze/23519)

<div class="topic-metadata">

**Author:** [@Amit\_Saini](https://forum.ansible.com/u/Amit_Saini)\
**Replies:** 0\
**Last updated:** [January 20, 2017, 9:30pm UTC](https://forum.ansible.com/t/help-to-get-the-pem-file-for-auze/23519 "2017-01-20T21:30:09Z")

</div>

Hi, I am working on ansible-playbook for provisioning Azure VMWare and referring the ansible document - name: Provision virtual machine example azure: name: my-virtual-machine role\_size: Small image: b39f…

---

## [Starting out with Ansible and Vagrant.](https://forum.ansible.com/t/starting-out-with-ansible-and-vagrant/23494)

<div class="topic-metadata">

**Author:** [@Pangaea\_Agartha](https://forum.ansible.com/u/Pangaea_Agartha)\
**Replies:** 3\
**Last updated:** [January 20, 2017, 7:45pm UTC](https://forum.ansible.com/t/starting-out-with-ansible-and-vagrant/23494 "2017-01-20T19:45:42Z")

</div>

Hi Everyone. I am a complete noob to this so please be patient with me. I’m trying to learn Devops and my mentor asked me to research and attempt to get a vagrant machine online with a LEMP stack using only ansible to c…

---

## [Inventory plugin for Packet host](https://forum.ansible.com/t/inventory-plugin-for-packet-host/23518)

<div class="topic-metadata">

**Author:** [@Tomas\_Karasek](https://forum.ansible.com/u/Tomas_Karasek)\
**Replies:** 0\
**Last updated:** [January 20, 2017, 6:24pm UTC](https://forum.ansible.com/t/inventory-plugin-for-packet-host/23518 "2017-01-20T18:24:22Z")

</div>

Hello, I am now looking on dynamic inventory script for the Packet host (https://packet.net). I noticed there is a PR: https://github.com/ansible/ansible/pull/17820 I treid to do some review. I would really like to …

---

## [Template Conditionals](https://forum.ansible.com/t/template-conditionals/23506)

<div class="topic-metadata">

**Author:** [@Horse\_Radish](https://forum.ansible.com/u/Horse_Radish)\
**Replies:** 4\
**Last updated:** [January 20, 2017, 4:22pm UTC](https://forum.ansible.com/t/template-conditionals/23506 "2017-01-20T16:22:48Z")

</div>

'Hope this is not a stupid question but … I have an existing inventory and playbook associated with it. The inventory has entries like this: \[s1\] host1 \[s2\] host2 ... \[foo:children\] s8 s9 The foo playbook has temp…

---

## [Ansible script work with array](https://forum.ansible.com/t/ansible-script-work-with-array/23516)

<div class="topic-metadata">

**Author:** [@Stepan\_Harutyunyan](https://forum.ansible.com/u/Stepan_Harutyunyan)\
**Replies:** 15\
**Last updated:** [January 20, 2017, 4:19pm UTC](https://forum.ansible.com/t/ansible-script-work-with-array/23516 "2017-01-20T16:19:12Z")

</div>

Hi Everyone, Hear is some part of my ansible code, I want to take contactId from Json array when contactAccount is someemail2@somedomain.com, but my script’s this part “{{array.{{item}}.contactId}}” doesn’t work. Could …

---

## [combining vars facts and other data](https://forum.ansible.com/t/combining-vars-facts-and-other-data/23512)

<div class="topic-metadata">

**Author:** [@Greg\_Fitzgerald](https://forum.ansible.com/u/Greg_Fitzgerald)\
**Replies:** 2\
**Last updated:** [January 20, 2017, 4:06pm UTC](https://forum.ansible.com/t/combining-vars-facts-and-other-data/23512 "2017-01-20T16:06:45Z")

</div>

Hi, I'm coming from chef, and in chef land we do a lot of fancy things in our attributes files. For example in one of my cookbooks I do this. node.default\['ts3'\]\['arch'\] = node\['kernel'\]\['machine'\] =~ /x86\_64/ ? "am…

---

## [How does filter of setuo module (facts) run ?](https://forum.ansible.com/t/how-does-filter-of-setuo-module-facts-run/23513)

<div class="topic-metadata">

**Author:** [@web.cvcc](https://forum.ansible.com/u/web.cvcc)\
**Replies:** 1\
**Last updated:** [January 20, 2017, 3:44pm UTC](https://forum.ansible.com/t/how-does-filter-of-setuo-module-facts-run/23513 "2017-01-20T15:44:03Z")

</div>

Hi all I have a poor performance environement and running setup on it get a lot of time. I know i can disable gathering fact with gather\_facts: False I’m trying this and it’s work fine

---

## [Newlines are escaped when using jinja2 filters in playbook](https://forum.ansible.com/t/newlines-are-escaped-when-using-jinja2-filters-in-playbook/23488)

<div class="topic-metadata">

**Author:** [@Fredrik\_Rambris](https://forum.ansible.com/u/Fredrik_Rambris)\
**Replies:** 1\
**Last updated:** [January 20, 2017, 2:25pm UTC](https://forum.ansible.com/t/newlines-are-escaped-when-using-jinja2-filters-in-playbook/23488 "2017-01-20T14:25:59Z")

</div>

I’m trying to get around the issue with authorized\_keys not having support for exclusive and with\_items. I have a list of keys I want to populate an authorized\_keys file and have ansible remove all others that may be in …

---

## [Nested conditional loop](https://forum.ansible.com/t/nested-conditional-loop/23432)

<div class="topic-metadata">

**Author:** [@Miguel\_David](https://forum.ansible.com/u/Miguel_David)\
**Replies:** 1\
**Last updated:** [January 20, 2017, 1:53pm UTC](https://forum.ansible.com/t/nested-conditional-loop/23432 "2017-01-20T13:53:15Z")

</div>

Hi all, I have a dictionary on my site\_vars.yml something like this: services: name: “service1” … foo: “bar” The playbook calls the role: name: Configure backend hosts: backend gather\_facts: true become: yes …

---

## [Ansible control via Windows Subsystem for Linux: still "not a goal"?](https://forum.ansible.com/t/ansible-control-via-windows-subsystem-for-linux-still-not-a-goal/23371)

<div class="topic-metadata">

**Author:** [@Rich\_Fletcher](https://forum.ansible.com/u/Rich_Fletcher)\
**Replies:** 4\
**Last updated:** [January 20, 2017, 1:49pm UTC](https://forum.ansible.com/t/ansible-control-via-windows-subsystem-for-linux-still-not-a-goal/23371 "2017-01-20T13:49:43Z")

</div>

Windows control machine support has long been explicitly declared as not a goal for the project: http://docs.ansible.com/ansible/intro\_windows.html#reminder-you-must-have-a-linux-control-machine If I recall, this state…

---

## [How setup filter  of gathering fact work ?](https://forum.ansible.com/t/how-setup-filter-of-gathering-fact-work/23514)

<div class="topic-metadata">

**Author:** [@web.cvcc](https://forum.ansible.com/u/web.cvcc)\
**Replies:** 1\
**Last updated:** [January 20, 2017, 1:15pm UTC](https://forum.ansible.com/t/how-setup-filter-of-gathering-fact-work/23514 "2017-01-20T13:15:12Z")

</div>

Hi all I have a poor performance environement and running setup on it get a lot of time. I know i can disable gathering fact with gather\_facts: False I’m trying this and it’s work fine

---

## [Issue with Firewall Role](https://forum.ansible.com/t/issue-with-firewall-role/23515)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [January 20, 2017, 9:06am UTC](https://forum.ansible.com/t/issue-with-firewall-role/23515 "2017-01-20T09:06:18Z")

</div>

Hi there,

---

## [Getting Error while executing Commands having space in command module and shell module](https://forum.ansible.com/t/getting-error-while-executing-commands-having-space-in-command-module-and-shell-module/23474)

<div class="topic-metadata">

**Author:** [@sgampawa](https://forum.ansible.com/u/sgampawa)\
**Replies:** 11\
**Last updated:** [January 20, 2017, 8:34am UTC](https://forum.ansible.com/t/getting-error-while-executing-commands-having-space-in-command-module-and-shell-module/23474 "2017-01-20T08:34:45Z")

</div>

Hi, I am using ansible 2.2 to automate login to the remote machine and running onos on it.For that I have written a simple playbook as shown below playbook.yml

---

## [apt module behavior](https://forum.ansible.com/t/apt-module-behavior/23473)

<div class="topic-metadata">

**Author:** [@Igor\_Schaefer](https://forum.ansible.com/u/Igor_Schaefer)\
**Replies:** 4\
**Last updated:** [January 20, 2017, 3:36am UTC](https://forum.ansible.com/t/apt-module-behavior/23473 "2017-01-20T03:36:22Z")

</div>

Hello, colleagues Sure, all you know the situation, when you install a new version of package and you get a dialog window with warnings like “use existing version of config file or replace it with new one” or “that your…

---

## [ansible directives info](https://forum.ansible.com/t/ansible-directives-info/23501)

<div class="topic-metadata">

**Author:** [@SUJAN\_GIRI](https://forum.ansible.com/u/SUJAN_GIRI)\
**Replies:** 1\
**Last updated:** [January 20, 2017, 1:35am UTC](https://forum.ansible.com/t/ansible-directives-info/23501 "2017-01-20T01:35:50Z")

</div>

I see that below link lists lots of directives that can be used. https://docs.ansible.com/ansible/playbooks\_directives.html Howerver, i am not able to find the example/explanation of these directives. Is there any doc…

---

## [Issue with Tags](https://forum.ansible.com/t/issue-with-tags/23509)

<div class="topic-metadata">

**Author:** [@jithendra\_myla](https://forum.ansible.com/u/jithendra_myla)\
**Replies:** 1\
**Last updated:** [January 20, 2017, 1:34am UTC](https://forum.ansible.com/t/issue-with-tags/23509 "2017-01-20T01:34:28Z")

</div>

Here is ansible playbook, i given a tag and wanted to use it while i run the playbook, but it will still run the whole playbook \[ansible@centos1 ansible\_playbooks\]$ cat install\_plays.yml — # install software on multipl…

---

## [Cron module does not properly set SELinux context for user crontabs](https://forum.ansible.com/t/cron-module-does-not-properly-set-selinux-context-for-user-crontabs/23505)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Wen](https://forum.ansible.com/u/Jeffrey_Wen)\
**Replies:** 2\
**Last updated:** [January 19, 2017, 9:46pm UTC](https://forum.ansible.com/t/cron-module-does-not-properly-set-selinux-context-for-user-crontabs/23505 "2017-01-19T21:46:04Z")

</div>

I am having the same issue inserting crons into the root user’s crontab file according to this GitHub Issue I am using ansible 2.3.0 … so shouldn’t my version include the commit that fixed this issue? The exact error I…

---

## [playbook syntax](https://forum.ansible.com/t/playbook-syntax/23500)

<div class="topic-metadata">

**Author:** [@Alan\_Batie](https://forum.ansible.com/u/Alan_Batie)\
**Replies:** 5\
**Last updated:** [January 19, 2017, 9:17pm UTC](https://forum.ansible.com/t/playbook-syntax/23500 "2017-01-19T21:17:01Z")

</div>

I’m giving ansible a try, and it seems the examples aren’t quite right - using authorized\_keys as a starting point: http://docs.ansible.com/ansible/authorized\_key\_module.html cat e.yml name: Set authorized key took fr…

---

## [How to loop thru win\_updates until no updates left](https://forum.ansible.com/t/how-to-loop-thru-win-updates-until-no-updates-left/23356)

<div class="topic-metadata">

**Author:** [@autogun](https://forum.ansible.com/u/autogun)\
**Replies:** 16\
**Last updated:** [January 19, 2017, 8:00pm UTC](https://forum.ansible.com/t/how-to-loop-thru-win-updates-until-no-updates-left/23356 "2017-01-19T20:00:05Z")

</div>

Hi, I’m using win\_updates module to carry out windows patching and it works pretty good. Sometime, updates have dependencies and multiple playbook execution required. I was thinking, if possible, to loop the playbook …

---

## [Running Ansible Tower with Caddy web server](https://forum.ansible.com/t/running-ansible-tower-with-caddy-web-server/23502)

<div class="topic-metadata">

**Author:** [@Lars\_Bilke](https://forum.ansible.com/u/Lars_Bilke)\
**Replies:** 1\
**Last updated:** [January 19, 2017, 6:02pm UTC](https://forum.ansible.com/t/running-ansible-tower-with-caddy-web-server/23502 "2017-01-19T18:02:42Z")

</div>

Has somebody run Ansible Tower with Caddy web server and would like to share their Caddyfile? As Tower is a Python WSGI application I do not know how to connect the Caddy server to it. I want to use Caddy instead of the …

---

## [play\_hosts variable in a plugin](https://forum.ansible.com/t/play-hosts-variable-in-a-plugin/23504)

<div class="topic-metadata">

**Author:** [@Micoo](https://forum.ansible.com/u/Micoo)\
**Replies:** 0\
**Last updated:** [January 19, 2017, 4:56pm UTC](https://forum.ansible.com/t/play-hosts-variable-in-a-plugin/23504 "2017-01-19T16:56:16Z")

</div>

Hi Is there a way to get to the play\_hosts variable in v2\_playbook\_on\_start and v2\_playbook\_on\_play\_start callback? I went through various play’s attributes and methods and can’t seem to find it. Cheers, Michal

---

## [New FreeBSD install seems modules are not found](https://forum.ansible.com/t/new-freebsd-install-seems-modules-are-not-found/23493)

<div class="topic-metadata">

**Author:** [@Michael\_Wayne](https://forum.ansible.com/u/Michael_Wayne)\
**Replies:** 2\
**Last updated:** [January 19, 2017, 4:20pm UTC](https://forum.ansible.com/t/new-freebsd-install-seems-modules-are-not-found/23493 "2017-01-19T16:20:07Z")

</div>

FreeBSD 11, binary install using pkg install. I can successfully do the initial commands: ansible all -m ping ansible all -a “/bin/echo hello” So I tried a playbook for the simplest thing I could think of, install a …

---

## [ios\_config module questions](https://forum.ansible.com/t/ios-config-module-questions/23483)

<div class="topic-metadata">

**Author:** [@Stijn](https://forum.ansible.com/u/Stijn)\
**Replies:** 2\
**Last updated:** [January 19, 2017, 3:43pm UTC](https://forum.ansible.com/t/ios-config-module-questions/23483 "2017-01-19T15:43:46Z")

</div>

Hey everyone, I’m giving Ansible a try and I’m quite impressed. I have a couple of questions regarding the ios\_config module. \`

---

## [rds module - storage parameters](https://forum.ansible.com/t/rds-module-storage-parameters/23503)

<div class="topic-metadata">

**Author:** [@a\_folgueira](https://forum.ansible.com/u/a_folgueira)\
**Replies:** 0\
**Last updated:** [January 19, 2017, 3:29pm UTC](https://forum.ansible.com/t/rds-module-storage-parameters/23503 "2017-01-19T15:29:23Z")

</div>

Hello Is there a way on the rds module to specify the rds instance storage type, if it is encrypted and the kms key used for encryption? Thanks

---

## [Ansible Training India](https://forum.ansible.com/t/ansible-training-india/23486)

<div class="topic-metadata">

**Author:** [@Jagadishan\_Perumal](https://forum.ansible.com/u/Jagadishan_Perumal)\
**Replies:** 1\
**Last updated:** [January 19, 2017, 12:55am UTC](https://forum.ansible.com/t/ansible-training-india/23486 "2017-01-19T00:55:19Z")

</div>

Hello, Is there anyone in India who can provide ansible training.

---

## [Strage behaviour related to localhost in ansible 2.2](https://forum.ansible.com/t/strage-behaviour-related-to-localhost-in-ansible-2-2/23487)

<div class="topic-metadata">

**Author:** [@Stefan\_Magnus\_Landro](https://forum.ansible.com/u/Stefan_Magnus_Landro)\
**Replies:** 1\
**Last updated:** [January 19, 2017, 12:00am UTC](https://forum.ansible.com/t/strage-behaviour-related-to-localhost-in-ansible-2-2/23487 "2017-01-19T00:00:58Z")

</div>

Hi all, Can anyone explain why targeting localhost explicitly instead of defaulting to localhost behaves differently? Cheers, Stefan

---

## [ios\_command does not seem to be working](https://forum.ansible.com/t/ios-command-does-not-seem-to-be-working/23499)

<div class="topic-metadata">

**Author:** [@Mohamed\_Lrhazi](https://forum.ansible.com/u/Mohamed_Lrhazi)\
**Replies:** 1\
**Last updated:** [January 18, 2017, 11:23pm UTC](https://forum.ansible.com/t/ios-command-does-not-seem-to-be-working/23499 "2017-01-18T23:23:25Z")

</div>

Hello, am trying ansible and ios\_command module for the first time… it seems as if ansible is trying to execute normal unix commands instead of ios… what am I missing? \` ➜ cisco cat pb.yaml

---

## [Idempotency: How to determine which user to use when root is no longer allowed?](https://forum.ansible.com/t/idempotency-how-to-determine-which-user-to-use-when-root-is-no-longer-allowed/23498)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [January 18, 2017, 7:58pm UTC](https://forum.ansible.com/t/idempotency-how-to-determine-which-user-to-use-when-root-is-no-longer-allowed/23498 "2017-01-18T19:58:49Z")

</div>

Hi there, say I get a new instance somewhere that allows logins as root. I want to run a playbook that configures the machine and no longer allows root logins. And I want it to be idempotent. :wink: Consider this moc…

---

## [How to run Playbook by using PHP ?](https://forum.ansible.com/t/how-to-run-playbook-by-using-php/23495)

<div class="topic-metadata">

**Author:** [@Satish](https://forum.ansible.com/u/Satish)\
**Replies:** 0\
**Last updated:** [January 18, 2017, 5:04pm UTC](https://forum.ansible.com/t/how-to-run-playbook-by-using-php/23495 "2017-01-18T17:04:17Z")

</div>

Hello Team, Can anyone tell me, how to run Ansible PlayBook by using PHP ?? Thanking you.

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

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