# Ansible Project

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

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

**Page:** 166

---

## [ansible 2.8.4 throwing errors on all playbooks](https://forum.ansible.com/t/ansible-2-8-4-throwing-errors-on-all-playbooks/31304)

<div class="topic-metadata">

**Author:** [@vbotka](https://forum.ansible.com/u/vbotka)\
**Replies:** 1\
**Last updated:** [September 18, 2019, 11:10am UTC](https://forum.ansible.com/t/ansible-2-8-4-throwing-errors-on-all-playbooks/31304 "2019-09-18T11:10:54Z")

</div>

It's mixed yum/pip install, I guess. Delete all Ansible packages (yum/pip), make sure nothing's left and install Ansible from scratch. Cheers, -vlado

---

## [aws\_ec2 inventory plugins: Creating host variables based on AWS tags](https://forum.ansible.com/t/aws-ec2-inventory-plugins-creating-host-variables-based-on-aws-tags/31305)

<div class="topic-metadata">

**Author:** [@Gert\_van\_den\_Berg](https://forum.ansible.com/u/Gert_van_den_Berg)\
**Replies:** 0\
**Last updated:** [September 18, 2019, 9:57am UTC](https://forum.ansible.com/t/aws-ec2-inventory-plugins-creating-host-variables-based-on-aws-tags/31305 "2019-09-18T09:57:15Z")

</div>

Is there a way to create host variables based on the tags on an instance? (without manually listing each variable and tag under the compose section) The idea is bascially to allow the equivalent of the INI-style invento…

---

## [How to use keyed\_groups in constructed EC2 inventory with a single tag?](https://forum.ansible.com/t/how-to-use-keyed-groups-in-constructed-ec2-inventory-with-a-single-tag/27715)

<div class="topic-metadata">

**Author:** [@WhileLoop](https://forum.ansible.com/u/WhileLoop)\
**Replies:** 1\
**Last updated:** [September 18, 2019, 9:23am UTC](https://forum.ansible.com/t/how-to-use-keyed-groups-in-constructed-ec2-inventory-with-a-single-tag/27715 "2019-09-18T09:23:23Z")

</div>

Currently inventory.aws\_ec2.yaml looks like this: \` plugin: aws\_ec2 regions: us-west-2 keyed\_groups: prefix: tag key: tags \` This creates one group for every tag combination. How can make it look at a single tag…

---

## [ansible 2.8.4 throwing errors on all playbooks](https://forum.ansible.com/t/ansible-2-8-4-throwing-errors-on-all-playbooks/31303)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [September 18, 2019, 6:25am UTC](https://forum.ansible.com/t/ansible-2-8-4-throwing-errors-on-all-playbooks/31303 "2019-09-18T06:25:50Z")

</div>

That’s not a lot of information you’re giving. How was ansible installed? What in centos7 exactly did you update to the ‘latest’? What versions mean latest? And what were they before that? Dick

---

## [Issue in download file from FTP](https://forum.ansible.com/t/issue-in-download-file-from-ftp/31253)

<div class="topic-metadata">

**Author:** [@Naeem\_Khan](https://forum.ansible.com/u/Naeem_Khan)\
**Replies:** 2\
**Last updated:** [September 18, 2019, 6:20am UTC](https://forum.ansible.com/t/issue-in-download-file-from-ftp/31253 "2019-09-18T06:20:46Z")

</div>

Hi Everyone, I am facing issue in executing roles using some shell script. the task is create one directory on remote host /installer/NAM copy the installable from ftp (ip:172.19.54.10 username:-admin password abc123…

---

## [Unable to download from FTP using Ansible](https://forum.ansible.com/t/unable-to-download-from-ftp-using-ansible/31302)

<div class="topic-metadata">

**Author:** [@Naeem\_Khan](https://forum.ansible.com/u/Naeem_Khan)\
**Replies:** 0\
**Last updated:** [September 18, 2019, 6:12am UTC](https://forum.ansible.com/t/unable-to-download-from-ftp-using-ansible/31302 "2019-09-18T06:12:56Z")

</div>

Hi Everyone, I am unable to download the file from FTP server, please suggest how can i download file from FTP. My YAML script is as follows. YAML:-

---

## [ansible windows](https://forum.ansible.com/t/ansible-windows/31301)

<div class="topic-metadata">

**Author:** [@pardhu\_saradhi](https://forum.ansible.com/u/pardhu_saradhi)\
**Replies:** 0\
**Last updated:** [September 17, 2019, 5:16pm UTC](https://forum.ansible.com/t/ansible-windows/31301 "2019-09-17T17:16:00Z")

</div>

how can i create a directory in shared/network path in windows using ansible

---

## [list the all the file in directory and redirect the only file name to property file](https://forum.ansible.com/t/list-the-all-the-file-in-directory-and-redirect-the-only-file-name-to-property-file/31298)

<div class="topic-metadata">

**Author:** [@Uppara\_venkat](https://forum.ansible.com/u/Uppara_venkat)\
**Replies:** 3\
**Last updated:** [September 17, 2019, 5:04pm UTC](https://forum.ansible.com/t/list-the-all-the-file-in-directory-and-redirect-the-only-file-name-to-property-file/31298 "2019-09-17T17:04:43Z")

</div>

Hi, wanted to list the files in a directory and copy the only file name into property file, using by win\_shell: name:list the files win\_shell: ‘ls {{directory}} \> {{directory}}/manifest.prob’ register: dir\_out d…

---

## [Permissions problem when copying file to a Solaris 10 host remote with unprivileged user](https://forum.ansible.com/t/permissions-problem-when-copying-file-to-a-solaris-10-host-remote-with-unprivileged-user/31293)

<div class="topic-metadata">

**Author:** [@Sur\_Veillor](https://forum.ansible.com/u/Sur_Veillor)\
**Replies:** 5\
**Last updated:** [September 17, 2019, 2:23pm UTC](https://forum.ansible.com/t/permissions-problem-when-copying-file-to-a-solaris-10-host-remote-with-unprivileged-user/31293 "2019-09-17T14:23:08Z")

</div>

Hello, i am a new user of ansible and i’m facing an issue to copy files with unprivilegied user (becom\_user method). I investigated a little bit and i think it might be a bug. Can you please take a look and tell me wha…

---

## [Download files from Jfrog](https://forum.ansible.com/t/download-files-from-jfrog/31295)

<div class="topic-metadata">

**Author:** [@Uppara\_venkat](https://forum.ansible.com/u/Uppara_venkat)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 9:59am UTC](https://forum.ansible.com/t/download-files-from-jfrog/31295 "2019-09-17T09:59:04Z")

</div>

Hi, Need to download some .zip files and .exc files from Jfrog for that i’m using python script, Is there any way to download files from General repo of Jfrog with Ansible?

---

## [Ansible register multiple variables within a single task](https://forum.ansible.com/t/ansible-register-multiple-variables-within-a-single-task/31286)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 4\
**Last updated:** [September 17, 2019, 9:58am UTC](https://forum.ansible.com/t/ansible-register-multiple-variables-within-a-single-task/31286 "2019-09-17T09:58:35Z")

</div>

Hello All, I have an Ansible task and I want to register multiple variables inside it, how do I achieve this? It doesn’t seem that a list or a comma separated string would work. This is what I have: \` name: Set SELi…

---

## ["msg": "winrm or requests is not installed: No module named winrm"](https://forum.ansible.com/t/msg-winrm-or-requests-is-not-installed-no-module-named-winrm/31292)

<div class="topic-metadata">

**Author:** [@shubham\_jain](https://forum.ansible.com/u/shubham_jain)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 12:04am UTC](https://forum.ansible.com/t/msg-winrm-or-requests-is-not-installed-no-module-named-winrm/31292 "2019-09-17T00:04:05Z")

</div>

Hi All, i am facing some issue while trying to connect to windows. please help. ansible windows -i hosts -m win\_ping xxxxx | FAILED! =\> { “msg”: “winrm or requests is not installed: No module named winrm” } i can …

---

## [Ansible Azure -  azure\_rm\_image](https://forum.ansible.com/t/ansible-azure-azure-rm-image/31285)

<div class="topic-metadata">

**Author:** [@Lucas\_Chies](https://forum.ansible.com/u/Lucas_Chies)\
**Replies:** 4\
**Last updated:** [September 16, 2019, 8:19pm UTC](https://forum.ansible.com/t/ansible-azure-azure-rm-image/31285 "2019-09-16T20:19:49Z")

</div>

Hello team, I’m trying to use Ansible to create snapshot from my azure VMS. But every time that I use the azure\_rm\_image, return error. ERROR! ‘azure\_rm\_image’ is not a valid attribute for a Play Someone already use …

---

## [Firewalld fails to start on SLES 15 SP1](https://forum.ansible.com/t/firewalld-fails-to-start-on-sles-15-sp1/31290)

<div class="topic-metadata">

**Author:** [@racke](https://forum.ansible.com/u/racke)\
**Replies:** 0\
**Last updated:** [September 16, 2019, 6:35pm UTC](https://forum.ansible.com/t/firewalld-fails-to-start-on-sles-15-sp1/31290 "2019-09-16T18:35:02Z")

</div>

Dear Readers, Firewalld fails to start for SLES 15 SP1. \> That's a pity, but how is this related to Ansible? Regards Racke

---

## [Ansible AWX/Tower configure with MS AD auth](https://forum.ansible.com/t/ansible-awx-tower-configure-with-ms-ad-auth/31284)

<div class="topic-metadata">

**Author:** [@Andrew\_Meyer1](https://forum.ansible.com/u/Andrew_Meyer1)\
**Replies:** 1\
**Last updated:** [September 16, 2019, 11:36am UTC](https://forum.ansible.com/t/ansible-awx-tower-configure-with-ms-ad-auth/31284 "2019-09-16T11:36:58Z")

</div>

I have an instance of AWX setup and I am trying to configure it with MS Windows AD authentication. I am using the docker setup of AWX. 1) Where should I be looking for logs to help diagnose config issues? 2) Does anyone …

---

## [Ansible installation of MongoDB - missing mongodb folder in /var/run](https://forum.ansible.com/t/ansible-installation-of-mongodb-missing-mongodb-folder-in-var-run/31283)

<div class="topic-metadata">

**Author:** [@Stephen\_Thorpe](https://forum.ansible.com/u/Stephen_Thorpe)\
**Replies:** 5\
**Last updated:** [September 16, 2019, 11:13am UTC](https://forum.ansible.com/t/ansible-installation-of-mongodb-missing-mongodb-folder-in-var-run/31283 "2019-09-16T11:13:17Z")

</div>

Hi, I’m deploying MongoDB to a number of servers using the script below. Servers are Ubuntu 18.0.4. I have an issue where the installation fails to create a mongo folder in /var/run/ and thus can’t start the service (No…

---

## [end\_host not working as expected](https://forum.ansible.com/t/end-host-not-working-as-expected/31277)

<div class="topic-metadata">

**Author:** [@dpowell](https://forum.ansible.com/u/dpowell)\
**Replies:** 5\
**Last updated:** [September 14, 2019, 10:02pm UTC](https://forum.ansible.com/t/end-host-not-working-as-expected/31277 "2019-09-14T22:02:57Z")

</div>

Both end\_host and end\_play seem to both cause the job to skip all hosts. I know that only one host meets the condition so it should execute on 1 but exits for both. Am I missing something? I thought end\_host would only e…

---

## [Variable resolution issue, bug or feature?](https://forum.ansible.com/t/variable-resolution-issue-bug-or-feature/31242)

<div class="topic-metadata">

**Author:** [@mcronenworth](https://forum.ansible.com/u/mcronenworth)\
**Replies:** 5\
**Last updated:** [September 14, 2019, 4:37pm UTC](https://forum.ansible.com/t/variable-resolution-issue-bug-or-feature/31242 "2019-09-14T16:37:24Z")

</div>

Hi, I have a role that when it runs is only partially resolving variables. Variable\_A: defined in defaults - string Variable\_B: defined in defaults - hostvars reference to Variable\_C that will be loaded through includ…

---

## [mysql\_user cannot find an installed package](https://forum.ansible.com/t/mysql-user-cannot-find-an-installed-package/31279)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 0\
**Last updated:** [September 13, 2019, 6:55pm UTC](https://forum.ansible.com/t/mysql-user-cannot-find-an-installed-package/31279 "2019-09-13T18:55:48Z")

</div>

Trying to add a user to a mysql DB. Some relevant lines from playbook are: mysql\_packagelist: - python2-PyMySQL \[...\] - name: Install db prereqs package: name="{{mysql\_packagelist}}" state=latest \[...\] - name:…

---

## [Problem when attempting to create database with ansible](https://forum.ansible.com/t/problem-when-attempting-to-create-database-with-ansible/31278)

<div class="topic-metadata">

**Author:** [@William\_Muriithi](https://forum.ansible.com/u/William_Muriithi)\
**Replies:** 0\
**Last updated:** [September 13, 2019, 6:54pm UTC](https://forum.ansible.com/t/problem-when-attempting-to-create-database-with-ansible/31278 "2019-09-13T18:54:14Z")

</div>

Hello, Have anyone attempted to use ansible to create database on mariaDB system recently. I am having a problem and would appreaciate advice. I have two tasks: name: create nextcloud database schema mysql\_db: name…

---

## [How to work around PERSISTENT\_COMMAND\_TIMEOUT](https://forum.ansible.com/t/how-to-work-around-persistent-command-timeout/31276)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 1\
**Last updated:** [September 13, 2019, 4:51pm UTC](https://forum.ansible.com/t/how-to-work-around-persistent-command-timeout/31276 "2019-09-13T16:51:03Z")

</div>

Hi there, Every ansible network command has a PERSISTENT\_COMMAND\_TIMEOUT which “controls the amount of time to wait for response from remote device before timing out persistent connection”. Actually, when using the net…

---

## [Chocolatey and installing GIT](https://forum.ansible.com/t/chocolatey-and-installing-git/31272)

<div class="topic-metadata">

**Author:** [@Simon-Pierre\_Diamond](https://forum.ansible.com/u/Simon-Pierre_Diamond)\
**Replies:** 3\
**Last updated:** [September 13, 2019, 12:52pm UTC](https://forum.ansible.com/t/chocolatey-and-installing-git/31272 "2019-09-13T12:52:31Z")

</div>

Hi guys, I am trying to install git with chocolatey using a playbook: name: Install GIT win\_chocolatey: name: git state: present It should be really simple when I run this. It should go through and no issues. Alt…

---

## [Problem with "when" statement](https://forum.ansible.com/t/problem-with-when-statement/31275)

<div class="topic-metadata">

**Author:** [@MKPhil](https://forum.ansible.com/u/MKPhil)\
**Replies:** 3\
**Last updated:** [September 13, 2019, 12:28pm UTC](https://forum.ansible.com/t/problem-with-when-statement/31275 "2019-09-13T12:28:36Z")

</div>

I’m trying to compare two variables in a “when” statement - when x = y do something. This code works: when: unit\_number == {{ disk\_unit }} BUT I get a warning: \[WARNING\]: conditional statements should not include jin…

---

## [Privileges for become\_user](https://forum.ansible.com/t/privileges-for-become-user/31269)

<div class="topic-metadata">

**Author:** [@Torsten\_Lorenz](https://forum.ansible.com/u/Torsten_Lorenz)\
**Replies:** 9\
**Last updated:** [September 13, 2019, 8:36am UTC](https://forum.ansible.com/t/privileges-for-become-user/31269 "2019-09-13T08:36:04Z")

</div>

Hi @ all, i try to start/stop a service with ansible adn need to execute the comand with sudo: executing “sudo /usr/bin/systemctl start filebeat.service” works pretty fine, but i would like to use the service-modul. …

---

## [New Ansible release 2.8.5](https://forum.ansible.com/t/new-ansible-release-2-8-5/31273)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [September 13, 2019, 1:45am UTC](https://forum.ansible.com/t/new-ansible-release-2-8-5/31273 "2019-09-13T01:45:18Z")

</div>

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

---

## [Jenkins test connection not working with Ansible-Awx 7.0.0](https://forum.ansible.com/t/jenkins-test-connection-not-working-with-ansible-awx-7-0-0/31271)

<div class="topic-metadata">

**Author:** [@dpowell](https://forum.ansible.com/u/dpowell)\
**Replies:** 1\
**Last updated:** [September 12, 2019, 7:33pm UTC](https://forum.ansible.com/t/jenkins-test-connection-not-working-with-ansible-awx-7-0-0/31271 "2019-09-12T19:33:28Z")

</div>

Is there anything that I may have missed during the awx install. Awx is up and the UI is working without issue. I’m unable to curl or run the testConnection from jenkins. Version 0.10.0 of the tower plugin is installed. …

---

## [Update string variable if the value matches in Ansible Play](https://forum.ansible.com/t/update-string-variable-if-the-value-matches-in-ansible-play/31254)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 12\
**Last updated:** [September 12, 2019, 4:25pm UTC](https://forum.ansible.com/t/update-string-variable-if-the-value-matches-in-ansible-play/31254 "2019-09-12T16:25:11Z")

</div>

I pass a variable fRegion to my ansible playbook. I wish to set fRegion to this string → ‘prd’ OR region LIKE ‘dr’ if the passed value is either “prd\_and\_dr” or “dr\_and\_prd”. I call the playbook like this : ansible-p…

---

## [Using lineinfile to append items to the END of a line](https://forum.ansible.com/t/using-lineinfile-to-append-items-to-the-end-of-a-line/31259)

<div class="topic-metadata">

**Author:** [@TheSmiths](https://forum.ansible.com/u/TheSmiths)\
**Replies:** 4\
**Last updated:** [September 12, 2019, 2:08pm UTC](https://forum.ansible.com/t/using-lineinfile-to-append-items-to-the-end-of-a-line/31259 "2019-09-12T14:08:12Z")

</div>

Hi, I would like to use lineinfile module to do the next: go over list of items (with\_items) look for specific line that always starts with the word “ALL:” (hosts.allow) append each item at the END of the line with co…

---

## [Subdirectories in host\_vars](https://forum.ansible.com/t/subdirectories-in-host-vars/31266)

<div class="topic-metadata">

**Author:** [@Peter\_Kokot](https://forum.ansible.com/u/Peter_Kokot)\
**Replies:** 3\
**Last updated:** [September 12, 2019, 7:04am UTC](https://forum.ansible.com/t/subdirectories-in-host-vars/31266 "2019-09-12T07:04:07Z")

</div>

Hello, does host\_vars directory support subdirectories? So multiple variables can be organized in multiple YAML files inside the host subdirectory. For example: ├─ host\_vars/ ├─── hostname\_1.tld/ ├───── secrets.yaml …

---

## [using set\_fact with until](https://forum.ansible.com/t/using-set-fact-with-until/31252)

<div class="topic-metadata">

**Author:** [@Kamesh\_Sampath1](https://forum.ansible.com/u/Kamesh_Sampath1)\
**Replies:** 16\
**Last updated:** [September 12, 2019, 3:29am UTC](https://forum.ansible.com/t/using-set-fact-with-until/31252 "2019-09-12T03:29:17Z")

</div>

I am trying to use set\_fact with until and retries, will the fact be evaluated and set during each iteration ? Sometimes I see the value is not being set and I get the failure after the retries. While I see the correspon…

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

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