# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=125

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

**Page:** 126

---

## [Can I specify ansible-password-vault-file in a playbook before running an include\_vars ?](https://forum.ansible.com/t/can-i-specify-ansible-password-vault-file-in-a-playbook-before-running-an-include-vars/32938)

<div class="topic-metadata">

**Author:** [@mahespth](https://forum.ansible.com/u/mahespth)\
**Replies:** 1\
**Last updated:** [May 15, 2020, 2:46pm UTC](https://forum.ansible.com/t/can-i-specify-ansible-password-vault-file-in-a-playbook-before-running-an-include-vars/32938 "2020-05-15T14:46:27Z")

</div>

Hi, I’m creating some playbooks that require some vaulted data and this is sourced dynamically. I am looking for a way to include the ansible password vault file before including this data, but without doing this on the…

---

## [fatch module](https://forum.ansible.com/t/fatch-module/32935)

<div class="topic-metadata">

**Author:** [@rakesh\_rathore](https://forum.ansible.com/u/rakesh_rathore)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 11:34am UTC](https://forum.ansible.com/t/fatch-module/32935 "2020-05-15T11:34:31Z")

</div>

Hi Team, Can anyone slove this for me please? Imagine there are many servers running in production setup and storing some data at a particular location on each server. The file name of each server is unique and follows…

---

## [Ansible for netwoking: Fortios BGP module, incremental configurations](https://forum.ansible.com/t/ansible-for-netwoking-fortios-bgp-module-incremental-configurations/32936)

<div class="topic-metadata">

**Author:** [@Luis\_Arizaga](https://forum.ansible.com/u/Luis_Arizaga)\
**Replies:** 1\
**Last updated:** [May 15, 2020, 9:17am UTC](https://forum.ansible.com/t/ansible-for-netwoking-fortios-bgp-module-incremental-configurations/32936 "2020-05-15T09:17:59Z")

</div>

Hi, I’m a network engineer. I want to use Ansible in order to provision some routers and firewalls in my company for diferent tasks/projects. I started testing with some Fortinet Firewalls we have. I encountered a probl…

---

## [The powershell shell family is incompatible with the sudo become plugin](https://forum.ansible.com/t/the-powershell-shell-family-is-incompatible-with-the-sudo-become-plugin/32823)

<div class="topic-metadata">

**Author:** [@Jenisha\_T](https://forum.ansible.com/u/Jenisha_T)\
**Replies:** 4\
**Last updated:** [May 15, 2020, 4:29am UTC](https://forum.ansible.com/t/the-powershell-shell-family-is-incompatible-with-the-sudo-become-plugin/32823 "2020-05-15T04:29:34Z")

</div>

Hi I m configuring windows host on windows 10 virtual machine. My control node is Redhat OS 8 virtual machine. This is for the developer testing setup. I get below error when I do $ansible -vvv winsvr -i /etc/ansible/h…

---

## [installing windows updates on windows hosts](https://forum.ansible.com/t/installing-windows-updates-on-windows-hosts/32928)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 9\
**Last updated:** [May 14, 2020, 10:40pm UTC](https://forum.ansible.com/t/installing-windows-updates-on-windows-hosts/32928 "2020-05-14T22:40:33Z")

</div>

---

## [Ansible shell command adding backslash](https://forum.ansible.com/t/ansible-shell-command-adding-backslash/32581)

<div class="topic-metadata">

**Author:** [@Mark\_T](https://forum.ansible.com/u/Mark_T)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 9:24pm UTC](https://forum.ansible.com/t/ansible-shell-command-adding-backslash/32581 "2020-05-14T21:24:27Z")

</div>

Hello, name: Determining Source Account DB Password shell: cat wp-config.php | grep DB\_PASSWORD | awk -F"\[‘’\]" ‘{print $4}’ register: wp\_dbpw\_source If the password contains a backslash, the output doubles the numbe…

---

## [Integrating vault setup as a global variable](https://forum.ansible.com/t/integrating-vault-setup-as-a-global-variable/32932)

<div class="topic-metadata">

**Author:** [@deepak\_upadhyay](https://forum.ansible.com/u/deepak_upadhyay)\
**Replies:** 3\
**Last updated:** [May 14, 2020, 9:19pm UTC](https://forum.ansible.com/t/integrating-vault-setup-as-a-global-variable/32932 "2020-05-14T21:19:40Z")

</div>

Hello, I am trying to use vault for which values are defined already (global variables) i want to use them in my automation.How i can do it. Please help. structure is like a: b: vault: url: user:

---

## [ssl: the specified credentials were rejected by the server](https://forum.ansible.com/t/ssl-the-specified-credentials-were-rejected-by-the-server/29386)

<div class="topic-metadata">

**Author:** [@Ratheessh\_AV](https://forum.ansible.com/u/Ratheessh_AV)\
**Replies:** 6\
**Last updated:** [May 14, 2020, 9:07pm UTC](https://forum.ansible.com/t/ssl-the-specified-credentials-were-rejected-by-the-server/29386 "2020-05-14T21:07:09Z")

</div>

Hi, I am trying to connect to a windows host using win\_ping module. Also enabled Basic and Allowencrypted True on windows hosts as well. But still I am getting the error "“ssl: the specified credentials were rejected by…

---

## [Can I override a collection's module using \`library\`?](https://forum.ansible.com/t/can-i-override-a-collections-module-using-library/32911)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 1\
**Last updated:** [May 14, 2020, 8:20pm UTC](https://forum.ansible.com/t/can-i-override-a-collections-module-using-library/32911 "2020-05-14T20:20:12Z")

</div>

Many modules in the google.cloud collection are in a sorry state. I would like to override some of them with local fixes. Before collections, I could specify library in my ansible.cfg and place a copy of the module in th…

---

## [Add dictionary item to an existing list item](https://forum.ansible.com/t/add-dictionary-item-to-an-existing-list-item/32934)

<div class="topic-metadata">

**Author:** [@finnje](https://forum.ansible.com/u/finnje)\
**Replies:** 0\
**Last updated:** [May 14, 2020, 7:17pm UTC](https://forum.ansible.com/t/add-dictionary-item-to-an-existing-list-item/32934 "2020-05-14T19:17:26Z")

</div>

I’d like to be able to add a dictionary item to a list item. For example: my\_list: first\_list\_item: color: blue country: us second\_list\_item: stuff: blah What I’m trying to do is add to a list item like adding “s…

---

## [escaping curly braces in lineinfile module](https://forum.ansible.com/t/escaping-curly-braces-in-lineinfile-module/32915)

<div class="topic-metadata">

**Author:** [@Laci](https://forum.ansible.com/u/Laci)\
**Replies:** 7\
**Last updated:** [May 14, 2020, 3:44pm UTC](https://forum.ansible.com/t/escaping-curly-braces-in-lineinfile-module/32915 "2020-05-14T15:44:27Z")

</div>

I am new in Ansible world. I spent some time solving this but got to the point when I need to ask: I have a file called jobs.inc and I need to add six lines with Ansible. Here is an example % cat jobs.inc Job { Name…

---

## [Passing bulk data from ansible uri module to service and gettings status code -1  error](https://forum.ansible.com/t/passing-bulk-data-from-ansible-uri-module-to-service-and-gettings-status-code-1-error/32571)

<div class="topic-metadata">

**Author:** [@Diyawary](https://forum.ansible.com/u/Diyawary)\
**Replies:** 5\
**Last updated:** [May 14, 2020, 3:42pm UTC](https://forum.ansible.com/t/passing-bulk-data-from-ansible-uri-module-to-service-and-gettings-status-code-1-error/32571 "2020-05-14T15:42:19Z")

</div>

I am sending some 4500 lines data from Ansible to snow table via uri module. however 4100 records updated to snow table rest of the data did not updated this job runs around 122 or 123 sec and throw below error. less amo…

---

## [Ansible unable to run command by becoming other user and using sudo](https://forum.ansible.com/t/ansible-unable-to-run-command-by-becoming-other-user-and-using-sudo/32925)

<div class="topic-metadata">

**Author:** [@Zayed\_Mahmud](https://forum.ansible.com/u/Zayed_Mahmud)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 3:29pm UTC](https://forum.ansible.com/t/ansible-unable-to-run-command-by-becoming-other-user-and-using-sudo/32925 "2020-05-14T15:29:42Z")

</div>

Hi all, I have a target server where I have a user, user1, who can become another privileged user, admin1, without password.and admin1 can run any command with sudo, like “sudo ls /root” → works. So from remote server …

---

## [Convert string to yaml path](https://forum.ansible.com/t/convert-string-to-yaml-path/32933)

<div class="topic-metadata">

**Author:** [@Dumast\_Axel](https://forum.ansible.com/u/Dumast_Axel)\
**Replies:** 2\
**Last updated:** [May 14, 2020, 3:15pm UTC](https://forum.ansible.com/t/convert-string-to-yaml-path/32933 "2020-05-14T15:15:56Z")

</div>

Hello, I search since 2 days but I don’t find any solution: I have 2 yaml files : Master.yml: values.yml: I try to catch hostname1 and hostname2’s list using command like msg"{{ firewall.port.{{ansible\_hostname…

---

## [how to dynamic update value in vars\_file](https://forum.ansible.com/t/how-to-dynamic-update-value-in-vars-file/32920)

<div class="topic-metadata">

**Author:** [@Eric\_Chang](https://forum.ansible.com/u/Eric_Chang)\
**Replies:** 6\
**Last updated:** [May 14, 2020, 1:30pm UTC](https://forum.ansible.com/t/how-to-dynamic-update-value-in-vars-file/32920 "2020-05-14T13:30:46Z")

</div>

I have a var file like \` nodes: name: rk12 location: tp-101 ma: own: name: rk14 location: tp-201 ma: p11023 own: p11023 name: rk15 location: tc-332 ma: own: p92032 \` and I want to update nodes.ma with some…

---

## [Create folder structure  on HDFS Storage](https://forum.ansible.com/t/create-folder-structure-on-hdfs-storage/32930)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 0\
**Last updated:** [May 14, 2020, 6:36am UTC](https://forum.ansible.com/t/create-folder-structure-on-hdfs-storage/32930 "2020-05-14T06:36:30Z")

</div>

Hi, I Have a challenge at work that I’m straggling to resolve for few days - Maybe ansible is not the tool for that ??? Requirements: Creating a folder structure on HDFS storage Detailed Requirements: There are 3 b…

---

## [Adding task output to a file in a loop](https://forum.ansible.com/t/adding-task-output-to-a-file-in-a-loop/32865)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 4\
**Last updated:** [May 13, 2020, 5:09pm UTC](https://forum.ansible.com/t/adding-task-output-to-a-file-in-a-loop/32865 "2020-05-13T17:09:04Z")

</div>

I have a shell script that I’m trying to convert to Ansible. It currently is similar to the following: for uid in {1000…6500} user = ipa user-find --uid=$uid --raw |grep uid: | awk ‘{print $2}’ echo “user,uid” \>\> uid.…

---

## [Forced --limit](https://forum.ansible.com/t/forced-limit/32867)

<div class="topic-metadata">

**Author:** [@Julien\_Seknazi](https://forum.ansible.com/u/Julien_Seknazi)\
**Replies:** 3\
**Last updated:** [May 13, 2020, 2:39pm UTC](https://forum.ansible.com/t/forced-limit/32867 "2020-05-13T14:39:12Z")

</div>

Hi! I hope everything it’s ok for you. I would like to know if it’s possible to use mandatory “–limit” when you run : “ansible-playbook site.yml --limit DEVICE\_1” I explain, if i don’t use --limit, my playbook will d…

---

## [loop control for with\_together](https://forum.ansible.com/t/loop-control-for-with-together/32910)

<div class="topic-metadata">

**Author:** [@Diyawary](https://forum.ansible.com/u/Diyawary)\
**Replies:** 4\
**Last updated:** [May 13, 2020, 9:10am UTC](https://forum.ansible.com/t/loop-control-for-with-together/32910 "2020-05-13T09:10:22Z")

</div>

Hi team, could you please help me how to give two loop\_vars for corresponding list for with\_together module my requirement is ,i am calling a role and where looping with\_togetjher include\_role: name: validatetcp\_por…

---

## [New Ansible release 2.9.9](https://forum.ansible.com/t/new-ansible-release-2-9-9/32919)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [May 12, 2020, 10:13pm UTC](https://forum.ansible.com/t/new-ansible-release-2-9-9/32919 "2020-05-12T22:13:04Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.9.9 is now available! How do you get it?

---

## [Shutting Down Windows with Ansible](https://forum.ansible.com/t/shutting-down-windows-with-ansible/32917)

<div class="topic-metadata">

**Author:** [@Jeremy\_Thompson](https://forum.ansible.com/u/Jeremy_Thompson)\
**Replies:** 2\
**Last updated:** [May 12, 2020, 10:00pm UTC](https://forum.ansible.com/t/shutting-down-windows-with-ansible/32917 "2020-05-12T22:00:56Z")

</div>

I’m simply wanting to create a playbook that will shutdown a windows computer. I’ve got my ansible server talking to my windows and can ping it, but my playbook gives the below error when trying to run. Any ideas? Playb…

---

## [how to start specific windows service with ansible?](https://forum.ansible.com/t/how-to-start-specific-windows-service-with-ansible/32914)

<div class="topic-metadata">

**Author:** [@vinod\_devops](https://forum.ansible.com/u/vinod_devops)\
**Replies:** 3\
**Last updated:** [May 12, 2020, 7:39pm UTC](https://forum.ansible.com/t/how-to-start-specific-windows-service-with-ansible/32914 "2020-05-12T19:39:44Z")

</div>

Thanks, vinod

---

## [New Ansible releases 2.9.8, 2.8.12, and 2.7.18](https://forum.ansible.com/t/new-ansible-releases-2-9-8-2-8-12-and-2-7-18/32913)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [May 12, 2020, 3:41pm UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-8-2-8-12-and-2-7-18/32913 "2020-05-12T15:41:04Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.9.8, 2.8.12, and 2.7.18 are now available! How do you get it?

---

## [Window patch module not working on 2.9 Ansible](https://forum.ansible.com/t/window-patch-module-not-working-on-2-9-ansible/32908)

<div class="topic-metadata">

**Author:** [@Amit\_Kumar](https://forum.ansible.com/u/Amit_Kumar)\
**Replies:** 3\
**Last updated:** [May 12, 2020, 9:03am UTC](https://forum.ansible.com/t/window-patch-module-not-working-on-2-9-ansible/32908 "2020-05-12T09:03:52Z")

</div>

Hi , I tried to installed the window patch with below yml but it’s not installing the found patch. It just search the patch and skipped that patch, kindly please suggest Where i am doing wrong. I have mention the Yml…

---

## [Unable to parse Ansible inventory file as an inventory source in Azure CLI](https://forum.ansible.com/t/unable-to-parse-ansible-inventory-file-as-an-inventory-source-in-azure-cli/32909)

<div class="topic-metadata">

**Author:** [@Render](https://forum.ansible.com/u/Render)\
**Replies:** 0\
**Last updated:** [May 12, 2020, 7:07am UTC](https://forum.ansible.com/t/unable-to-parse-ansible-inventory-file-as-an-inventory-source-in-azure-cli/32909 "2020-05-12T07:07:42Z")

</div>

Hi there, I am trying to manage Azure Vms using Ansible from Azure CLI. The first thing is to parse inventory file where the managed VMs are listed. I uploaded the inventory file “azure\_rm.yml” and checked it is there: …

---

## [Create user with ssh key, error deploying key](https://forum.ansible.com/t/create-user-with-ssh-key-error-deploying-key/32879)

<div class="topic-metadata">

**Author:** [@Joe\_G2](https://forum.ansible.com/u/Joe_G2)\
**Replies:** 9\
**Last updated:** [May 11, 2020, 11:08pm UTC](https://forum.ansible.com/t/create-user-with-ssh-key-error-deploying-key/32879 "2020-05-11T23:08:49Z")

</div>

Need help with the error I’m getting trying to create users with ssh keys. It creates the user fine but when it comes time to deploy the ssh key it fails. I’ve tried this using a couple different playbooks and both simil…

---

## [Ansible can't access my network devices. Getting :    FAILED! =\> {"changed": false, "msg": "Connection type ssh is not valid for this module"}](https://forum.ansible.com/t/ansible-cant-access-my-network-devices-getting-failed-changed-false-msg-connection-type-ssh-is-not-valid-for-this-module/31657)

<div class="topic-metadata">

**Author:** [@Palmer](https://forum.ansible.com/u/Palmer)\
**Replies:** 9\
**Last updated:** [May 11, 2020, 8:53pm UTC](https://forum.ansible.com/t/ansible-cant-access-my-network-devices-getting-failed-changed-false-msg-connection-type-ssh-is-not-valid-for-this-module/31657 "2020-05-11T20:53:30Z")

</div>

Hi, I’m new to Ansible and trying to write my first playbook. But i keep getting an error: fatal: \[RTR1\]: FAILED! =\> {“changed”: false, “msg”: “Connection type ssh is not valid for this module”} I’m suspecting Ansible…

---

## [Problem using when condition for empty variable](https://forum.ansible.com/t/problem-using-when-condition-for-empty-variable/32871)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 7\
**Last updated:** [May 11, 2020, 8:50pm UTC](https://forum.ansible.com/t/problem-using-when-condition-for-empty-variable/32871 "2020-05-11T20:50:48Z")

</div>

i have a variable (domain\_name) located on external YML file, I wish to run a task in case the variable is empty. From some reason, it is always skipping no matter if i have a value or not External Yaml domain\_name: …

---

## [If unreachable - stop giving Failed out and move to next host](https://forum.ansible.com/t/if-unreachable-stop-giving-failed-out-and-move-to-next-host/32883)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 8\
**Last updated:** [May 11, 2020, 7:53pm UTC](https://forum.ansible.com/t/if-unreachable-stop-giving-failed-out-and-move-to-next-host/32883 "2020-05-11T19:53:41Z")

</div>

Hi, Is it possible for the host that if it’s unreachable - stop giving Failed output and move to the next task. As of now, it just shows the output fails.

---

## [Ansible is ignoring my group vars, hoping I'm doing something obviously wrong...](https://forum.ansible.com/t/ansible-is-ignoring-my-group-vars-hoping-im-doing-something-obviously-wrong/32898)

<div class="topic-metadata">

**Author:** [@David\_Sudia](https://forum.ansible.com/u/David_Sudia)\
**Replies:** 4\
**Last updated:** [May 11, 2020, 5:17pm UTC](https://forum.ansible.com/t/ansible-is-ignoring-my-group-vars-hoping-im-doing-something-obviously-wrong/32898 "2020-05-11T17:17:32Z")

</div>

Here is my directory structure: \` dba.yml (a playbook) inventory/ union.gcp.yml (a dynamic gcp inventory) group\_vars/ all/ vars.yml vault.yml dba/ vars.yml roles/ someroleshere/ \` The command I’m running is …

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=124)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=126)
