# Ansible Project

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

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

**Page:** 162

---

## [unable to copy ansible vriable into file](https://forum.ansible.com/t/unable-to-copy-ansible-vriable-into-file/31470)

<div class="topic-metadata">

**Author:** [@abhay\_srivastava](https://forum.ansible.com/u/abhay_srivastava)\
**Replies:** 2\
**Last updated:** [October 16, 2019, 3:31am UTC](https://forum.ansible.com/t/unable-to-copy-ansible-vriable-into-file/31470 "2019-10-16T03:31:39Z")

</div>

Error: TASK \[lineinfile\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[192.168.1.158\]: FAILED! =\> {“msg”: “The task includes an opti…

---

## [How to use parallel-ssh as transport in ansible controller it has better performance](https://forum.ansible.com/t/how-to-use-parallel-ssh-as-transport-in-ansible-controller-it-has-better-performance/31467)

<div class="topic-metadata">

**Author:** [@Gunaseelan](https://forum.ansible.com/u/Gunaseelan)\
**Replies:** 3\
**Last updated:** [October 15, 2019, 5:41am UTC](https://forum.ansible.com/t/how-to-use-parallel-ssh-as-transport-in-ansible-controller-it-has-better-performance/31467 "2019-10-15T05:41:13Z")

</div>

\##### SUMMARY How to use parallel-ssh as connection\_plugin will ansible agent support parallel-ssh rather then openssh/paramiko: issue type: Query ansible version:2.7.10 component name: Ansible connection plugin

---

## [looping through azure\_rm\_networkinterface\_facts](https://forum.ansible.com/t/looping-through-azure-rm-networkinterface-facts/31461)

<div class="topic-metadata">

**Author:** [@Gregory\_Edigarov](https://forum.ansible.com/u/Gregory_Edigarov)\
**Replies:** 2\
**Last updated:** [October 14, 2019, 7:57pm UTC](https://forum.ansible.com/t/looping-through-azure-rm-networkinterface-facts/31461 "2019-10-14T19:57:41Z")

</div>

Hello, Supposing I retrive information about interfaces like this: name: Get network interface details newly created hosts azure\_rm\_networkinterface\_facts: resource\_group: “{{ rg\_name }}” name: “{{ item }}01” regi…

---

## [How to use safe box password authentication RDP and SSH](https://forum.ansible.com/t/how-to-use-safe-box-password-authentication-rdp-and-ssh/31463)

<div class="topic-metadata">

**Author:** [@Gabriel\_Silva](https://forum.ansible.com/u/Gabriel_Silva)\
**Replies:** 2\
**Last updated:** [October 14, 2019, 2:29pm UTC](https://forum.ansible.com/t/how-to-use-safe-box-password-authentication-rdp-and-ssh/31463 "2019-10-14T14:29:49Z")

</div>

Good afternoon, how to connect in windows and linux (rdp and ssh) through a gateway (password vault) with ansible. Example: To access normally via ssh I use: ssh root@192.168.0.1@gateway.intranet This prompts you for t…

---

## [Structuring and managing multiple unrelated projects](https://forum.ansible.com/t/structuring-and-managing-multiple-unrelated-projects/25365)

<div class="topic-metadata">

**Author:** [@jamiepaulburchell](https://forum.ansible.com/u/jamiepaulburchell)\
**Replies:** 11\
**Last updated:** [October 14, 2019, 1:46pm UTC](https://forum.ansible.com/t/structuring-and-managing-multiple-unrelated-projects/25365 "2019-10-14T13:46:10Z")

</div>

Hey I’m really struggling to find a solution or “best practise” that enables me to use Ansible to manage multiple different projects, while still being able to reuse roles between them to target hosts from all projects …

---

## [Limit bandwidth when copying files for some subnets](https://forum.ansible.com/t/limit-bandwidth-when-copying-files-for-some-subnets/31468)

<div class="topic-metadata">

**Author:** [@astrakid](https://forum.ansible.com/u/astrakid)\
**Replies:** 3\
**Last updated:** [October 14, 2019, 11:04am UTC](https://forum.ansible.com/t/limit-bandwidth-when-copying-files-for-some-subnets/31468 "2019-10-14T11:04:18Z")

</div>

Hi, I am quite new to ansible but really excited what it is able to do. First playbooks have been successfully executed, now I am going to optimize them for my environment. We have some devices at locations with a slo…

---

## [conditional statement and if it is true , it should accept yes and continue for next step if not then it should terminate](https://forum.ansible.com/t/conditional-statement-and-if-it-is-true-it-should-accept-yes-and-continue-for-next-step-if-not-then-it-should-terminate/31469)

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 1\
**Last updated:** [October 14, 2019, 9:58am UTC](https://forum.ansible.com/t/conditional-statement-and-if-it-is-true-it-should-accept-yes-and-continue-for-next-step-if-not-then-it-should-terminate/31469 "2019-10-14T09:58:57Z")

</div>

Hi All, I am trying to implement an conditional statement and if it is true , it should accept yes and continue for next step if not then it should terminate . Below playbook is not reading vaue like what we do in shell…

---

## [skip\_reason": "Conditional result was False".](https://forum.ansible.com/t/skip-reason-conditional-result-was-false/31456)

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 4\
**Last updated:** [October 14, 2019, 7:14am UTC](https://forum.ansible.com/t/skip-reason-conditional-result-was-false/31456 "2019-10-14T07:14:59Z")

</div>

Hi All, I am trying to compare the output marked in yellow and proceed if condition is true but it is skipping with skip\_reason": “Conditional result was False”. Please let me know how it can be achieved .

---

## [Failed to easy\_install dnspython to use dig](https://forum.ansible.com/t/failed-to-easy-install-dnspython-to-use-dig/31466)

<div class="topic-metadata">

**Author:** [@Boa\_Ah](https://forum.ansible.com/u/Boa_Ah)\
**Replies:** 2\
**Last updated:** [October 12, 2019, 9:41pm UTC](https://forum.ansible.com/t/failed-to-easy-install-dnspython-to-use-dig/31466 "2019-10-12T21:41:54Z")

</div>

Team, my playbook works fine on my MacBook but now am running it with Jenkins on Linux instance and it’s throwing me this error. Any hint please? have my playbook as below and i tried with become: yes as well but no luc…

---

## [State of Multi-Role Repos](https://forum.ansible.com/t/state-of-multi-role-repos/31438)

<div class="topic-metadata">

**Author:** [@Uriel](https://forum.ansible.com/u/Uriel)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 9:50pm UTC](https://forum.ansible.com/t/state-of-multi-role-repos/31438 "2019-10-11T21:50:40Z")

</div>

What is the currently supported way of maintaining multi-role git repositories? I’ve been reading around the docs and I’m getting some contradictory or outdated information. I was initially looking at the new Collections…

---

## [set\_fact doesn't work in loop](https://forum.ansible.com/t/set-fact-doesnt-work-in-loop/31465)

<div class="topic-metadata">

**Author:** [@Jason\_Crabtree](https://forum.ansible.com/u/Jason_Crabtree)\
**Replies:** 2\
**Last updated:** [October 11, 2019, 9:48pm UTC](https://forum.ansible.com/t/set-fact-doesnt-work-in-loop/31465 "2019-10-11T21:48:20Z")

</div>

Hello, I’m trying to build a list from data in other lists by looping over lists and using set\_fact to build a new list.

---

## [On my remote host the user install is limited to sudo su -](https://forum.ansible.com/t/on-my-remote-host-the-user-install-is-limited-to-sudo-su/31462)

<div class="topic-metadata">

**Author:** [@Jochen\_Benke](https://forum.ansible.com/u/Jochen_Benke)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 9:37pm UTC](https://forum.ansible.com/t/on-my-remote-host-the-user-install-is-limited-to-sudo-su/31462 "2019-10-11T21:37:56Z")

</div>

On my remote host the user install is limited to sudo su - /etc/sudoers %install ALL=(ALL) /bin/su - → hosts \[ibmcloud\_msbms\] ibmcloud\_msbms-01 ansible\_port=22 ansible\_host=192.168.0.24 ansible\_user=install root\_pa…

---

## [K8s kubectl module that does all the get commands](https://forum.ansible.com/t/k8s-kubectl-module-that-does-all-the-get-commands/31460)

<div class="topic-metadata">

**Author:** [@Boa\_Ah](https://forum.ansible.com/u/Boa_Ah)\
**Replies:** 0\
**Last updated:** [October 11, 2019, 3:07pm UTC](https://forum.ansible.com/t/k8s-kubectl-module-that-does-all-the-get-commands/31460 "2019-10-11T15:07:58Z")

</div>

Team, Is there a K8s kubectl module that does all the get commands ? Below one does not show ifnit does kubectl get.. https://docs.ansible.com/ansible/latest/modules/k8s\_module.html

---

## [aws\_resource\_actions is not giving expected outcome](https://forum.ansible.com/t/aws-resource-actions-is-not-giving-expected-outcome/31455)

<div class="topic-metadata">

**Author:** [@arshad\_zameer](https://forum.ansible.com/u/arshad_zameer)\
**Replies:** 0\
**Last updated:** [October 11, 2019, 9:14am UTC](https://forum.ansible.com/t/aws-resource-actions-is-not-giving-expected-outcome/31455 "2019-10-11T09:14:59Z")

</div>

I have a playbook with several roles to be performed on AWS instances. I want to get the list of all aws resource actions used on the ec2 modules so i can create specific IAM role with those permisions. But i’m unable to…

---

## [/bin/bash output in ansible playbook as a conditional statement](https://forum.ansible.com/t/bin-bash-output-in-ansible-playbook-as-a-conditional-statement/31453)

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 2\
**Last updated:** [October 11, 2019, 6:19am UTC](https://forum.ansible.com/t/bin-bash-output-in-ansible-playbook-as-a-conditional-statement/31453 "2019-10-11T06:19:04Z")

</div>

Dear All, Is it possible to get the output from .sh file and compare with “Apache Tomcat/9.0.26” and if condition is true proceed for next step ?

---

## [SCP from ansible server to managed host](https://forum.ansible.com/t/scp-from-ansible-server-to-managed-host/31450)

<div class="topic-metadata">

**Author:** [@Dave\_McPherson](https://forum.ansible.com/u/Dave_McPherson)\
**Replies:** 2\
**Last updated:** [October 10, 2019, 7:46pm UTC](https://forum.ansible.com/t/scp-from-ansible-server-to-managed-host/31450 "2019-10-10T19:46:09Z")

</div>

I am attempting to copy a file from the local ansible server to the managed hosts (oracle linux). I would like to push the file out to the different managed hosts because if I call back to the Ansible server from the ho…

---

## [I have problems with de expect module](https://forum.ansible.com/t/i-have-problems-with-de-expect-module/31400)

<div class="topic-metadata">

**Author:** [@Javier\_Esparza](https://forum.ansible.com/u/Javier_Esparza)\
**Replies:** 10\
**Last updated:** [October 10, 2019, 7:35pm UTC](https://forum.ansible.com/t/i-have-problems-with-de-expect-module/31400 "2019-10-10T19:35:59Z")

</div>

Hello guys, i have a installation of a scanner, in this instalation y have to anser 4 questions, if i’m agree with the terms etc. i find the expect module but not a lot of information of it. here comes my code… name: i…

---

## [Create a Dict key from a variable](https://forum.ansible.com/t/create-a-dict-key-from-a-variable/31449)

<div class="topic-metadata">

**Author:** [@Spiro\_Mitsialis](https://forum.ansible.com/u/Spiro_Mitsialis)\
**Replies:** 2\
**Last updated:** [October 10, 2019, 6:13pm UTC](https://forum.ansible.com/t/create-a-dict-key-from-a-variable/31449 "2019-10-10T18:13:42Z")

</div>

Hi, I hope I am using the right terminology here. I’m trying to modify some cisco\_ios facts. I know how to use combine to merge the two together. I’m having problems creating a list/dict that I can use to merge into th…

---

## [AWX: Unable to change Host Fact](https://forum.ansible.com/t/awx-unable-to-change-host-fact/31444)

<div class="topic-metadata">

**Author:** [@Danny\_van\_der\_Aa](https://forum.ansible.com/u/Danny_van_der_Aa)\
**Replies:** 3\
**Last updated:** [October 10, 2019, 11:58am UTC](https://forum.ansible.com/t/awx-unable-to-change-host-fact/31444 "2019-10-10T11:58:49Z")

</div>

Hi all, I am new with Ansible/Awx. I just trying/playing a little bit with the environment. When i try to launch a template, i get the error it can’t retrieve the os\_family Now i am trying to add that as a fact to th…

---

## [Ansible version support](https://forum.ansible.com/t/ansible-version-support/31445)

<div class="topic-metadata">

**Author:** [@Chiku](https://forum.ansible.com/u/Chiku)\
**Replies:** 2\
**Last updated:** [October 10, 2019, 10:58am UTC](https://forum.ansible.com/t/ansible-version-support/31445 "2019-10-10T10:58:26Z")

</div>

Hello, Soon, version 2.9.0 will be release. I wonder how many versions will still be supported. 3 or more? Will versions 2.8, 2.7 and 2.6 still have patches ? Thank you

---

## [AWX unable to execute a playbook with a shell script](https://forum.ansible.com/t/awx-unable-to-execute-a-playbook-with-a-shell-script/31441)

<div class="topic-metadata">

**Author:** [@Fernando\_Scarlazzari](https://forum.ansible.com/u/Fernando_Scarlazzari)\
**Replies:** 1\
**Last updated:** [October 10, 2019, 10:38am UTC](https://forum.ansible.com/t/awx-unable-to-execute-a-playbook-with-a-shell-script/31441 "2019-10-10T10:38:21Z")

</div>

Hello friends, I have a simple playbook that calls a shell script:

---

## [Manual VS Ansible playbook in window server](https://forum.ansible.com/t/manual-vs-ansible-playbook-in-window-server/31442)

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 7\
**Last updated:** [October 10, 2019, 9:45am UTC](https://forum.ansible.com/t/manual-vs-ansible-playbook-in-window-server/31442 "2019-10-10T09:45:44Z")

</div>

Dear All, Below task gets completed while running it manually from window dos however nothing happens while we execute it using ansible playbook and there is no error as well. How to debug such issue and get it working…

---

## [Reduce the No. of script files with same content](https://forum.ansible.com/t/reduce-the-no-of-script-files-with-same-content/31440)

<div class="topic-metadata">

**Author:** [@Uppara\_venkat](https://forum.ansible.com/u/Uppara_venkat)\
**Replies:** 1\
**Last updated:** [October 9, 2019, 11:33am UTC](https://forum.ansible.com/t/reduce-the-no-of-script-files-with-same-content/31440 "2019-10-09T11:33:52Z")

</div>

Hi all, I have 13 script files in a directory content is same for all the files name will be change as below: the script file is like this bean -d UCMDB service=Packaging\\ Services run deployPackages 1 D:/Software/pa…

---

## [shell script gives different output when invoked using Ansible shell module.](https://forum.ansible.com/t/shell-script-gives-different-output-when-invoked-using-ansible-shell-module/31196)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 1\
**Last updated:** [October 9, 2019, 11:12am UTC](https://forum.ansible.com/t/shell-script-gives-different-output-when-invoked-using-ansible-shell-module/31196 "2019-10-09T11:12:47Z")

</div>

I have check.sh script that I wish to run on the target nodes: \` cat check.sh str=echo $1 | sed -e 's#\[\\\]\[\\\]n# #g' echo $str\>check.row \` It is suppose to replace \\n with a single white space from the argument and s…

---

## [win\_shell command execution](https://forum.ansible.com/t/win-shell-command-execution/31434)

<div class="topic-metadata">

**Author:** [@Uppara\_venkat](https://forum.ansible.com/u/Uppara_venkat)\
**Replies:** 2\
**Last updated:** [October 9, 2019, 10:48am UTC](https://forum.ansible.com/t/win-shell-command-execution/31434 "2019-10-09T10:48:19Z")

</div>

Hi all, I’m trying to list the files with the name of “PackageDeploy” using as below but getting all other files also in the directory. win\_shell: ‘dir PackageDeploy\*.\* /b {{directory}}\\configurations\\jmxterm \> {{dire…

---

## [unexpected output while executing lengthy commands](https://forum.ansible.com/t/unexpected-output-while-executing-lengthy-commands/31439)

<div class="topic-metadata">

**Author:** [@Netizen\_Bhoomi](https://forum.ansible.com/u/Netizen_Bhoomi)\
**Replies:** 1\
**Last updated:** [October 9, 2019, 8:10am UTC](https://forum.ansible.com/t/unexpected-output-while-executing-lengthy-commands/31439 "2019-10-09T08:10:54Z")

</div>

Have a playbook executes the below command looking for VPN session, and registers the output. When I execute commands which are longer ( here col len \> 52 ) , the output gets messed up , as in, it’s kind of printing the …

---

## [Ansible role README generator](https://forum.ansible.com/t/ansible-role-readme-generator/31436)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 1\
**Last updated:** [October 8, 2019, 3:11pm UTC](https://forum.ansible.com/t/ansible-role-readme-generator/31436 "2019-10-08T15:11:40Z")

</div>

I think I have seen at some point a role that used a yaml array to specify the contents of the REAMDE. That’s all I remember. In any case, are there tools to automatically generate a README for a role or based on a templ…

---

## [ansible - shell module using expect](https://forum.ansible.com/t/ansible-shell-module-using-expect/31433)

<div class="topic-metadata">

**Author:** [@Troy\_Cosson](https://forum.ansible.com/u/Troy_Cosson)\
**Replies:** 3\
**Last updated:** [October 8, 2019, 1:24pm UTC](https://forum.ansible.com/t/ansible-shell-module-using-expect/31433 "2019-10-08T13:24:19Z")

</div>

I’m trying to get a Red Hat server (RHEL7) to join a Windows Active Directory domain and I can’t seem to get the expect command to send a password. The playbook asks for the username and password and should then put the…

---

## [dnf module problem with modularity appstreams and groups](https://forum.ansible.com/t/dnf-module-problem-with-modularity-appstreams-and-groups/31435)

<div class="topic-metadata">

**Author:** [@mike2](https://forum.ansible.com/u/mike2)\
**Replies:** 0\
**Last updated:** [October 8, 2019, 12:40pm UTC](https://forum.ansible.com/t/dnf-module-problem-with-modularity-appstreams-and-groups/31435 "2019-10-08T12:40:00Z")

</div>

Ansible 2.8.5 I’m having trouble with installing package groups and modularity appstreams on a CentOS 8 host using the dnf module. Whilst it mostly seems like two separate issues, the errors I’m getting make me wonder i…

---

## [Unable to read credentials in Jenkins Job](https://forum.ansible.com/t/unable-to-read-credentials-in-jenkins-job/31428)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 2\
**Last updated:** [October 8, 2019, 6:47am UTC](https://forum.ansible.com/t/unable-to-read-credentials-in-jenkins-job/31428 "2019-10-08T06:47:31Z")

</div>

Below code works and helps fetch username and password from Jenkins credentials in a piepeline. withCredentials(\[usernamePassword(credentialsId: 'mysql\_creds', passwordVariable: 'sqlpassword', usernameVariable: 'sqluser…

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

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