# Archives

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

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

**Page:** 276

---

## [Ansible playbook running in windows](https://forum.ansible.com/t/ansible-playbook-running-in-windows/30778)

<div class="topic-metadata">

**Author:** [@saranyasridharan17](https://forum.ansible.com/u/saranyasridharan17)\
**Replies:** 0\
**Last updated:** [July 15, 2019, 6:16am UTC](https://forum.ansible.com/t/ansible-playbook-running-in-windows/30778 "2019-07-15T06:16:13Z")

</div>

Hi , I am trying to run the ansible playbook in the windows target. I am not sure which way to approach for that. Can anyone please help me with that ? should I go for ssh based run(with openssh enabled in windows) ? …

---

## [Modify/update existing resources with ansible?](https://forum.ansible.com/t/modify-update-existing-resources-with-ansible/30775)

<div class="topic-metadata">

**Author:** [@Angel\_Rengifo\_Cancin](https://forum.ansible.com/u/Angel_Rengifo_Cancin)\
**Replies:** 2\
**Last updated:** [July 14, 2019, 11:59pm UTC](https://forum.ansible.com/t/modify-update-existing-resources-with-ansible/30775 "2019-07-14T23:59:23Z")

</div>

Hello guys: I have some questions regarding existing resources management: can ansible change their attributes after creation? For instance, I wasn’t able to change the network settings for an existing VM on VMware. Al…

---

## [Is the "assemble" module documentation incorrect?](https://forum.ansible.com/t/is-the-assemble-module-documentation-incorrect/30777)

<div class="topic-metadata">

**Author:** [@Picante](https://forum.ansible.com/u/Picante)\
**Replies:** 1\
**Last updated:** [July 14, 2019, 10:46pm UTC](https://forum.ansible.com/t/is-the-assemble-module-documentation-incorrect/30777 "2019-07-14T22:46:52Z")

</div>

Hi, Please keep in mind I’m new to ansible. I tried to use the assemble module on a windows target box via WinRM. The following documentation indicates that this is support on windows. (“This module is also supported …

---

## [6.0.0: AWX docker install fails on "Failed to import the required Python library: docker" weirdness](https://forum.ansible.com/t/6-0-0-awx-docker-install-fails-on-failed-to-import-the-required-python-library-docker-weirdness/30776)

<div class="topic-metadata">

**Author:** [@The\_bear\_in\_Boulder](https://forum.ansible.com/u/The_bear_in_Boulder)\
**Replies:** 1\
**Last updated:** [July 14, 2019, 6:42pm UTC](https://forum.ansible.com/t/6-0-0-awx-docker-install-fails-on-failed-to-import-the-required-python-library-docker-weirdness/30776 "2019-07-14T18:42:09Z")

</div>

I can’t get 6.0.0 AWX docker installation to succeed due to ‘Failed to import the required Python library’. The odd thing is that I know with absolute certainty that it is present: roles/local\_docker/tasks/compose.yml \`…

---

## [Include tasks based on OS distribution](https://forum.ansible.com/t/include-tasks-based-on-os-distribution/30768)

<div class="topic-metadata">

**Author:** [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Replies:** 2\
**Last updated:** [July 13, 2019, 10:08am UTC](https://forum.ansible.com/t/include-tasks-based-on-os-distribution/30768 "2019-07-13T10:08:18Z")

</div>

Hi, I have some roles that are specific for some OS family and I’m using the include keyword to include a file when ansible\_os\_family matches what I want. The problem with this approach is that when is not the family I…

---

## [run the shell script interactively in ansible playbook](https://forum.ansible.com/t/run-the-shell-script-interactively-in-ansible-playbook/30774)

<div class="topic-metadata">

**Author:** [@Sunil\_Kathait](https://forum.ansible.com/u/Sunil_Kathait)\
**Replies:** 1\
**Last updated:** [July 13, 2019, 1:15am UTC](https://forum.ansible.com/t/run-the-shell-script-interactively-in-ansible-playbook/30774 "2019-07-13T01:15:46Z")

</div>

I can run the script with the command line argument on the linux server it works fine. for e.g.: ./install.sh -n -I the above command is able to install the script on the server. When I am trying to do via ansible (v…

---

## [Running ansible playbook in windows target](https://forum.ansible.com/t/running-ansible-playbook-in-windows-target/30766)

<div class="topic-metadata">

**Author:** [@saranyasridharan17](https://forum.ansible.com/u/saranyasridharan17)\
**Replies:** 1\
**Last updated:** [July 12, 2019, 7:38pm UTC](https://forum.ansible.com/t/running-ansible-playbook-in-windows-target/30766 "2019-07-12T19:38:17Z")

</div>

Hi , I have used ansible and deployed in the linux host , now I got a new requirement to deploy in windows host. I wanted to try using ssh method ( using openssh in windows) . I have set proper ssh connection and manual…

---

## [checking firewall form](https://forum.ansible.com/t/checking-firewall-form/30772)

<div class="topic-metadata">

**Author:** [@Annam\_Rafi1](https://forum.ansible.com/u/Annam_Rafi1)\
**Replies:** 2\
**Last updated:** [July 12, 2019, 6:04pm UTC](https://forum.ansible.com/t/checking-firewall-form/30772 "2019-07-12T18:04:59Z")

</div>

Hi, I want to check to see if the firewall is running, if its running I want to add the syslog port. If the firewall is not on, i would like to skip the step. I know i can use the when module but Im stumbling. Can you …

---

## [Ansible Mail Module Failing](https://forum.ansible.com/t/ansible-mail-module-failing/26909)

<div class="topic-metadata">

**Author:** [@Simon\_Hayes](https://forum.ansible.com/u/Simon_Hayes)\
**Replies:** 5\
**Last updated:** [July 12, 2019, 4:11pm UTC](https://forum.ansible.com/t/ansible-mail-module-failing/26909 "2019-07-12T16:11:47Z")

</div>

I’m running a simple playbook to report on server configurations which is formatted into an html file from a template. I use the mail module to attach the html file into the body of the mail as follows: - hosts: localho…

---

## [assert vs fail](https://forum.ansible.com/t/assert-vs-fail/30771)

<div class="topic-metadata">

**Author:** [@S\_C\_Rigler](https://forum.ansible.com/u/S_C_Rigler)\
**Replies:** 2\
**Last updated:** [July 12, 2019, 4:10pm UTC](https://forum.ansible.com/t/assert-vs-fail/30771 "2019-07-12T16:10:39Z")

</div>

Is there any advantage to using the assert module vs the fail module to bail out of a play if an expected condition isn’t met?

---

## [over riding the var defined in include var file is making all other variables undefined](https://forum.ansible.com/t/over-riding-the-var-defined-in-include-var-file-is-making-all-other-variables-undefined/30764)

<div class="topic-metadata">

**Author:** [@Shashank\_Dutt\_Jha](https://forum.ansible.com/u/Shashank_Dutt_Jha)\
**Replies:** 1\
**Last updated:** [July 12, 2019, 4:08pm UTC](https://forum.ansible.com/t/over-riding-the-var-defined-in-include-var-file-is-making-all-other-variables-undefined/30764 "2019-07-12T16:08:40Z")

</div>

I have included var file using var\_files: file It has a variable city. state among others Then I redefine the city variable in a json file and run the playbook --extra-vars “@a.json” Now when I access any variable …

---

## [Identifying master slave on cisco stack switches](https://forum.ansible.com/t/identifying-master-slave-on-cisco-stack-switches/30765)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 3\
**Last updated:** [July 12, 2019, 1:00pm UTC](https://forum.ansible.com/t/identifying-master-slave-on-cisco-stack-switches/30765 "2019-07-12T13:00:46Z")

</div>

Hi Team, I need to identify master slave on cisco stack switches 3850 in ansible to give some conditions. Any help appreciated. thanks

---

## [How to prepare ansible](https://forum.ansible.com/t/how-to-prepare-ansible/30769)

<div class="topic-metadata">

**Author:** [@ravi\_teja\_chandika](https://forum.ansible.com/u/ravi_teja_chandika)\
**Replies:** 1\
**Last updated:** [July 12, 2019, 12:43pm UTC](https://forum.ansible.com/t/how-to-prepare-ansible/30769 "2019-07-12T12:43:44Z")

</div>

I am interested learning ansible... Can anyone guide me how to start means what are the topics I have cover step by step..

---

## ["msg": "basic: the specified credentials were rejected by the server" - Please help](https://forum.ansible.com/t/msg-basic-the-specified-credentials-were-rejected-by-the-server-please-help/30762)

<div class="topic-metadata">

**Author:** [@Chris\_Jackson](https://forum.ansible.com/u/Chris_Jackson)\
**Replies:** 6\
**Last updated:** [July 12, 2019, 12:05pm UTC](https://forum.ansible.com/t/msg-basic-the-specified-credentials-were-rejected-by-the-server-please-help/30762 "2019-07-12T12:05:17Z")

</div>

Hi All, I am running a playbook (from AWX) against a Windows Server 2016 and it is failing with:- { “msg”: “basic: the specified credentials were rejected by the server”, “unreachable”: true, “changed”: false } I …

---

## [Ansible automation for windows server](https://forum.ansible.com/t/ansible-automation-for-windows-server/30767)

<div class="topic-metadata">

**Author:** [@sathiya\_vasagan1](https://forum.ansible.com/u/sathiya_vasagan1)\
**Replies:** 0\
**Last updated:** [July 12, 2019, 9:47am UTC](https://forum.ansible.com/t/ansible-automation-for-windows-server/30767 "2019-07-12T09:47:26Z")

</div>

we have to automate windows server desired configuration state verification checklist playbook. if anyboday have this type of sample playbook, please share. Thanks!!! Regards, Sathiya

---

## [Reuse one http connection for multiple tasks](https://forum.ansible.com/t/reuse-one-http-connection-for-multiple-tasks/30753)

<div class="topic-metadata">

**Author:** [@Alexandru\_Obretin](https://forum.ansible.com/u/Alexandru_Obretin)\
**Replies:** 1\
**Last updated:** [July 12, 2019, 9:26am UTC](https://forum.ansible.com/t/reuse-one-http-connection-for-multiple-tasks/30753 "2019-07-12T09:26:28Z")

</div>

Hello, I am working on a project that wants to provide ansible support for a solution that exposes a REST API. Over this API I designed an intermediate python layer to translate the yaml playbook into REST calls. In my…

---

## [Playbook to parse yaml file and get the output](https://forum.ansible.com/t/playbook-to-parse-yaml-file-and-get-the-output/30757)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 2\
**Last updated:** [July 12, 2019, 7:03am UTC](https://forum.ansible.com/t/playbook-to-parse-yaml-file-and-get-the-output/30757 "2019-07-12T07:03:27Z")

</div>

Hi, I have yaml as follows: deliveries: releases: latest\_Rel: aaa: file\_name: some.tar md5: xxxxxxxxxxxxxxx product\_name: aaa product\_number: aaa 902 8057 release\_candidate: Rel version: 25.1.1 bbb: file\_name:…

---

## [Unable to start nginx.service in sonar virtual box because of .PEM cert is not available.](https://forum.ansible.com/t/unable-to-start-nginx-service-in-sonar-virtual-box-because-of-pem-cert-is-not-available/30756)

<div class="topic-metadata">

**Author:** [@Dhanasekar\_Jaganatha](https://forum.ansible.com/u/Dhanasekar_Jaganatha)\
**Replies:** 2\
**Last updated:** [July 12, 2019, 3:56am UTC](https://forum.ansible.com/t/unable-to-start-nginx-service-in-sonar-virtual-box-because-of-pem-cert-is-not-available/30756 "2019-07-12T03:56:06Z")

</div>

SUMMARY I am new to ANSIBLE. I am building my automation system with Ansible. With this article as referece “https://www.redhat.com/en/blog/integrating-ansible-jenkins-cicd-process” and I have downloaded vagrant-alm-mas…

---

## [Issue with iosxr\_bgp module](https://forum.ansible.com/t/issue-with-iosxr-bgp-module/30735)

<div class="topic-metadata">

**Author:** [@Anurag\_Bhatia](https://forum.ansible.com/u/Anurag_Bhatia)\
**Replies:** 2\
**Last updated:** [July 12, 2019, 2:50am UTC](https://forum.ansible.com/t/issue-with-iosxr-bgp-module/30735 "2019-07-12T02:50:57Z")

</div>

Hello, Anyone using iosxr\_bgp? If yes, can you share a sample working playbook? I built one using example given here: https://docs.ansible.com/ansible/latest/modules/iosxr\_bgp\_module.html but it doesn’t work. My test …

---

## [stored passphrase for ssh key](https://forum.ansible.com/t/stored-passphrase-for-ssh-key/30759)

<div class="topic-metadata">

**Author:** [@Stephen\_Burke](https://forum.ansible.com/u/Stephen_Burke)\
**Replies:** 2\
**Last updated:** [July 11, 2019, 8:16pm UTC](https://forum.ansible.com/t/stored-passphrase-for-ssh-key/30759 "2019-07-11T20:16:33Z")

</div>

Does anyone know a way to store an ssh passphrase during a playbook run? All nodes have the same ssh key/passphrase. I just don’t want to type the same passphrase 100 times during the playbook run. Is there any way to do…

---

## [confusions with dynamic inventory and dynamic values passing](https://forum.ansible.com/t/confusions-with-dynamic-inventory-and-dynamic-values-passing/30761)

<div class="topic-metadata">

**Author:** [@Vijay\_Ravindran](https://forum.ansible.com/u/Vijay_Ravindran)\
**Replies:** 0\
**Last updated:** [July 11, 2019, 4:49pm UTC](https://forum.ansible.com/t/confusions-with-dynamic-inventory-and-dynamic-values-passing/30761 "2019-07-11T16:49:17Z")

</div>

HI Team Lot of confusions prevail over dynamic inventory which helps executed via dynamic\_inventory.py which generates list of hostnames where the playbook needs to run. But how to assign values to the variables used in…

---

## [Line in file](https://forum.ansible.com/t/line-in-file/30758)

<div class="topic-metadata">

**Author:** [@Jibsan\_Joel\_Rosa\_Toi](https://forum.ansible.com/u/Jibsan_Joel_Rosa_Toi)\
**Replies:** 3\
**Last updated:** [July 11, 2019, 3:22pm UTC](https://forum.ansible.com/t/line-in-file/30758 "2019-07-11T15:22:53Z")

</div>

Hello to everyone. I have a big problem. I need to add a line text to environment file on Ubuntu. Here is the file content: PATH=“/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games” …

---

## [AWX spaces](https://forum.ansible.com/t/awx-spaces/30750)

<div class="topic-metadata">

**Author:** [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Replies:** 2\
**Last updated:** [July 11, 2019, 2:29pm UTC](https://forum.ansible.com/t/awx-spaces/30750 "2019-07-11T14:29:01Z")

</div>

Hello Experts , Just an idea. Not sure how much feasible or relevant in Ansible AWX. Given multiple teams will be using single AWX instance in organization, it will be good to have a separate spaces for individual team…

---

## [accessing variable defined in a role from another role not working](https://forum.ansible.com/t/accessing-variable-defined-in-a-role-from-another-role-not-working/30751)

<div class="topic-metadata">

**Author:** [@Shashank\_Dutt\_Jha](https://forum.ansible.com/u/Shashank_Dutt_Jha)\
**Replies:** 4\
**Last updated:** [July 11, 2019, 2:23pm UTC](https://forum.ansible.com/t/accessing-variable-defined-in-a-role-from-another-role-not-working/30751 "2019-07-11T14:23:27Z")

</div>

I have defined a role : say A another role B which includes role A in role B when I try to use variables defined in A, I get var undefined error. I tried using public: yes when including role A. Still same issue. Thi…

---

## [Evaluation precedence in conditional expressions](https://forum.ansible.com/t/evaluation-precedence-in-conditional-expressions/30732)

<div class="topic-metadata">

**Author:** [@Lucio\_Guerchi](https://forum.ansible.com/u/Lucio_Guerchi)\
**Replies:** 2\
**Last updated:** [July 11, 2019, 1:35pm UTC](https://forum.ansible.com/t/evaluation-precedence-in-conditional-expressions/30732 "2019-07-11T13:35:58Z")

</div>

I am new to Ansible and have the following questions, if I have the following conditional, what is going to be parsed first, the filter or the not, were foo is a boolean variable True or False? when: not foo | bool Are…

---

## [Playbook Script](https://forum.ansible.com/t/playbook-script/30755)

<div class="topic-metadata">

**Author:** [@Ala\_Smeti](https://forum.ansible.com/u/Ala_Smeti)\
**Replies:** 0\
**Last updated:** [July 11, 2019, 1:14pm UTC](https://forum.ansible.com/t/playbook-script/30755 "2019-07-11T13:14:01Z")

</div>

I created an ansible playbook script to create a vm in ESXi Hypervisor 6.7 Now, I’m locking for a method to continue the installation process of the CentOS 6 automatically.

---

## [Accessing file content via ansible](https://forum.ansible.com/t/accessing-file-content-via-ansible/30745)

<div class="topic-metadata">

**Author:** [@Kunalsing\_Thakur](https://forum.ansible.com/u/Kunalsing_Thakur)\
**Replies:** 3\
**Last updated:** [July 11, 2019, 12:42pm UTC](https://forum.ansible.com/t/accessing-file-content-via-ansible/30745 "2019-07-11T12:42:55Z")

</div>

file.txt rpmname: version rpmname: version Playbook:- hosts: all gather\_facts: false tasks: name: store the value shell: cat /etc/ansible/playbooks/file.txt register: versions name: Ansible Dictionary variable…

---

## [Workflow limits](https://forum.ansible.com/t/workflow-limits/30752)

<div class="topic-metadata">

**Author:** [@Thomas\_Hikade](https://forum.ansible.com/u/Thomas_Hikade)\
**Replies:** 0\
**Last updated:** [July 11, 2019, 9:12am UTC](https://forum.ansible.com/t/workflow-limits/30752 "2019-07-11T09:12:26Z")

</div>

Hi all, I did see that a similar question has been raised way in the past, so I am re-stating it here to clarify on the current status: I currently use 2 jobs templates. Each job template uses playbook limits with prom…

---

## [Reset Postgres DB to default](https://forum.ansible.com/t/reset-postgres-db-to-default/30746)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 1\
**Last updated:** [July 11, 2019, 8:49am UTC](https://forum.ansible.com/t/reset-postgres-db-to-default/30746 "2019-07-11T08:49:18Z")

</div>

Is there a mechanism to reset the Postgres DB to the state straight after the installation of AWX? The use case is to do a ‘factory reset’ of AWX without deleting and reinstalling from scratch.

---

## [Can we Run Command in Jinja2 Template](https://forum.ansible.com/t/can-we-run-command-in-jinja2-template/30749)

<div class="topic-metadata">

**Author:** [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Replies:** 1\
**Last updated:** [July 10, 2019, 8:47pm UTC](https://forum.ansible.com/t/can-we-run-command-in-jinja2-template/30749 "2019-07-10T20:47:22Z")

</div>

Hi Team, I was curious can we run command in jinja2 template say example {{pwd}} === here pwd is a shell command.

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

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