# Latest

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

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

**Page:** 512

---

## [Error execute AWX Inventory script that connect to satellite server  to generate dynamic inventories](https://forum.ansible.com/t/error-execute-awx-inventory-script-that-connect-to-satellite-server-to-generate-dynamic-inventories/28867)

<div class="topic-metadata">

**Author:** [@Alberto\_Jimenez\_Loza](https://forum.ansible.com/u/Alberto_Jimenez_Loza)\
**Replies:** 1\
**Last updated:** [October 25, 2018, 11:08am UTC](https://forum.ansible.com/t/error-execute-awx-inventory-script-that-connect-to-satellite-server-to-generate-dynamic-inventories/28867 "2018-10-25T11:08:16Z")

</div>

I want to use this Inventory Script in AWX that connect to my satellite server to generate dynamic inventories. But when I execute update of the inventory, it appears this error. 1 1.452 INFO Updating inventory 15: In…

---

## [Ansible Play error - Template error while templating string: no filter named 'map'. String:](https://forum.ansible.com/t/ansible-play-error-template-error-while-templating-string-no-filter-named-map-string/28860)

<div class="topic-metadata">

**Author:** [@Kishore\_Ponniah](https://forum.ansible.com/u/Kishore_Ponniah)\
**Replies:** 1\
**Last updated:** [October 25, 2018, 10:11am UTC](https://forum.ansible.com/t/ansible-play-error-template-error-while-templating-string-no-filter-named-map-string/28860 "2018-10-25T10:11:07Z")

</div>

Hello all, This is the continuation of my other Post creating direct connect gateway. This is the same but using assume roles and cross-account deployment. I have added loops but there are 2 sections which are not worki…

---

## [Could ansile access remote hosts by serial console over LAN](https://forum.ansible.com/t/could-ansile-access-remote-hosts-by-serial-console-over-lan/23725)

<div class="topic-metadata">

**Author:** [@rong\_zhao](https://forum.ansible.com/u/rong_zhao)\
**Replies:** 5\
**Last updated:** [October 25, 2018, 5:50am UTC](https://forum.ansible.com/t/could-ansile-access-remote-hosts-by-serial-console-over-lan/23725 "2018-10-25T05:50:25Z")

</div>

Hi Dears, My remote hosts’ management port is serial console over LAN. When connect by ssh manually, I use ops account connect to remote hosts, and then it become the Linux console, I just run ssh command. Now, I use …

---

## [apt result is changed incorrectly?](https://forum.ansible.com/t/apt-result-is-changed-incorrectly/28864)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 3\
**Last updated:** [October 25, 2018, 4:17am UTC](https://forum.ansible.com/t/apt-result-is-changed-incorrectly/28864 "2018-10-25T04:17:35Z")

</div>

I am running apt with a wildcard. The package is not being installed/updated, but task is marked as changed. Is this is a bug or how I should expect apt to work with a wildcard. \` ansible❯ ansible --version ansible 2.…

---

## [Get IP address, replace first three octets](https://forum.ansible.com/t/get-ip-address-replace-first-three-octets/28836)

<div class="topic-metadata">

**Author:** [@LJ\_Medina](https://forum.ansible.com/u/LJ_Medina)\
**Replies:** 7\
**Last updated:** [October 25, 2018, 3:55am UTC](https://forum.ansible.com/t/get-ip-address-replace-first-three-octets/28836 "2018-10-25T03:55:29Z")

</div>

Hello, I'm trying to assign ILO IP addresses to a range of systems, using a different subnet than their host IP, just matching the fourth octet. For example, if their IP would be 10.10.10.10, I want their ILO IP to be …

---

## [Parsing and creating new variables from inventory hostgroup](https://forum.ansible.com/t/parsing-and-creating-new-variables-from-inventory-hostgroup/28854)

<div class="topic-metadata">

**Author:** [@Brent\_Weaver](https://forum.ansible.com/u/Brent_Weaver)\
**Replies:** 3\
**Last updated:** [October 24, 2018, 6:30pm UTC](https://forum.ansible.com/t/parsing-and-creating-new-variables-from-inventory-hostgroup/28854 "2018-10-24T18:30:21Z")

</div>

I have a hostgroup that have 4 hosts in it: Example: \[ { “shcdeployer”, “shcnode1”, “shcnode3”, “shcnode3” } \] I need to get two things actually A shcnode\* node picked out of the list, does not matter A string …

---

## [Changing http port for a host that ansible uses to connect to a host](https://forum.ansible.com/t/changing-http-port-for-a-host-that-ansible-uses-to-connect-to-a-host/28865)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [October 24, 2018, 6:23pm UTC](https://forum.ansible.com/t/changing-http-port-for-a-host-that-ansible-uses-to-connect-to-a-host/28865 "2018-10-24T18:23:13Z")

</div>

You're mixing a few things up here. 1. Ansible doesn't have anything to do with 'http'. The only thing it uses is SSH, which runs op port 22 by default. 2. If you want to run this on a different port, use the 'ansible…

---

## [Unable to parse ansible/contrib/inventory/ec2.py as an inventory source](https://forum.ansible.com/t/unable-to-parse-ansible-contrib-inventory-ec2-py-as-an-inventory-source/28848)

<div class="topic-metadata">

**Author:** [@heguimin36](https://forum.ansible.com/u/heguimin36)\
**Replies:** 11\
**Last updated:** [October 24, 2018, 6:17pm UTC](https://forum.ansible.com/t/unable-to-parse-ansible-contrib-inventory-ec2-py-as-an-inventory-source/28848 "2018-10-24T18:17:15Z")

</div>

When I run the following command in the directory ansible/contrib/inventory ansible -i ec2.py all -m ping and I got the following error: \[WARNING\]: \* Failed to parse /Users/hehe/Projects/python/ansible/contrib/invent…

---

## [Diffculty with registering the script output](https://forum.ansible.com/t/diffculty-with-registering-the-script-output/28856)

<div class="topic-metadata">

**Author:** [@itssitaram9](https://forum.ansible.com/u/itssitaram9)\
**Replies:** 2\
**Last updated:** [October 24, 2018, 1:30pm UTC](https://forum.ansible.com/t/diffculty-with-registering-the-script-output/28856 "2018-10-24T13:30:13Z")

</div>

I am trying to execute a shut down script and Shut down remote server upon successful execution of the script . I do not want to shutdown the server when the script fails. I did write the play book below, but it is thr…

---

## [how to pass ansible variables from Jenkins by  using parameters](https://forum.ansible.com/t/how-to-pass-ansible-variables-from-jenkins-by-using-parameters/28857)

<div class="topic-metadata">

**Author:** [@kumar\_kittu](https://forum.ansible.com/u/kumar_kittu)\
**Replies:** 2\
**Last updated:** [October 24, 2018, 9:55am UTC](https://forum.ansible.com/t/how-to-pass-ansible-variables-from-jenkins-by-using-parameters/28857 "2018-10-24T09:55:18Z")

</div>

Hello All, I have ansible-playbook which has variables defined and that playbook is executed successfully from jenkins by creating job. my query is : I need to pass ansible variables defined in playbook from jenkins ,…

---

## [Connection plugin with fwknop before ssh](https://forum.ansible.com/t/connection-plugin-with-fwknop-before-ssh/28859)

<div class="topic-metadata">

**Author:** [@Andre\_Rodier](https://forum.ansible.com/u/Andre_Rodier)\
**Replies:** 0\
**Last updated:** [October 24, 2018, 7:45am UTC](https://forum.ansible.com/t/connection-plugin-with-fwknop-before-ssh/28859 "2018-10-24T07:45:46Z")

</div>

Hello, I have quickly written an Ansible connection plugin, that ‘knocks’ the server with fwknop before using ssh connection. It is my first plugin, and perhaps it contains a lot of errors. However, if anyone is intere…

---

## [Complex host patterns](https://forum.ansible.com/t/complex-host-patterns/28849)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Servat](https://forum.ansible.com/u/Gonzalo_Servat)\
**Replies:** 8\
**Last updated:** [October 24, 2018, 1:27am UTC](https://forum.ansible.com/t/complex-host-patterns/28849 "2018-10-24T01:27:58Z")

</div>

Hi All When working with host patterns, is it possible to craft one that says “must be in group X and must be in either group Y, W and Z”? e.g. host must be in group “webserver” but it must also be in either group dc1,…

---

## [Could not match supplied host pattern issue](https://forum.ansible.com/t/could-not-match-supplied-host-pattern-issue/28840)

<div class="topic-metadata">

**Author:** [@Johar\_K\_Kwan](https://forum.ansible.com/u/Johar_K_Kwan)\
**Replies:** 3\
**Last updated:** [October 24, 2018, 1:06am UTC](https://forum.ansible.com/t/could-not-match-supplied-host-pattern-issue/28840 "2018-10-24T01:06:54Z")

</div>

Hi All, I have few Ansible tasks as follow: Provisioning VM using vmware (no issue) Adding new vm host into tower inventory (no issue) Install new package to new VM (Issue) My question is why Ansible can’t locate my …

---

## [Ansible Playbook fails with syntax error](https://forum.ansible.com/t/ansible-playbook-fails-with-syntax-error/28855)

<div class="topic-metadata">

**Author:** [@Tony\_Esposito](https://forum.ansible.com/u/Tony_Esposito)\
**Replies:** 0\
**Last updated:** [October 23, 2018, 9:08pm UTC](https://forum.ansible.com/t/ansible-playbook-fails-with-syntax-error/28855 "2018-10-23T21:08:32Z")

</div>

It was determined that this playbook that was failing was not even being used by Ansible. It was a ‘test’ playbook so I am going to ‘pass’ on even answering this one.

---

## [awx migration script](https://forum.ansible.com/t/awx-migration-script/28853)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 2\
**Last updated:** [October 23, 2018, 6:00pm UTC](https://forum.ansible.com/t/awx-migration-script/28853 "2018-10-23T18:00:43Z")

</div>

Hi, given we were stuck with a production setup on 1.8.7, we needed a way to upgrade without having all our users need to recreate a bunch of stuff like credentials, so i wrote a script that also migrates those, and as …

---

## [Error add host to host collection with uri module api rest operations with satellite](https://forum.ansible.com/t/error-add-host-to-host-collection-with-uri-module-api-rest-operations-with-satellite/28850)

<div class="topic-metadata">

**Author:** [@Alberto\_Jimenez\_Loza](https://forum.ansible.com/u/Alberto_Jimenez_Loza)\
**Replies:** 6\
**Last updated:** [October 23, 2018, 4:42pm UTC](https://forum.ansible.com/t/error-add-host-to-host-collection-with-uri-module-api-rest-operations-with-satellite/28850 "2018-10-23T16:42:49Z")

</div>

I’m working wit uri module with satellite. I do one playbook for create a new host\_collection and it works OK. name: CREATE HC uri: url: “https://xxxxxx/katello/api/host\_collections/” user: “{{user}}” password: “{…

---

## [Get Field with equal condition from json generated ansible 2.5.2 uri module](https://forum.ansible.com/t/get-field-with-equal-condition-from-json-generated-ansible-2-5-2-uri-module/28844)

<div class="topic-metadata">

**Author:** [@Alberto\_Jimenez\_Loza](https://forum.ansible.com/u/Alberto_Jimenez_Loza)\
**Replies:** 6\
**Last updated:** [October 23, 2018, 2:30pm UTC](https://forum.ansible.com/t/get-field-with-equal-condition-from-json-generated-ansible-2-5-2-uri-module/28844 "2018-10-23T14:30:08Z")

</div>

I need get a field into a json what has been generated wit uri module. This is my json that contains two hosts colections hc1 y hc2. I want to get the field id:693 of the host\_collection hc1. "created\_at":…

---

## [Is there a Playbook available for finding out CPU usage and Disk Utilization for Linux flavors](https://forum.ansible.com/t/is-there-a-playbook-available-for-finding-out-cpu-usage-and-disk-utilization-for-linux-flavors/28851)

<div class="topic-metadata">

**Author:** [@Vinu\_Vajravel](https://forum.ansible.com/u/Vinu_Vajravel)\
**Replies:** 3\
**Last updated:** [October 23, 2018, 1:32pm UTC](https://forum.ansible.com/t/is-there-a-playbook-available-for-finding-out-cpu-usage-and-disk-utilization-for-linux-flavors/28851 "2018-10-23T13:32:22Z")

</div>

Is there a Playbook available for finding out CPU usage and Disk Utilization for Linux flavors

---

## [Galaxy’s new quality scoring of roles - feedback requested](https://forum.ansible.com/t/galaxy-s-new-quality-scoring-of-roles-feedback-requested/28847)

<div class="topic-metadata">

**Author:** [@acrosby](https://forum.ansible.com/u/acrosby)\
**Replies:** 1\
**Last updated:** [October 23, 2018, 6:28am UTC](https://forum.ansible.com/t/galaxy-s-new-quality-scoring-of-roles-feedback-requested/28847 "2018-10-23T06:28:43Z")

</div>

Ansible Galaxy 3.1 will introduce quality scoring of roles - you can try this out now in the galaxy dev environment: https://galaxy-dev.ansible.com. We hope quality scores will provide another datapoint to help users com…

---

## [Ansible Vault - store credentials for all hosts in one vault file](https://forum.ansible.com/t/ansible-vault-store-credentials-for-all-hosts-in-one-vault-file/28841)

<div class="topic-metadata">

**Author:** [@Libor\_Burda](https://forum.ansible.com/u/Libor_Burda)\
**Replies:** 2\
**Last updated:** [October 23, 2018, 1:48am UTC](https://forum.ansible.com/t/ansible-vault-store-credentials-for-all-hosts-in-one-vault-file/28841 "2018-10-23T01:48:38Z")

</div>

Hello everyone. Is there any way how to store credentials in one Vault file, so that these credentials are applied for each host? For example, when I create group\_vars/all.yml and store creds here and then execute play…

---

## [tracking state between module calls](https://forum.ansible.com/t/tracking-state-between-module-calls/28845)

<div class="topic-metadata">

**Author:** [@Michael\_Johnson](https://forum.ansible.com/u/Michael_Johnson)\
**Replies:** 4\
**Last updated:** [October 22, 2018, 9:05pm UTC](https://forum.ansible.com/t/tracking-state-between-module-calls/28845 "2018-10-22T21:05:37Z")

</div>

Is there an “official” way to track state between module calls? I’ve come up with one option where I read a state file on each invocation, update the data and then write out the state file at the end, but it seems like t…

---

## [Galaxy’s new quality scoring of roles - feedback requested](https://forum.ansible.com/t/galaxy-s-new-quality-scoring-of-roles-feedback-requested/28846)

<div class="topic-metadata">

**Author:** [@acrosby](https://forum.ansible.com/u/acrosby)\
**Replies:** 0\
**Last updated:** [October 22, 2018, 6:23pm UTC](https://forum.ansible.com/t/galaxy-s-new-quality-scoring-of-roles-feedback-requested/28846 "2018-10-22T18:23:05Z")

</div>

Ansible Galaxy 3.1 will introduce quality scoring of roles - you can try this out now in the galaxy dev environment: https://galaxy-dev.ansible.com. We hope quality scores will provide another datapoint to help users com…

---

## [Ansible Playbook error - Dict object has no attribute.](https://forum.ansible.com/t/ansible-playbook-error-dict-object-has-no-attribute/28843)

<div class="topic-metadata">

**Author:** [@Kishore\_Ponniah](https://forum.ansible.com/u/Kishore_Ponniah)\
**Replies:** 8\
**Last updated:** [October 22, 2018, 6:04pm UTC](https://forum.ansible.com/t/ansible-playbook-error-dict-object-has-no-attribute/28843 "2018-10-22T18:04:18Z")

</div>

Hi, I am trying to create a Direct connect Gateway in AWS account using ansible. I have the main playbook and an account config yaml template. When I run the playbook I am getting an error fatal: \[infrastructure\]: FAIL…

---

## [Help needed Please ...](https://forum.ansible.com/t/help-needed-please/28839)

<div class="topic-metadata">

**Author:** [@Satesh\_S\_Kumar](https://forum.ansible.com/u/Satesh_S_Kumar)\
**Replies:** 2\
**Last updated:** [October 22, 2018, 5:57pm UTC](https://forum.ansible.com/t/help-needed-please/28839 "2018-10-22T17:57:30Z")

</div>

Hi, I am trying to install IIS and sub features via Ansible. It gives me the below error. I have Ansible 2.4. Please let me know if you got any pointers … ERROR! ‘win\_roles’ is not a valid attribute for a Play

---

## [Ansible mail module failing at sending mail](https://forum.ansible.com/t/ansible-mail-module-failing-at-sending-mail/28829)

<div class="topic-metadata">

**Author:** [@Umberto\_Manferdini1](https://forum.ansible.com/u/Umberto_Manferdini1)\
**Replies:** 7\
**Last updated:** [October 22, 2018, 12:06pm UTC](https://forum.ansible.com/t/ansible-mail-module-failing-at-sending-mail/28829 "2018-10-22T12:06:27Z")

</div>

Hello, Trying to use the mail module to send emails as last task of my playbook It fails saying fatal: \[r1 → localhost\]: FAILED! =\> {“changed”: false, “msg”: “Authentication to smtp.mail.yahoo.com:25 failed, please ch…

---

## [env lookup('env', '???') is there a way to list all the env variables?](https://forum.ansible.com/t/env-lookup-env-is-there-a-way-to-list-all-the-env-variables/28842)

<div class="topic-metadata">

**Author:** [@Louis\_Jen](https://forum.ansible.com/u/Louis_Jen)\
**Replies:** 6\
**Last updated:** [October 22, 2018, 11:48am UTC](https://forum.ansible.com/t/env-lookup-env-is-there-a-way-to-list-all-the-env-variables/28842 "2018-10-22T11:48:15Z")

</div>

Hi all, I thought if I put a command: “printenv | grep PWD” delegate\_to: localhost run\_once: ture into awx-task container playbook, I will get the env variable PWD value which is the current project path of the ans…

---

## [I would like to open a web browser with ansible](https://forum.ansible.com/t/i-would-like-to-open-a-web-browser-with-ansible/28835)

<div class="topic-metadata">

**Author:** [@Julien](https://forum.ansible.com/u/Julien)\
**Replies:** 1\
**Last updated:** [October 22, 2018, 9:16am UTC](https://forum.ansible.com/t/i-would-like-to-open-a-web-browser-with-ansible/28835 "2018-10-22T09:16:52Z")

</div>

Hello I’d like to open a web browser into my Windows session with ansible, i’ve tried with this playbook, but this has no effect on my session name: Starting nginx win\_shell: Start-Process -FilePath ‘D:\\Stream\\nginx-…

---

## [How to declare group variables for host inventory in Ansible Tower](https://forum.ansible.com/t/how-to-declare-group-variables-for-host-inventory-in-ansible-tower/28838)

<div class="topic-metadata">

**Author:** [@Saravanan](https://forum.ansible.com/u/Saravanan)\
**Replies:** 0\
**Last updated:** [October 21, 2018, 5:52pm UTC](https://forum.ansible.com/t/how-to-declare-group-variables-for-host-inventory-in-ansible-tower/28838 "2018-10-21T17:52:44Z")

</div>

Hi All, Need to declare few group variables in server Inventory of Ansible Tower and retrieve them in playbook. Currently my host inventory looks as below. server.ini \[mygroup\] host1 ansible\_host=host1 ansible\_user=us…

---

## [How to get a list of mount points from facts gathered by ansible on Linux host?](https://forum.ansible.com/t/how-to-get-a-list-of-mount-points-from-facts-gathered-by-ansible-on-linux-host/28837)

<div class="topic-metadata">

**Author:** [@shibhi](https://forum.ansible.com/u/shibhi)\
**Replies:** 1\
**Last updated:** [October 21, 2018, 9:00am UTC](https://forum.ansible.com/t/how-to-get-a-list-of-mount-points-from-facts-gathered-by-ansible-on-linux-host/28837 "2018-10-21T09:00:53Z")

</div>

Hi Team: I’m trying to get a list variable with mount points from Ansible facts. But, I’m getting the whole “ansible\_mounts” facts in JSON format. I have difficult time to retrieve only mount points in list format. Lik…

---

## [How to convert a dictionary to a list with key=value elements or to a string with key=value elements?](https://forum.ansible.com/t/how-to-convert-a-dictionary-to-a-list-with-key-value-elements-or-to-a-string-with-key-value-elements/28830)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Panteleyev](https://forum.ansible.com/u/Dmitriy_Panteleyev)\
**Replies:** 5\
**Last updated:** [October 20, 2018, 9:00pm UTC](https://forum.ansible.com/t/how-to-convert-a-dictionary-to-a-list-with-key-value-elements-or-to-a-string-with-key-value-elements/28830 "2018-10-20T21:00:27Z")

</div>

Given an arbitrary dictionary like: test: one: wan two: too three: tree How can I convert it to a list like: \` test: one=wan two=too thee=tree \` The end result that I need is actually a string of these list items…

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

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