# Latest

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

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

**Page:** 504

---

## [Filter specific string from file content and it needs to be looped into mail module](https://forum.ansible.com/t/filter-specific-string-from-file-content-and-it-needs-to-be-looped-into-mail-module/29103)

<div class="topic-metadata">

**Author:** [@Pandu\_jh](https://forum.ansible.com/u/Pandu_jh)\
**Replies:** 0\
**Last updated:** [November 23, 2018, 12:27pm UTC](https://forum.ansible.com/t/filter-specific-string-from-file-content-and-it-needs-to-be-looped-into-mail-module/29103 "2018-11-23T12:27:10Z")

</div>

I have multiple files in a path and it contains mail id of the users. I need to loop the file content using with\_items and filter users ID from the file content. That ID’s should be passed into mail module, mail needs …

---

## [add string to end of line ansible](https://forum.ansible.com/t/add-string-to-end-of-line-ansible/29102)

<div class="topic-metadata">

**Author:** [@Dylan\_Osef](https://forum.ansible.com/u/Dylan_Osef)\
**Replies:** 0\
**Last updated:** [November 23, 2018, 12:21pm UTC](https://forum.ansible.com/t/add-string-to-end-of-line-ansible/29102 "2018-11-23T12:21:02Z")

</div>

I want to create a role to do a dynamic update of my Nagios configuration when I create a new VM. So to do that, i already created a role which add a host definition at the end of my servers.cfg Nagios file, it looks li…

---

## [win\_domain\_group to append new member groups](https://forum.ansible.com/t/win-domain-group-to-append-new-member-groups/29017)

<div class="topic-metadata">

**Author:** [@Raj1](https://forum.ansible.com/u/Raj1)\
**Replies:** 1\
**Last updated:** [November 23, 2018, 11:23am UTC](https://forum.ansible.com/t/win-domain-group-to-append-new-member-groups/29017 "2018-11-23T11:23:25Z")

</div>

Hello All, I’m using the ‘win\_domain\_group module’ in ansible 2.6 to add a newly created AD group (new\_grp) to an existing AD group ( my\_admins). It works, but instead of appending “new\_grp” as a member of “my\_admins” i…

---

## [AD integration - MemberDNGroupType is invalid](https://forum.ansible.com/t/ad-integration-memberdngrouptype-is-invalid/29100)

<div class="topic-metadata">

**Author:** [@Sam2](https://forum.ansible.com/u/Sam2)\
**Replies:** 2\
**Last updated:** [November 23, 2018, 10:41am UTC](https://forum.ansible.com/t/ad-integration-memberdngrouptype-is-invalid/29100 "2018-11-23T10:41:38Z")

</div>

Hello eveyone, I am trying to configure AD for AWX authentication, however I am getting below error: \` 2018-11-22 10:50:10,721 WARNING awx.conf.settings The current value “‘MemberDNGroupType’” for setting “AUTH\_LDAP\_G…

---

## [how to get value from yaml file ?](https://forum.ansible.com/t/how-to-get-value-from-yaml-file/29097)

<div class="topic-metadata">

**Author:** [@Eric\_Chang](https://forum.ansible.com/u/Eric_Chang)\
**Replies:** 3\
**Last updated:** [November 23, 2018, 6:20am UTC](https://forum.ansible.com/t/how-to-get-value-from-yaml-file/29097 "2018-11-23T06:20:35Z")

</div>

I want to run a playbook to create an individual folder for users in different groups and I already create a teams.yml file like below { “chinese\_name”: “\\u8ca1\\u52d9\\u6703\\u8a08\\u8655”, “description”: “\\u8ca1\\…

---

## [Passing One Item Through Entire Playbook Instead of All Items](https://forum.ansible.com/t/passing-one-item-through-entire-playbook-instead-of-all-items/29082)

<div class="topic-metadata">

**Author:** [@acharyatejaswi25](https://forum.ansible.com/u/acharyatejaswi25)\
**Replies:** 1\
**Last updated:** [November 23, 2018, 6:03am UTC](https://forum.ansible.com/t/passing-one-item-through-entire-playbook-instead-of-all-items/29082 "2018-11-23T06:03:44Z")

</div>

Hi, I want to pass only one item from a list of variables throughout the entire playbook. For Example, I have six action tasks within the playbook and from the first action task output data using jinja2 template define…

---

## [Ansible and BMC Remedy](https://forum.ansible.com/t/ansible-and-bmc-remedy/24718)

<div class="topic-metadata">

**Author:** [@Timothy\_Mobley](https://forum.ansible.com/u/Timothy_Mobley)\
**Replies:** 1\
**Last updated:** [November 23, 2018, 3:57am UTC](https://forum.ansible.com/t/ansible-and-bmc-remedy/24718 "2018-11-23T03:57:50Z")

</div>

I use BMC Remedy for ITSM, but would like to see about the possibility of integrating Ansible in Remedy to automate configuration. I had read this article which mentioned this has been done (as well as integration with H…

---

## [any\_errors\_fatal is not working as expected with block/rescue](https://forum.ansible.com/t/any-errors-fatal-is-not-working-as-expected-with-block-rescue/29098)

<div class="topic-metadata">

**Author:** [@karim\_okasha](https://forum.ansible.com/u/karim_okasha)\
**Replies:** 0\
**Last updated:** [November 22, 2018, 7:21pm UTC](https://forum.ansible.com/t/any-errors-fatal-is-not-working-as-expected-with-block-rescue/29098 "2018-11-22T19:21:56Z")

</div>

the option “any\_errors\_fatal” on a block level should (if a single node fails) have all nodes to fail and then execute “rescue” in all nodes. However, as per my testing I can see that that the rescue block is only execu…

---

## [My Newmodule pull request is idle](https://forum.ansible.com/t/my-newmodule-pull-request-is-idle/29045)

<div class="topic-metadata">

**Author:** [@Rajeev\_Arakkal](https://forum.ansible.com/u/Rajeev_Arakkal)\
**Replies:** 4\
**Last updated:** [November 22, 2018, 11:39am UTC](https://forum.ansible.com/t/my-newmodule-pull-request-is-idle/29045 "2018-11-22T11:39:21Z")

</div>

https://github.com/ansible/ansible/pull/46675 It will be great if I get some guidence on what next on how to my module reviewed. “bot\_status” responding the its “waiting\_on: maintainer.” With Regards Rajeev

---

## [Curl Command Equivalent in Ansible](https://forum.ansible.com/t/curl-command-equivalent-in-ansible/29092)

<div class="topic-metadata">

**Author:** [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Replies:** 3\
**Last updated:** [November 22, 2018, 10:19am UTC](https://forum.ansible.com/t/curl-command-equivalent-in-ansible/29092 "2018-11-22T10:19:33Z")

</div>

Dear Team, I am trying to use uri module in ansible, can anybody help me with that. Actual Command: curl -XPUT --insecure -u admin:admin “https://127.0.0.1:9640/\*/\_settings” -H ‘Content-Type: application/json’ -d ‘{ “…

---

## [Securing Host Sensitive Data in Ansible Vault & then later to HashiCorp vault](https://forum.ansible.com/t/securing-host-sensitive-data-in-ansible-vault-then-later-to-hashicorp-vault/29093)

<div class="topic-metadata">

**Author:** [@gaurav\_naithani](https://forum.ansible.com/u/gaurav_naithani)\
**Replies:** 0\
**Last updated:** [November 22, 2018, 8:14am UTC](https://forum.ansible.com/t/securing-host-sensitive-data-in-ansible-vault-then-later-to-hashicorp-vault/29093 "2018-11-22T08:14:29Z")

</div>

I am doing Network Automation where we have different flavour of devices like Netscaler, Cisco, Juniper, Fortigate etc. This is DevOps at its best where we will put host details like IP’s, user name and password into th…

---

## [Multiple Loop Vars Problem](https://forum.ansible.com/t/multiple-loop-vars-problem/29091)

<div class="topic-metadata">

**Author:** [@acharyatejaswi25](https://forum.ansible.com/u/acharyatejaswi25)\
**Replies:** 3\
**Last updated:** [November 21, 2018, 8:15pm UTC](https://forum.ansible.com/t/multiple-loop-vars-problem/29091 "2018-11-21T20:15:48Z")

</div>

Hi, I am trying to pass each item from a list using “with\_items” and trying to control it using “loop\_control” & “loop\_vars”.But when I have defined another “loop\_control” & “loop\_vars” along with “with\_items”.The playb…

---

## [Nested loop with second loop depending on first item](https://forum.ansible.com/t/nested-loop-with-second-loop-depending-on-first-item/14124)

<div class="topic-metadata">

**Author:** [@Guillaume\_Subiron](https://forum.ansible.com/u/Guillaume_Subiron)\
**Replies:** 11\
**Last updated:** [November 21, 2018, 6:47pm UTC](https://forum.ansible.com/t/nested-loop-with-second-loop-depending-on-first-item/14124 "2018-11-21T18:47:33Z")

</div>

Hi, I'm trying to do a special kind of nesting loop, using the item of the first loop in the second loop: - name: Prepare OSDs shell: ceph-deploy osd prepare {{ item\[0\] }}:{{ item\[1\] }} with\_nested: - group…

---

## [vault variable is not decrypted when using ansible\_vault](https://forum.ansible.com/t/vault-variable-is-not-decrypted-when-using-ansible-vault/29076)

<div class="topic-metadata">

**Author:** [@Sam2](https://forum.ansible.com/u/Sam2)\
**Replies:** 6\
**Last updated:** [November 21, 2018, 5:51pm UTC](https://forum.ansible.com/t/vault-variable-is-not-decrypted-when-using-ansible-vault/29076 "2018-11-21T17:51:37Z")

</div>

Hello Everyone, In my case I am trying to pass my password to a command, thus I am using vault encrypt\_string, I followed the steps as in: 1- I have vault credential with same Vault ID I used to encrypt my password 2…

---

## [Understanding the script module](https://forum.ansible.com/t/understanding-the-script-module/29090)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 4\
**Last updated:** [November 21, 2018, 4:11pm UTC](https://forum.ansible.com/t/understanding-the-script-module/29090 "2018-11-21T16:11:17Z")

</div>

Hello, all. We have an occasional need to update a particular piece of a core business application across a number of Windows servers. The process involves a number of steps, most done via the application UI. It’s tedio…

---

## [A task is running on a host when it is not meant to](https://forum.ansible.com/t/a-task-is-running-on-a-host-when-it-is-not-meant-to/29089)

<div class="topic-metadata">

**Author:** [@JS11](https://forum.ansible.com/u/JS11)\
**Replies:** 2\
**Last updated:** [November 21, 2018, 3:28pm UTC](https://forum.ansible.com/t/a-task-is-running-on-a-host-when-it-is-not-meant-to/29089 "2018-11-21T15:28:30Z")

</div>

Hello everyone! I have a task defined below, that only needs to run on the hosts that are within the bastion-hosts group. However, it is also running on hosts that are not in the group bastion-hosts. \` name: Fetch us…

---

## [Ansible ssh fails to connect to host via ssh. Permission denied - Raw ssh works](https://forum.ansible.com/t/ansible-ssh-fails-to-connect-to-host-via-ssh-permission-denied-raw-ssh-works/28746)

<div class="topic-metadata">

**Author:** [@Fabio\_Gomes\_Sakiyama](https://forum.ansible.com/u/Fabio_Gomes_Sakiyama)\
**Replies:** 11\
**Last updated:** [November 21, 2018, 8:07am UTC](https://forum.ansible.com/t/ansible-ssh-fails-to-connect-to-host-via-ssh-permission-denied-raw-ssh-works/28746 "2018-11-21T08:07:24Z")

</div>

Hello guys, I’m trying to use the ansible\_authorized keys to create VMs (with packer and terraform), adding my workspace key to VMs authorized keys. I think it worked because if I execute ''ssh root@myVM", it connects …

---

## [Ansible 2.6.3 error : Protocol error, doesn't start with scp! Shared connection to netironmlx closed.](https://forum.ansible.com/t/ansible-2-6-3-error-protocol-error-doesnt-start-with-scp-shared-connection-to-netironmlx-closed/29087)

<div class="topic-metadata">

**Author:** [@Carlos\_Alfaro](https://forum.ansible.com/u/Carlos_Alfaro)\
**Replies:** 0\
**Last updated:** [November 20, 2018, 11:48pm UTC](https://forum.ansible.com/t/ansible-2-6-3-error-protocol-error-doesnt-start-with-scp-shared-connection-to-netironmlx-closed/29087 "2018-11-20T23:48:55Z")

</div>

Hello team I’m in new with ansible can someone help me,Trying to run a raw module command on the Brocade MLX-4 chassis. Thank you.

---

## [ANSIBLE PAUSE MODULE](https://forum.ansible.com/t/ansible-pause-module/29080)

<div class="topic-metadata">

**Author:** [@fahad.riaz1718](https://forum.ansible.com/u/fahad.riaz1718)\
**Replies:** 1\
**Last updated:** [November 20, 2018, 8:10pm UTC](https://forum.ansible.com/t/ansible-pause-module/29080 "2018-11-20T20:10:38Z")

</div>

I have some Ansible tasks that perform unfortunately long operations and then pauses the playbook for 15 minutes before performing remainder of the tasks. when i run the following playbook, I am not sure if the Playbook…

---

## [nxos\_config save\_when: modified](https://forum.ansible.com/t/nxos-config-save-when-modified/29084)

<div class="topic-metadata">

**Author:** [@Tim\_Daigle](https://forum.ansible.com/u/Tim_Daigle)\
**Replies:** 0\
**Last updated:** [November 20, 2018, 7:25pm UTC](https://forum.ansible.com/t/nxos-config-save-when-modified/29084 "2018-11-20T19:25:49Z")

</div>

howdy all, I have a problem with save\_when: modified on nx-os. It seems like this is not working idempotently on Cisco Nexus devices N5k, N6k and fails on N7k (with a timeout), but seemingly works for N9k. The module is …

---

## [Any Tool to write ansible because to many syntax issue are getting in terminal.?](https://forum.ansible.com/t/any-tool-to-write-ansible-because-to-many-syntax-issue-are-getting-in-terminal/29071)

<div class="topic-metadata">

**Author:** [@Linux\_Tech](https://forum.ansible.com/u/Linux_Tech)\
**Replies:** 2\
**Last updated:** [November 20, 2018, 5:34pm UTC](https://forum.ansible.com/t/any-tool-to-write-ansible-because-to-many-syntax-issue-are-getting-in-terminal/29071 "2018-11-20T17:34:01Z")

</div>

when ever i try to write something in ansible yml file it always show me syntax error.

---

## [Encrypting Ansible Playbook](https://forum.ansible.com/t/encrypting-ansible-playbook/29075)

<div class="topic-metadata">

**Author:** [@Sandeep\_Kandhway](https://forum.ansible.com/u/Sandeep_Kandhway)\
**Replies:** 5\
**Last updated:** [November 20, 2018, 4:36pm UTC](https://forum.ansible.com/t/encrypting-ansible-playbook/29075 "2018-11-20T16:36:14Z")

</div>

Hi Experts, I have prepared an Ansible Playbook. However I want to encrypt the plabook in such a way that the end user to whom I’ll be providing the playbook will have only the privilege to run the playbook and not to v…

---

## [Rescue all hosts if one host fails](https://forum.ansible.com/t/rescue-all-hosts-if-one-host-fails/26062)

<div class="topic-metadata">

**Author:** [@Aaron\_Falk](https://forum.ansible.com/u/Aaron_Falk)\
**Replies:** 3\
**Last updated:** [November 20, 2018, 2:29pm UTC](https://forum.ansible.com/t/rescue-all-hosts-if-one-host-fails/26062 "2018-11-20T14:29:14Z")

</div>

There is no possibility to run the rescue part for all hosts if one host fails. I’m working on my deployment for a website. I want to deploy the site to multiple hosts. If something fails for one host than all hosts shou…

---

## [using ec2.py in AWS dynamic envionment](https://forum.ansible.com/t/using-ec2-py-in-aws-dynamic-envionment/29077)

<div class="topic-metadata">

**Author:** [@Sergey\_Arlashin](https://forum.ansible.com/u/Sergey_Arlashin)\
**Replies:** 0\
**Last updated:** [November 20, 2018, 2:04pm UTC](https://forum.ansible.com/t/using-ec2-py-in-aws-dynamic-envionment/29077 "2018-11-20T14:04:09Z")

</div>

Hi! We have an EC2 autoscaling group in AWS environment. We'd like to execute shell scripts on EC2 instances launched within this ASG with Ansible. For that I'm using ec2.py script. Each instance in this ASG has tag "…

---

## [How to execute a SQL Script ( MS SQL 2014 SP2 ) by Ansible](https://forum.ansible.com/t/how-to-execute-a-sql-script-ms-sql-2014-sp2-by-ansible/29072)

<div class="topic-metadata">

**Author:** [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Replies:** 2\
**Last updated:** [November 20, 2018, 11:58am UTC](https://forum.ansible.com/t/how-to-execute-a-sql-script-ms-sql-2014-sp2-by-ansible/29072 "2018-11-20T11:58:14Z")

</div>

Hello Guys, I have copied a script on MS SQL server on c:\\temp\\always-on.sql I’m wondering how to have it executed by Ansible, win\_shell module? or is there any specialized module for MSSQL for Ansible? Kindly assist …

---

## [Ansible Inventory and http\_proxy environment variables](https://forum.ansible.com/t/ansible-inventory-and-http-proxy-environment-variables/29067)

<div class="topic-metadata">

**Author:** [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Replies:** 3\
**Last updated:** [November 20, 2018, 9:54am UTC](https://forum.ansible.com/t/ansible-inventory-and-http-proxy-environment-variables/29067 "2018-11-20T09:54:02Z")

</div>

Hi, I have more then one DC, one with proxy and the other with no proxy. Almost all my servers are on the DC that has proxy. Can I set something like (taken from ansible documentation): --- # file: group\_vars/boston …

---

## [Issue with local\_action copy content](https://forum.ansible.com/t/issue-with-local-action-copy-content/29074)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [November 20, 2018, 8:15am UTC](https://forum.ansible.com/t/issue-with-local-action-copy-content/29074 "2018-11-20T08:15:35Z")

</div>

register: is indentation to little, you need to move it two spaces to the right so is align with name: and shell:

---

## [Guidance on provisioning 2 node GKE cluster on Google Cloud using Ansible](https://forum.ansible.com/t/guidance-on-provisioning-2-node-gke-cluster-on-google-cloud-using-ansible/29073)

<div class="topic-metadata">

**Author:** [@somali.batra](https://forum.ansible.com/u/somali.batra)\
**Replies:** 0\
**Last updated:** [November 20, 2018, 5:12am UTC](https://forum.ansible.com/t/guidance-on-provisioning-2-node-gke-cluster-on-google-cloud-using-ansible/29073 "2018-11-20T05:12:27Z")

</div>

Hi, I need to automate the provisioning of 2 node GKE cluster using Ansible. Appreciate, if someone can direct me to a tutorial or any kind of guidance in this regard. Thank you very much! Regards, Somali

---

## [{"changed": false, "msg": "AnsibleUndefinedVariable:  'ansible.vars.hostvars.HostVarsVars object' has no attribute  'ansible\_default\_ipv4'"}](https://forum.ansible.com/t/changed-false-msg-ansibleundefinedvariable-ansible-vars-hostvars-hostvarsvars-object-has-no-attribute-ansible-default-ipv4/28937)

<div class="topic-metadata">

**Author:** [@user106](https://forum.ansible.com/u/user106)\
**Replies:** 30\
**Last updated:** [November 20, 2018, 1:24am UTC](https://forum.ansible.com/t/changed-false-msg-ansibleundefinedvariable-ansible-vars-hostvars-hostvarsvars-object-has-no-attribute-ansible-default-ipv4/28937 "2018-11-20T01:24:57Z")

</div>

Hey All, Receiving the following from Ansible 2.7 and not sure if I should be predefining a variable and pointing to this fact first or perhaps this is related to something else? (Relatively new to Ansible) fatal: \[…

---

## [Ansible report](https://forum.ansible.com/t/ansible-report/29070)

<div class="topic-metadata">

**Author:** [@Alfredo\_De\_Luca](https://forum.ansible.com/u/Alfredo_De_Luca)\
**Replies:** 4\
**Last updated:** [November 19, 2018, 11:18pm UTC](https://forum.ansible.com/t/ansible-report/29070 "2018-11-19T23:18:50Z")

</div>

Hi all. We run ansible in about 100 VM through Openstack and in the near future we will implement ansible pull or run ansible from a central workstation to all those nodes. I wonder if there is a sort of report (possib…

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

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