# Ansible Project

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

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

**Page:** 157

---

## [mapping AWS 'Username' tag to ansible\_user inventory var?](https://forum.ansible.com/t/mapping-aws-username-tag-to-ansible-user-inventory-var/31683)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 3\
**Last updated:** [November 19, 2019, 4:28pm UTC](https://forum.ansible.com/t/mapping-aws-username-tag-to-ansible-user-inventory-var/31683 "2019-11-19T16:28:20Z")

</div>

Hi I'm using the ec2.py dynamic inventory, and this appears to work well. My deployment consists of several different distros, and so the ansible\_user is different across the instances. While instantiating from diffe…

---

## [how to post different payload for different rest api using uri module in ansible playbook with loop](https://forum.ansible.com/t/how-to-post-different-payload-for-different-rest-api-using-uri-module-in-ansible-playbook-with-loop/31675)

<div class="topic-metadata">

**Author:** [@ahamed\_Sultan](https://forum.ansible.com/u/ahamed_Sultan)\
**Replies:** 1\
**Last updated:** [November 18, 2019, 5:30pm UTC](https://forum.ansible.com/t/how-to-post-different-payload-for-different-rest-api-using-uri-module-in-ansible-playbook-with-loop/31675 "2019-11-18T17:30:01Z")

</div>

Hi Team, I am new to ansible, could you help me how to post different payload for different rest api using uri module in ansible playbook with loop(to reduce code) Thanks in advance. Regards Ahamed

---

## [BECOME password:](https://forum.ansible.com/t/become-password/31645)

<div class="topic-metadata">

**Author:** [@Roy\_Wright](https://forum.ansible.com/u/Roy_Wright)\
**Replies:** 2\
**Last updated:** [November 18, 2019, 4:57pm UTC](https://forum.ansible.com/t/become-password/31645 "2019-11-18T16:57:35Z")

</div>

Howdy, I have a Jenkins job that SSHes to a VM that has ansible installed. The job creates an LXC container on the VM then populates the container with the test environment. Can some kind soul please point me to the ma…

---

## [Block and Rescue behavior question](https://forum.ansible.com/t/block-and-rescue-behavior-question/31659)

<div class="topic-metadata">

**Author:** [@mcronenworth](https://forum.ansible.com/u/mcronenworth)\
**Replies:** 5\
**Last updated:** [November 18, 2019, 3:00pm UTC](https://forum.ansible.com/t/block-and-rescue-behavior-question/31659 "2019-11-18T15:00:55Z")

</div>

Is a “rescue” in a “block” supposed to run at the very end of a play? The documentation and examples would lead you to believe that a rescue is supposed to happen immediately following a block failure. I am not seeing t…

---

## [Probleme ansible with build Jenkins](https://forum.ansible.com/t/probleme-ansible-with-build-jenkins/31672)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 1\
**Last updated:** [November 18, 2019, 1:20pm UTC](https://forum.ansible.com/t/probleme-ansible-with-build-jenkins/31672 "2019-11-18T13:20:36Z")

</div>

Hey, I know it’s a little bit gold but i have maven with component war with this file pom : http://maven.apache.org/xsd/maven-4.0.0.xsd"\> \<modelVersion\>4.0.0\</modelVersion\> \<groupId\>workflow\</groupId\> \<arti…

---

## [Running Ansible with Concourse](https://forum.ansible.com/t/running-ansible-with-concourse/31674)

<div class="topic-metadata">

**Author:** [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Replies:** 0\
**Last updated:** [November 18, 2019, 12:54pm UTC](https://forum.ansible.com/t/running-ansible-with-concourse/31674 "2019-11-18T12:54:38Z")

</div>

Hi, I am trying to run ansible within Concourse, however when i am running i am only able to ping localhost. I cannot make passwordless login. I may be missing somewhere. Below are my steps:- I need some guidance as i a…

---

## [Ansible V2.7 - kerberos: authGSSClientStep() failed:](https://forum.ansible.com/t/ansible-v2-7-kerberos-authgssclientstep-failed/30906)

<div class="topic-metadata">

**Author:** [@Sushena\_Parthasarath](https://forum.ansible.com/u/Sushena_Parthasarath)\
**Replies:** 7\
**Last updated:** [November 18, 2019, 6:03am UTC](https://forum.ansible.com/t/ansible-v2-7-kerberos-authgssclientstep-failed/30906 "2019-11-18T06:03:15Z")

</div>

Hi Team, we\`re using Ansible v 2.7, below python modules for kerberos. We have switched from basic to kerberos auth all playbooks are failing with below error Python (Kerberos) modules: kerberos 1.3.0 requests-kerber…

---

## [Issue in ansible playbook](https://forum.ansible.com/t/issue-in-ansible-playbook/31670)

<div class="topic-metadata">

**Author:** [@Narendra\_Patel](https://forum.ansible.com/u/Narendra_Patel)\
**Replies:** 1\
**Last updated:** [November 15, 2019, 10:38pm UTC](https://forum.ansible.com/t/issue-in-ansible-playbook/31670 "2019-11-15T22:38:42Z")

</div>

Hi, I’m new to Ansible and trying to write my first playbook. But i keep getting an error : fatal: \[mariadb-01.example.com\]: FAILED! =\> {“changed”: false, “msg”: “Failure talking to yum: Cannot find a valid baseurl for…

---

## [Updated ansible failed on checks](https://forum.ansible.com/t/updated-ansible-failed-on-checks/31666)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 5\
**Last updated:** [November 15, 2019, 7:37pm UTC](https://forum.ansible.com/t/updated-ansible-failed-on-checks/31666 "2019-11-15T19:37:16Z")

</div>

Hi all, After running ansible 2.9, I’m getting these errors: fatal: \[jjohnson-lx\]: FAILED! =\> {“msg”: “The conditional check ‘ansible\_distribution\_major\_version | version\_compare(‘6’, ‘=’)’ failed. The error was: templ…

---

## [What approach should I take with this loop?](https://forum.ansible.com/t/what-approach-should-i-take-with-this-loop/31663)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 3\
**Last updated:** [November 15, 2019, 5:00pm UTC](https://forum.ansible.com/t/what-approach-should-i-take-with-this-loop/31663 "2019-11-15T17:00:37Z")

</div>

The following fails for sure, but you get the idea of what I am trying to do. How might I be able to loop this? Problem is with ‘searchme’ and probably trying to do something you can’t do \` name: Set fact based on hos…

---

## [archive:  "file.zip" does not exist](https://forum.ansible.com/t/archive-file-zip-does-not-exist/31664)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 4\
**Last updated:** [November 15, 2019, 4:42pm UTC](https://forum.ansible.com/t/archive-file-zip-does-not-exist/31664 "2019-11-15T16:42:35Z")

</div>

I have the following: \` name: Compress reports archive: path: “{{ final\_location }}/{{ host }}\_reports” #dest: “{{ final\_location }}/{{ host }}\_reports.zip” format: zip \` It returns this: \` TASK \[LookingGlass …

---

## [TimeOut](https://forum.ansible.com/t/timeout/31662)

<div class="topic-metadata">

**Author:** [@Marc-antoine\_Desroch](https://forum.ansible.com/u/Marc-antoine_Desroch)\
**Replies:** 1\
**Last updated:** [November 15, 2019, 11:31am UTC](https://forum.ansible.com/t/timeout/31662 "2019-11-15T11:31:56Z")

</div>

Here’s my problem: I have to make a playbook to execute on a large range of servers but those servers can go down anytime, i can lose connection at any moment so i need ansible to be able to failed the job when the serv…

---

## [debug vars](https://forum.ansible.com/t/debug-vars/31661)

<div class="topic-metadata">

**Author:** [@Oxs](https://forum.ansible.com/u/Oxs)\
**Replies:** 2\
**Last updated:** [November 14, 2019, 4:15pm UTC](https://forum.ansible.com/t/debug-vars/31661 "2019-11-14T16:15:04Z")

</div>

Dear all, I would like to have the nRam and nCPU of this following output. How I can sort this output with a var? The following content of my result: debug: var: result.content ok: \[localhost\] =\> { “result.conten…

---

## [Attaching files with the Ansible Jira module](https://forum.ansible.com/t/attaching-files-with-the-ansible-jira-module/31660)

<div class="topic-metadata">

**Author:** [@Necati\_Karyeli](https://forum.ansible.com/u/Necati_Karyeli)\
**Replies:** 0\
**Last updated:** [November 14, 2019, 3:25pm UTC](https://forum.ansible.com/t/attaching-files-with-the-ansible-jira-module/31660 "2019-11-14T15:25:57Z")

</div>

Hi, Does anyone has any experience with attaching files with the Ansible Jira module? I have tried the following but it returns HTTP Error 400 other operations like transition and comment are working fine name: ‘at…

---

## [Need to Extract data from the Ansible debug out put](https://forum.ansible.com/t/need-to-extract-data-from-the-ansible-debug-out-put/31652)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 7\
**Last updated:** [November 14, 2019, 1:25pm UTC](https://forum.ansible.com/t/need-to-extract-data-from-the-ansible-debug-out-put/31652 "2019-11-14T13:25:25Z")

</div>

Hi , I have an playbook for Vmware Powercli : tasks: name: Run PowerShellGet VM script command: pwsh /tmp/vcsa\_getVM.ps1 ignore\_errors: yes changed\_when: false register: powershell\_output\_getVM name: Debug Ge…

---

## [Multiple values in variable](https://forum.ansible.com/t/multiple-values-in-variable/31648)

<div class="topic-metadata">

**Author:** [@Oxs](https://forum.ansible.com/u/Oxs)\
**Replies:** 5\
**Last updated:** [November 14, 2019, 9:39am UTC](https://forum.ansible.com/t/multiple-values-in-variable/31648 "2019-11-14T09:39:07Z")

</div>

Hi guys, I have create a loop in my playbook to set multiple values for lvol and vg. How I can write my ansible-playbook command with multiple values in a variable? Example: ansible-playbook data-fs.yml -i inventory …

---

## [New Ansible releases 2.7.15, 2.8.7, and 2.9.1](https://forum.ansible.com/t/new-ansible-releases-2-7-15-2-8-7-and-2-9-1/31655)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [November 14, 2019, 1:34am UTC](https://forum.ansible.com/t/new-ansible-releases-2-7-15-2-8-7-and-2-9-1/31655 "2019-11-14T01:34:51Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.7.15, 2.8.7, and 2.9.1 are now available! How do you get it?

---

## [Parsing a csv file](https://forum.ansible.com/t/parsing-a-csv-file/31628)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 4\
**Last updated:** [November 13, 2019, 10:46pm UTC](https://forum.ansible.com/t/parsing-a-csv-file/31628 "2019-11-13T22:46:26Z")

</div>

I would like to parse a CSV. I need the column with the header ‘ErrorMessage’. I am reading the variable and gathering the information, but I don’t know how to pull out the info I need form the results: \` name: Parse…

---

## [Playbook run order](https://forum.ansible.com/t/playbook-run-order/31653)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 1\
**Last updated:** [November 13, 2019, 10:42pm UTC](https://forum.ansible.com/t/playbook-run-order/31653 "2019-11-13T22:42:04Z")

</div>

Hi all! Just a simple question but it may be just looking into it too deep. I’ve got several playbooks that I run sequentially manually during a server build. How would I create a separate playbook and call these other…

---

## [Connection lost in middle of script execution](https://forum.ansible.com/t/connection-lost-in-middle-of-script-execution/31651)

<div class="topic-metadata">

**Author:** [@Marc-antoine\_Desroch](https://forum.ansible.com/u/Marc-antoine_Desroch)\
**Replies:** 0\
**Last updated:** [November 13, 2019, 4:11pm UTC](https://forum.ansible.com/t/connection-lost-in-middle-of-script-execution/31651 "2019-11-13T16:11:57Z")

</div>

Ansible configuration: config file for ansible – https://ansible.com/ =============================================== nearly all parameters can be overridden in ansible-playbook or with command line flags. ansible will …

---

## [RHEL Patching through Ansible](https://forum.ansible.com/t/rhel-patching-through-ansible/31641)

<div class="topic-metadata">

**Author:** [@Sadanand\_Alegaonkar](https://forum.ansible.com/u/Sadanand_Alegaonkar)\
**Replies:** 4\
**Last updated:** [November 13, 2019, 3:05pm UTC](https://forum.ansible.com/t/rhel-patching-through-ansible/31641 "2019-11-13T15:05:57Z")

</div>

Hello Team, we are going to introduce patching through Ansible. Following step manually we perform. pre artifacts. Before patching plain reboot. Patching excluding kernel and reboot Kernel patching and reboot. Above…

---

## [selecting hosts from multiple host groups in playbook](https://forum.ansible.com/t/selecting-hosts-from-multiple-host-groups-in-playbook/31650)

<div class="topic-metadata">

**Author:** [@jepper](https://forum.ansible.com/u/jepper)\
**Replies:** 0\
**Last updated:** [November 13, 2019, 2:59pm UTC](https://forum.ansible.com/t/selecting-hosts-from-multiple-host-groups-in-playbook/31650 "2019-11-13T14:59:12Z")

</div>

The intent is to hit the following hosts host\_group01 host\_group02 another\_host\_group provided it’s also in the group environment\_test I’ve tried something along this in the playbook hosts: ~host\_group(01:02):anoth…

---

## [Ansible automation on AIX with permitrootlogin no](https://forum.ansible.com/t/ansible-automation-on-aix-with-permitrootlogin-no/31624)

<div class="topic-metadata">

**Author:** [@ks\_Iam](https://forum.ansible.com/u/ks_Iam)\
**Replies:** 3\
**Last updated:** [November 13, 2019, 2:10pm UTC](https://forum.ansible.com/t/ansible-automation-on-aix-with-permitrootlogin-no/31624 "2019-11-13T14:10:42Z")

</div>

I’m working with my vendor to setup the Ansible to harden my AIX servers. I was informed that Ansible required to login as root via SSH to perform the task, which means the sshd\_config has to enable permitrootlogin, desp…

---

## [ansible/service now integration specifically requests](https://forum.ansible.com/t/ansible-service-now-integration-specifically-requests/31649)

<div class="topic-metadata">

**Author:** [@Doug\_OLeary](https://forum.ansible.com/u/Doug_OLeary)\
**Replies:** 0\
**Last updated:** [November 13, 2019, 2:08pm UTC](https://forum.ansible.com/t/ansible-service-now-integration-specifically-requests/31649 "2019-11-13T14:08:27Z")

</div>

Hi; My interaction with service now is typically tasks (TASK####) that come from requested items (RITM####) that come from requests (REQ####). All the examples I can find for the ansible service now modules are for inci…

---

## [Selenium and Ansible](https://forum.ansible.com/t/selenium-and-ansible/31647)

<div class="topic-metadata">

**Author:** [@Vikrant](https://forum.ansible.com/u/Vikrant)\
**Replies:** 1\
**Last updated:** [November 13, 2019, 10:34am UTC](https://forum.ansible.com/t/selenium-and-ansible/31647 "2019-11-13T10:34:02Z")

</div>

Hi All, We are automating one of our internal web app using Selenium as those tasks are not possible through Ansible but there are few pre-tasks which we are taking care of using Ansible, can somebody please advise how …

---

## [using json as a password for docker\_login module](https://forum.ansible.com/t/using-json-as-a-password-for-docker-login-module/31631)

<div class="topic-metadata">

**Author:** [@user57](https://forum.ansible.com/u/user57)\
**Replies:** 2\
**Last updated:** [November 12, 2019, 6:20pm UTC](https://forum.ansible.com/t/using-json-as-a-password-for-docker-login-module/31631 "2019-11-12T18:20:09Z")

</div>

I already asked that question on ansible-devel mailing list: https://groups.google.com/forum/#!msg/ansible-devel/aXyKGHRtDcQ/GvUxgopZAQAJ I am trying to log into private docker container registry and I need to use a jso…

---

## [Deploy packages as order in manifest.prop file](https://forum.ansible.com/t/deploy-packages-as-order-in-manifest-prop-file/31643)

<div class="topic-metadata">

**Author:** [@Uppara\_venkat](https://forum.ansible.com/u/Uppara_venkat)\
**Replies:** 3\
**Last updated:** [November 12, 2019, 5:52pm UTC](https://forum.ansible.com/t/deploy-packages-as-order-in-manifest-prop-file/31643 "2019-11-12T17:52:49Z")

</div>

Hi all, I have manifest.prop files it has some deploy package names as below; ud\_AGENT =discovery/package/UDAgentManagement\_10.33.0.zip norm\_RULES =discovery/package/NormalizationRules\_100.zip udi\_DATA\_MODEL =discove…

---

## [Execute roles with grouped hosts](https://forum.ansible.com/t/execute-roles-with-grouped-hosts/31642)

<div class="topic-metadata">

**Author:** [@bozho](https://forum.ansible.com/u/bozho)\
**Replies:** 4\
**Last updated:** [November 12, 2019, 5:22pm UTC](https://forum.ansible.com/t/execute-roles-with-grouped-hosts/31642 "2019-11-12T17:22:16Z")

</div>

Hi all, I'm trying to figure out a way to execute a role once per subgroup of hosts in a single ansible-playbook run. Here's an outline of my scenario: I want to configure multiple docker swarms. My inventory looks s…

---

## [Query Regarding REST API integration in Ansible](https://forum.ansible.com/t/query-regarding-rest-api-integration-in-ansible/31282)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 9\
**Last updated:** [November 12, 2019, 2:21pm UTC](https://forum.ansible.com/t/query-regarding-rest-api-integration-in-ansible/31282 "2019-11-12T14:21:41Z")

</div>

Hi Ansible Gurus, specially Dick Visser and vlado and all experts, I have a question regarding Ansible Integration of REST APIs (built in JAVA). Assume I have 100 of Resource End Point( or Service End point) where each …

---

## [Running ansible playbook with different versions](https://forum.ansible.com/t/running-ansible-playbook-with-different-versions/31638)

<div class="topic-metadata">

**Author:** [@Ganesh\_Biradar](https://forum.ansible.com/u/Ganesh_Biradar)\
**Replies:** 5\
**Last updated:** [November 12, 2019, 10:06am UTC](https://forum.ansible.com/t/running-ansible-playbook-with-different-versions/31638 "2019-11-12T10:06:29Z")

</div>

Is there any way to run different playbooks in the same directory with different ansible versions using the ansible-playbook command?

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

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