# Ansible Project

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

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

**Page:** 200

---

## [looping over set of tasks (roles?)](https://forum.ansible.com/t/looping-over-set-of-tasks-roles/15550)

<div class="topic-metadata">

**Author:** [@Nick\_Evgeniev](https://forum.ansible.com/u/Nick_Evgeniev)\
**Replies:** 29\
**Last updated:** [March 24, 2019, 10:02am UTC](https://forum.ansible.com/t/looping-over-set-of-tasks-roles/15550 "2019-03-24T10:02:01Z")

</div>

Hi, I need to perform (in a loop) some tasks on host ‘A’ till something happens on host ‘B’. What is the ‘best practice’ of doing such things with ansible? I saw loops over single task but this is not what I need (pres…

---

## [Ansible Galaxy - requirements.yml and a single github repo with multiple roles](https://forum.ansible.com/t/ansible-galaxy-requirements-yml-and-a-single-github-repo-with-multiple-roles/20732)

<div class="topic-metadata">

**Author:** [@sarlindo](https://forum.ansible.com/u/sarlindo)\
**Replies:** 3\
**Last updated:** [March 22, 2019, 10:07pm UTC](https://forum.ansible.com/t/ansible-galaxy-requirements-yml-and-a-single-github-repo-with-multiple-roles/20732 "2019-03-22T22:07:48Z")

</div>

In terms of github repos for ansible roles. Does galaxy supports having multiple “roles” in ONE github repo? For example, let’s assume I have the following github repo https://github.com/sarlindo/ansiblemidddlewarerepo …

---

## [Ansible Tower SAML Authentication](https://forum.ansible.com/t/ansible-tower-saml-authentication/29960)

<div class="topic-metadata">

**Author:** [@Chanaka\_Samarajeewa](https://forum.ansible.com/u/Chanaka_Samarajeewa)\
**Replies:** 1\
**Last updated:** [March 22, 2019, 6:54pm UTC](https://forum.ansible.com/t/ansible-tower-saml-authentication/29960 "2019-03-22T18:54:20Z")

</div>

Hello, I configured Tower to authenticate with OKTA via SAML . When I go to Tower’s login page and click “Sign in with SAML” it functions correctly and takes me to Okta to sign in, then allows me into Tower after authen…

---

## [How to say “When” something is finished installing?](https://forum.ansible.com/t/how-to-say-when-something-is-finished-installing/29945)

<div class="topic-metadata">

**Author:** [@gigit1000](https://forum.ansible.com/u/gigit1000)\
**Replies:** 3\
**Last updated:** [March 22, 2019, 5:58pm UTC](https://forum.ansible.com/t/how-to-say-when-something-is-finished-installing/29945 "2019-03-22T17:58:54Z")

</div>

Hello, I have two tasks in a playbook. The first task installs software with the command module. The second creates a file. I don’t want the second task to run until the software has finished installing. I’m pretty sure…

---

## [Ansible - Register variable in not defined](https://forum.ansible.com/t/ansible-register-variable-in-not-defined/29954)

<div class="topic-metadata">

**Author:** [@olyx11](https://forum.ansible.com/u/olyx11)\
**Replies:** 5\
**Last updated:** [March 22, 2019, 5:05pm UTC](https://forum.ansible.com/t/ansible-register-variable-in-not-defined/29954 "2019-03-22T17:05:54Z")

</div>

I am trying to figure out why my variable is not defined and have not been able to find any solutions online. Can anyone help? test.yml

---

## [Contributor interactions interpreted as hostile](https://forum.ansible.com/t/contributor-interactions-interpreted-as-hostile/29957)

<div class="topic-metadata">

**Author:** [@mcronenworth](https://forum.ansible.com/u/mcronenworth)\
**Replies:** 2\
**Last updated:** [March 22, 2019, 4:36pm UTC](https://forum.ansible.com/t/contributor-interactions-interpreted-as-hostile/29957 "2019-03-22T16:36:56Z")

</div>

Closing and locking a discussion while holding a self-righteous attitude gave me an extremely sour taste in my mouth. I raised a concern\[1\] about a bug fix that changed behavior in a stable release when that behavior ha…

---

## [Stable release behavior changes](https://forum.ansible.com/t/stable-release-behavior-changes/29958)

<div class="topic-metadata">

**Author:** [@mcronenworth](https://forum.ansible.com/u/mcronenworth)\
**Replies:** 0\
**Last updated:** [March 22, 2019, 4:00pm UTC](https://forum.ansible.com/t/stable-release-behavior-changes/29958 "2019-03-22T16:00:45Z")

</div>

Are bug fixes vetted before they are introduced in stable releases? A bug fix\[1\] on get\_url changed its basic functionality when run under check mode. The broken behavior has been in Ansible for years, but a stable rele…

---

## [sros network modules in ansible 2.7.0](https://forum.ansible.com/t/sros-network-modules-in-ansible-2-7-0/28777)

<div class="topic-metadata">

**Author:** [@DC11](https://forum.ansible.com/u/DC11)\
**Replies:** 4\
**Last updated:** [March 22, 2019, 1:32pm UTC](https://forum.ansible.com/t/sros-network-modules-in-ansible-2-7-0/28777 "2019-03-22T13:32:47Z")

</div>

Ansible newbie here. I’m trying to learn about network\_cli so installed a recent version of ansible \` ansible --version ansible 2.7.0 config file = /etc/ansible/ansible.cfg configured module search path = \[u’/home/u…

---

## [Using defaults for Ansible user module for for "home", "group" and "groups"](https://forum.ansible.com/t/using-defaults-for-ansible-user-module-for-for-home-group-and-groups/29937)

<div class="topic-metadata">

**Author:** [@Suhail\_Choudhury](https://forum.ansible.com/u/Suhail_Choudhury)\
**Replies:** 2\
**Last updated:** [March 22, 2019, 12:34pm UTC](https://forum.ansible.com/t/using-defaults-for-ansible-user-module-for-for-home-group-and-groups/29937 "2019-03-22T12:34:03Z")

</div>

Hi, I’m trying to set optional values only if they are specified for the “user” module. So with: name: Add users user: name: “{{ item.username }}” comment: “{{ item.comment }}” state: present shell: “{{ (item.sh…

---

## [In ansible how do cp -rp](https://forum.ansible.com/t/in-ansible-how-do-cp-rp/29939)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 4\
**Last updated:** [March 22, 2019, 9:31am UTC](https://forum.ansible.com/t/in-ansible-how-do-cp-rp/29939 "2019-03-22T09:31:09Z")

</div>

Hi all, I want do this command line in ansible : cp -rp /home/user/file1 /home/user/directory2/file2 I have find this module copy : - name: example copying file with owner and permissions copy: src: /srv/myfile…

---

## [user\_module and ssh key](https://forum.ansible.com/t/user-module-and-ssh-key/29951)

<div class="topic-metadata">

**Author:** [@Alexander\_B](https://forum.ansible.com/u/Alexander_B)\
**Replies:** 1\
**Last updated:** [March 22, 2019, 7:14am UTC](https://forum.ansible.com/t/user-module-and-ssh-key/29951 "2019-03-22T07:14:09Z")

</div>

Hello. There are two hosts. On first I create a user and generate SSH keys. Now I need to transfer private key to second host to connect using it to first host without creating a user on second. I haven’t found an outpu…

---

## [Do I need to use wait\_for and/or handler to install software from a playbook?](https://forum.ansible.com/t/do-i-need-to-use-wait-for-and-or-handler-to-install-software-from-a-playbook/29950)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [March 22, 2019, 5:47am UTC](https://forum.ansible.com/t/do-i-need-to-use-wait-for-and-or-handler-to-install-software-from-a-playbook/29950 "2019-03-22T05:47:13Z")

</div>

Hello, I understand that tasks in a playbook run top down but I don't know if they wait for each other. They do. I have a question about how you control multiple package installs in a way so that subsequent tasks…

---

## [Ansible Yum module has no return values?](https://forum.ansible.com/t/ansible-yum-module-has-no-return-values/29948)

<div class="topic-metadata">

**Author:** [@gigit1000](https://forum.ansible.com/u/gigit1000)\
**Replies:** 1\
**Last updated:** [March 22, 2019, 1:37am UTC](https://forum.ansible.com/t/ansible-yum-module-has-no-return-values/29948 "2019-03-22T01:37:35Z")

</div>

Hello, Since the Yum module has no return values, how do you know when the package it installed is finished installing? How would you know when to start a new task that depends on the package being installed? Thank You …

---

## [Building variables like in Jekyll?](https://forum.ansible.com/t/building-variables-like-in-jekyll/29944)

<div class="topic-metadata">

**Author:** [@JonTheNiceGuy](https://forum.ansible.com/u/JonTheNiceGuy)\
**Replies:** 0\
**Last updated:** [March 21, 2019, 8:56pm UTC](https://forum.ansible.com/t/building-variables-like-in-jekyll/29944 "2019-03-21T20:56:13Z")

</div>

Hi, I’ve a complex data structure to build, which, while I can do it in group/host\_vars/ I’m worrying about the people who follow me on, and how they’ll cope with it. I’ve some experience of Jekyll, which has a good da…

---

## [create virtualenv with pip modle and centos scl (rh-python36)](https://forum.ansible.com/t/create-virtualenv-with-pip-modle-and-centos-scl-rh-python36/29943)

<div class="topic-metadata">

**Author:** [@Peter\_Hudec](https://forum.ansible.com/u/Peter_Hudec)\
**Replies:** 1\
**Last updated:** [March 21, 2019, 8:50pm UTC](https://forum.ansible.com/t/create-virtualenv-with-pip-modle-and-centos-scl-rh-python36/29943 "2019-03-21T20:50:20Z")

</div>

Hi all, I’m trying to solve following problem. I need to create virtualenv for python using centos scl rh-python36 Manual way is easy, there are several way how to do that /opt/rh/rh-python36/root/bin/python -m v…

---

## [How to change the security groups of an existing ec2 instance](https://forum.ansible.com/t/how-to-change-the-security-groups-of-an-existing-ec2-instance/29942)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [March 21, 2019, 8:32pm UTC](https://forum.ansible.com/t/how-to-change-the-security-groups-of-an-existing-ec2-instance/29942 "2019-03-21T20:32:03Z")

</div>

Hi I have a task to ensure that an instance is available and configured. But now I'd like make sure the instance has a few extra security groups, but I can't find the correct syntax to get this working. My task look …

---

## [Importing user variables from multiple variable sources](https://forum.ansible.com/t/importing-user-variables-from-multiple-variable-sources/29788)

<div class="topic-metadata">

**Author:** [@Suhail\_Choudhury](https://forum.ansible.com/u/Suhail_Choudhury)\
**Replies:** 6\
**Last updated:** [March 21, 2019, 7:32pm UTC](https://forum.ansible.com/t/importing-user-variables-from-multiple-variable-sources/29788 "2019-03-21T19:32:21Z")

</div>

Hi, I want to know how I can import user account variables at multiple levels using loops/arrays and importing them all. i.e. i have a generic module which has users defined in roles/common/tasks/main.yml as an array(o…

---

## [Ansible slack callback plugin - not working - please help](https://forum.ansible.com/t/ansible-slack-callback-plugin-not-working-please-help/28126)

<div class="topic-metadata">

**Author:** [@Vinod\_Kumar2](https://forum.ansible.com/u/Vinod_Kumar2)\
**Replies:** 10\
**Last updated:** [March 21, 2019, 4:55pm UTC](https://forum.ansible.com/t/ansible-slack-callback-plugin-not-working-please-help/28126 "2019-03-21T16:55:20Z")

</div>

Hi All, I am using below slack callback configuration and getting below error. When i tried using the slack module instead of slack callback plugin, i am able to get the notification in my slack channel. But i want to u…

---

## [Do the target systems need to have pre-requisites installed for Ansible to work?](https://forum.ansible.com/t/do-the-target-systems-need-to-have-pre-requisites-installed-for-ansible-to-work/29931)

<div class="topic-metadata">

**Author:** [@gigit1000](https://forum.ansible.com/u/gigit1000)\
**Replies:** 3\
**Last updated:** [March 21, 2019, 12:57pm UTC](https://forum.ansible.com/t/do-the-target-systems-need-to-have-pre-requisites-installed-for-ansible-to-work/29931 "2019-03-21T12:57:08Z")

</div>

Hello, I’m a little confused about how Ansible works: Since its “clientless” it makes it sound like you don’t need to install software on the target hosts in order to run playbooks to configure them. From the documentat…

---

## [Gathering facts for windows hosts runs forever/never completes](https://forum.ansible.com/t/gathering-facts-for-windows-hosts-runs-forever-never-completes/29885)

<div class="topic-metadata">

**Author:** [@Gustaf\_Ankarloo](https://forum.ansible.com/u/Gustaf_Ankarloo)\
**Replies:** 2\
**Last updated:** [March 21, 2019, 9:51am UTC](https://forum.ansible.com/t/gathering-facts-for-windows-hosts-runs-forever-never-completes/29885 "2019-03-21T09:51:08Z")

</div>

From time to time I find that some windows hosts never completes the setup task. I never quite figured out why it happens. Usually restarting the window server solves the issue but looking at the windows server I see no…

---

## [Convert a text file with list of strings into yml help](https://forum.ansible.com/t/convert-a-text-file-with-list-of-strings-into-yml-help/29913)

<div class="topic-metadata">

**Author:** [@Saranya\_N](https://forum.ansible.com/u/Saranya_N)\
**Replies:** 2\
**Last updated:** [March 21, 2019, 9:27am UTC](https://forum.ansible.com/t/convert-a-text-file-with-list-of-strings-into-yml-help/29913 "2019-03-21T09:27:49Z")

</div>

I'm having a text file with lots of strings like below. Cat test.txt String1 String2 . . . Etc I literally have 2k of strings on that file. I want to convert to yank like below. \_ \_ \_ Listofstrings: - strin…

---

## [using ansible to auto deploy on websphere](https://forum.ansible.com/t/using-ansible-to-auto-deploy-on-websphere/29934)

<div class="topic-metadata">

**Author:** [@CORLEONE](https://forum.ansible.com/u/CORLEONE)\
**Replies:** 0\
**Last updated:** [March 21, 2019, 4:46am UTC](https://forum.ansible.com/t/using-ansible-to-auto-deploy-on-websphere/29934 "2019-03-21T04:46:59Z")

</div>

Hello, i am learning ansible and trying to auto deploy war applications on websphere 8.5.5.I have come to know of a directory where copy/paste would work to autodeploy.But i have to set some deployment properties like da…

---

## [dirname filter errors](https://forum.ansible.com/t/dirname-filter-errors/29933)

<div class="topic-metadata">

**Author:** [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Replies:** 1\
**Last updated:** [March 21, 2019, 12:30am UTC](https://forum.ansible.com/t/dirname-filter-errors/29933 "2019-03-21T00:30:44Z")

</div>

I have narrowed this issue down to a sample role: \`

---

## [How to get download progress when downloading a file using get\_url ansible module](https://forum.ansible.com/t/how-to-get-download-progress-when-downloading-a-file-using-get-url-ansible-module/29929)

<div class="topic-metadata">

**Author:** [@Shankar\_Pentyala](https://forum.ansible.com/u/Shankar_Pentyala)\
**Replies:** 0\
**Last updated:** [March 20, 2019, 8:08pm UTC](https://forum.ansible.com/t/how-to-get-download-progress-when-downloading-a-file-using-get-url-ansible-module/29929 "2019-03-20T20:08:52Z")

</div>

Hi all, when I try to download a 50gb file using get\_url,its unclear whether file is downloading or not,Since there is no log or output once the task starts executing.Any ideas on this how to set a progress bar or atlea…

---

## [fatal Error when using uname -r command](https://forum.ansible.com/t/fatal-error-when-using-uname-r-command/29926)

<div class="topic-metadata">

**Author:** [@Vino\_B](https://forum.ansible.com/u/Vino_B)\
**Replies:** 1\
**Last updated:** [March 20, 2019, 5:45pm UTC](https://forum.ansible.com/t/fatal-error-when-using-uname-r-command/29926 "2019-03-20T17:45:10Z")

</div>

Hi All, Request you help on how to resolve the the below task error as it is throwing fatal error name: Check whether Kernel is latest shell: (/usr/bin/uname -r | {{AK}} ‘END{if(NR!=0||$0!=“4.4.155-94.50-default”){pr…

---

## [win\_lineinfile invalid Path argument](https://forum.ansible.com/t/win-lineinfile-invalid-path-argument/29925)

<div class="topic-metadata">

**Author:** [@bit\_conneeect](https://forum.ansible.com/u/bit_conneeect)\
**Replies:** 1\
**Last updated:** [March 20, 2019, 5:01pm UTC](https://forum.ansible.com/t/win-lineinfile-invalid-path-argument/29925 "2019-03-20T17:01:52Z")

</div>

Hello everyone, I am trying to change specific lines of an xml file which is located on J:\\ on a windows machine. Due to the fact that the win\_xml module is only able to add but not override strings, I chose the win\_li…

---

## [FAILED! =\> {"msg": "The conditional check .. Unable to look up a name or access an attribute in template string](https://forum.ansible.com/t/failed-msg-the-conditional-check-unable-to-look-up-a-name-or-access-an-attribute-in-template-string/29921)

<div class="topic-metadata">

**Author:** [@Spideyx](https://forum.ansible.com/u/Spideyx)\
**Replies:** 0\
**Last updated:** [March 20, 2019, 1:39pm UTC](https://forum.ansible.com/t/failed-msg-the-conditional-check-unable-to-look-up-a-name-or-access-an-attribute-in-template-string/29921 "2019-03-20T13:39:55Z")

</div>

Need Ansible help on error. Same ansible module/task getting error in 1 environment and completely fine in another. Dunno what the causes are. Here’s the error: fatal: \[hostname.com\]: FAILED! =\> {“msg”: “The conditional…

---

## [Trouble comparing Jinja2 string](https://forum.ansible.com/t/trouble-comparing-jinja2-string/29919)

<div class="topic-metadata">

**Author:** [@Ashok1](https://forum.ansible.com/u/Ashok1)\
**Replies:** 1\
**Last updated:** [March 20, 2019, 8:38am UTC](https://forum.ansible.com/t/trouble-comparing-jinja2-string/29919 "2019-03-20T08:38:26Z")

</div>

Hi all… I have the below vars: \` client\_destinations: apache-servers: pre\_cmd: ‘$template custom,“/logs/apache-servers/%source%.log”’ rules: var: ‘$syslogfacility-text’ operator: ‘contains’ search: ‘local5’ de…

---

## [Manage multiple aws accounts with ansible playbook using ec2.py/ec2.ini](https://forum.ansible.com/t/manage-multiple-aws-accounts-with-ansible-playbook-using-ec2-py-ec2-ini/29917)

<div class="topic-metadata">

**Author:** [@naga\_babu](https://forum.ansible.com/u/naga_babu)\
**Replies:** 2\
**Last updated:** [March 20, 2019, 7:59am UTC](https://forum.ansible.com/t/manage-multiple-aws-accounts-with-ansible-playbook-using-ec2-py-ec2-ini/29917 "2019-03-20T07:59:25Z")

</div>

I have multiple aws accounts. I would like to manage all these accounts using ansible playbooks. ex. provisioning new machines etc… But when I use profile/AWS\_PROFILE option it always taking default profile not going to…

---

## [Module for Huawei NE series devices](https://forum.ansible.com/t/module-for-huawei-ne-series-devices/29918)

<div class="topic-metadata">

**Author:** [@vicky.singh](https://forum.ansible.com/u/vicky.singh)\
**Replies:** 0\
**Last updated:** [March 20, 2019, 7:03am UTC](https://forum.ansible.com/t/module-for-huawei-ne-series-devices/29918 "2019-03-20T07:03:15Z")

</div>

Hello, I have started exploring ansible with the goal of being able to configure Huawei NE series devices . But i cann’t find any module (even in extra modules) which will help me achieve this? Can Huawei NE series dev…

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

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