# Ansible Project

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

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

**Page:** 180

---

## [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…

---

## [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” …

---

## [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…

---

## [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.

---

## [Ansible ssh connection issue](https://forum.ansible.com/t/ansible-ssh-connection-issue/30748)

<div class="topic-metadata">

**Author:** [@Jim\_Griffiths](https://forum.ansible.com/u/Jim_Griffiths)\
**Replies:** 1\
**Last updated:** [July 10, 2019, 8:26pm UTC](https://forum.ansible.com/t/ansible-ssh-connection-issue/30748 "2019-07-10T20:26:37Z")

</div>

Hi All Ansible is not able to connect to certain servers in my environment. Setting up ssh keys is not really an option because I do not have write access. Even if I did, there are 1300 servers. :slight\_smile: Please …

---

## [How are your developers managing individual vaults for a given project outside of repository?](https://forum.ansible.com/t/how-are-your-developers-managing-individual-vaults-for-a-given-project-outside-of-repository/30739)

<div class="topic-metadata">

**Author:** [@Andrew\_Feller](https://forum.ansible.com/u/Andrew_Feller)\
**Replies:** 0\
**Last updated:** [July 9, 2019, 8:08pm UTC](https://forum.ansible.com/t/how-are-your-developers-managing-individual-vaults-for-a-given-project-outside-of-repository/30739 "2019-07-09T20:08:19Z")

</div>

I see plenty of commentary on how Ansible vaults can be organized by inventories, however I haven’t heard how developer-specific vaults work for a given project as I wouldn’t want those checked in to SCM not to mention s…

---

## [Ansible NTP Install/Config](https://forum.ansible.com/t/ansible-ntp-install-config/30736)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 5\
**Last updated:** [July 9, 2019, 7:50pm UTC](https://forum.ansible.com/t/ansible-ntp-install-config/30736 "2019-07-09T19:50:08Z")

</div>

I am new to Ansible! I’m working on an NTP Install/Configure Project. I have a main.yaml file, a ntp.yaml playbook and 4 tasks (debian-ntp.yaml, redhat-ntp.yaml, sles-ntp.yaml, ubuntu-ntp.yaml). I can’t seem to get this…

---

## [using different remote\_user until success](https://forum.ansible.com/t/using-different-remote-user-until-success/30709)

<div class="topic-metadata">

**Author:** [@william.dossett](https://forum.ansible.com/u/william.dossett)\
**Replies:** 8\
**Last updated:** [July 9, 2019, 7:43pm UTC](https://forum.ansible.com/t/using-different-remote-user-until-success/30709 "2019-07-09T19:43:38Z")

</div>

I’ve been struggling with this and googling all morning and getting nowhere fast. I am using aws dynamic inventory python script to get me an inventory of instances that I am going to make some changes to. I need to do…

---

## [What to include in terminal\_stdout\_re when developing a terminal plugin](https://forum.ansible.com/t/what-to-include-in-terminal-stdout-re-when-developing-a-terminal-plugin/30737)

<div class="topic-metadata">

**Author:** [@Matt\_Hickok](https://forum.ansible.com/u/Matt_Hickok)\
**Replies:** 0\
**Last updated:** [July 9, 2019, 7:38pm UTC](https://forum.ansible.com/t/what-to-include-in-terminal-stdout-re-when-developing-a-terminal-plugin/30737 "2019-07-09T19:38:09Z")

</div>

Hello all, I am trying to understand how to build the terminal\_stdout\_re array of regex patterns for my terminal plugin and I can’t find any documentation on this particular subject. For example, let’s say that I need t…

---

## [How to integrate various Backup software tools with Ansible](https://forum.ansible.com/t/how-to-integrate-various-backup-software-tools-with-ansible/30734)

<div class="topic-metadata">

**Author:** [@Dhandapani\_Rajagopal](https://forum.ansible.com/u/Dhandapani_Rajagopal)\
**Replies:** 0\
**Last updated:** [July 9, 2019, 3:48pm UTC](https://forum.ansible.com/t/how-to-integrate-various-backup-software-tools-with-ansible/30734 "2019-07-09T15:48:53Z")

</div>

Hi Friends, I am new to this Ansible community. I am Backup solution consultant predominantly working on EMC Networker and Data Domain technologies. I request your help/suggestions for automating regular backup and rest…

---

## [Append hostname to all lines in a file on a windows remote server](https://forum.ansible.com/t/append-hostname-to-all-lines-in-a-file-on-a-windows-remote-server/30731)

<div class="topic-metadata">

**Author:** [@Asha\_Omanakuttan](https://forum.ansible.com/u/Asha_Omanakuttan)\
**Replies:** 0\
**Last updated:** [July 9, 2019, 11:43am UTC](https://forum.ansible.com/t/append-hostname-to-all-lines-in-a-file-on-a-windows-remote-server/30731 "2019-07-09T11:43:27Z")

</div>

Hi all, I have a csv file as below admin\_server, id:1, /tmp admin\_group, id:3, /home user\_group, id:5, /root The number of lines in the file might vary. I need to append hostname to every lines in the file. i.e. I …

---

## [Issue : Regarding "Add ability to rate limit data transfer #12684"](https://forum.ansible.com/t/issue-regarding-add-ability-to-rate-limit-data-transfer-12684/30729)

<div class="topic-metadata">

**Author:** [@Uday\_Kulkarni](https://forum.ansible.com/u/Uday_Kulkarni)\
**Replies:** 0\
**Last updated:** [July 9, 2019, 4:36am UTC](https://forum.ansible.com/t/issue-regarding-add-ability-to-rate-limit-data-transfer-12684/30729 "2019-07-09T04:36:27Z")

</div>

Hi, I have installed ansible version 2.7.8 on Redhat Linux 7.4 and have noticed following issue, If I use “scp-extra-args” with option “-l” within playbook this option is not getting into effect. Which means if I menti…

---

## [Win\_wait\_for arbitrary results](https://forum.ansible.com/t/win-wait-for-arbitrary-results/30715)

<div class="topic-metadata">

**Author:** [@ground7612](https://forum.ansible.com/u/ground7612)\
**Replies:** 2\
**Last updated:** [July 8, 2019, 7:59pm UTC](https://forum.ansible.com/t/win-wait-for-arbitrary-results/30715 "2019-07-08T19:59:52Z")

</div>

Hi All, We are evaluating options for a playbook with a very specific use case. We would like to monitor certain processes and / or services and depending on the state we would like Ansible to register the change and tr…

---

## [cert\_file error with aws\_ec2 inventory plugin](https://forum.ansible.com/t/cert-file-error-with-aws-ec2-inventory-plugin/30726)

<div class="topic-metadata">

**Author:** [@James\_Wallace](https://forum.ansible.com/u/James_Wallace)\
**Replies:** 0\
**Last updated:** [July 8, 2019, 3:43pm UTC](https://forum.ansible.com/t/cert-file-error-with-aws-ec2-inventory-plugin/30726 "2019-07-08T15:43:43Z")

</div>

Hey all, I’m having an issue using the aws\_ec2 inventory plugin and I can’t seem to find a solution. \` ansible 2.8.1 config file = /home/jwallace/nxt-devops/ansible/ansible.cfg configured module search path = \[u’/ho…

---

## [How to adapt tempfile to cfg](https://forum.ansible.com/t/how-to-adapt-tempfile-to-cfg/30723)

<div class="topic-metadata">

**Author:** [@Oxs](https://forum.ansible.com/u/Oxs)\
**Replies:** 2\
**Last updated:** [July 8, 2019, 3:36pm UTC](https://forum.ansible.com/t/how-to-adapt-tempfile-to-cfg/30723 "2019-07-08T15:36:22Z")

</div>

Hey guys, I use the following template file .j2 to update config file on remote host. Template file: pg\_hba.conf.j2 {% for slave in groups\[‘slaves’\] %} host replication {{ postgresql\_streaming\_user.name }} {{ hostvar…

---

## [RE: \[ansible-project\] Ansible NTP Roles](https://forum.ansible.com/t/re-ansible-project-ansible-ntp-roles/30724)

<div class="topic-metadata">

**Author:** [@P.Cookson](https://forum.ansible.com/u/P.Cookson)\
**Replies:** 0\
**Last updated:** [July 8, 2019, 2:16pm UTC](https://forum.ansible.com/t/re-ansible-project-ansible-ntp-roles/30724 "2019-07-08T14:16:36Z")

</div>

Hi Keith Might be worth looking into Ansible Galaxy Roles – following Link actually gives NTP as an example too: https://www.linuxtechi.com/use-ansible-galaxy-roles-ansible-playbook/ Regards Phil

---

## [\[Best Practices\] Deprovisioning Resources](https://forum.ansible.com/t/best-practices-deprovisioning-resources/30718)

<div class="topic-metadata">

**Author:** [@Jimmyscene](https://forum.ansible.com/u/Jimmyscene)\
**Replies:** 1\
**Last updated:** [July 6, 2019, 6:11pm UTC](https://forum.ansible.com/t/best-practices-deprovisioning-resources/30718 "2019-07-06T18:11:31Z")

</div>

Hey guys, I was wondering how most people are handling deprovisioning resources like Virtual Machines, etc once they are no longer used/needed in your ansible playbooks. I understand you can set the state=absent flag i…

---

## [How to use Custom Module in sub directory of library folder (git submodule)](https://forum.ansible.com/t/how-to-use-custom-module-in-sub-directory-of-library-folder-git-submodule/30630)

<div class="topic-metadata">

**Author:** [@Jacob\_Snapp](https://forum.ansible.com/u/Jacob_Snapp)\
**Replies:** 1\
**Last updated:** [July 5, 2019, 2:23pm UTC](https://forum.ansible.com/t/how-to-use-custom-module-in-sub-directory-of-library-folder-git-submodule/30630 "2019-07-05T14:23:03Z")

</div>

Hi, I would like to use git submodules to import custom modules into my roles. However, I am having difficulties in getting Ansible to find my nested module. In this issue on https://github.com/ansible/ansible/issues/1…

---

## [Error-- missing documentation (or could not parse documentation): expected string or buffer](https://forum.ansible.com/t/error-missing-documentation-or-could-not-parse-documentation-expected-string-or-buffer/30691)

<div class="topic-metadata">

**Author:** [@Tanisha\_Mishra](https://forum.ansible.com/u/Tanisha_Mishra)\
**Replies:** 1\
**Last updated:** [July 5, 2019, 2:12pm UTC](https://forum.ansible.com/t/error-missing-documentation-or-could-not-parse-documentation-expected-string-or-buffer/30691 "2019-07-05T14:12:42Z")

</div>

Hi guys, I am trying to import a custom python module. It is listing successfully in “ansible-doc --list” but shows documentation error. ERROR! module eip\_solid\_server missing documentation (or could not parse documen…

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

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