# Ansible Project

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

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

**Page:** 137

---

## [When condition is failing in windows ansible](https://forum.ansible.com/t/when-condition-is-failing-in-windows-ansible/32499)

<div class="topic-metadata">

**Author:** [@Uppara\_venkat](https://forum.ansible.com/u/Uppara_venkat)\
**Replies:** 1\
**Last updated:** [March 19, 2020, 8:31am UTC](https://forum.ansible.com/t/when-condition-is-failing-in-windows-ansible/32499 "2020-03-19T08:31:18Z")

</div>

Hi all, I have written below task to copy a file if it is 64-bit windows OS. name: win\_shell: ‘wmic os get osarchitecture | findstr “bit”’ register: result debug: var=result.stdout\_lines name: win\_copy: src…

---

## [How to get Job count in Tower](https://forum.ansible.com/t/how-to-get-job-count-in-tower/32497)

<div class="topic-metadata">

**Author:** [@Sindhuja\_Koneru](https://forum.ansible.com/u/Sindhuja_Koneru)\
**Replies:** 1\
**Last updated:** [March 18, 2020, 10:15pm UTC](https://forum.ansible.com/t/how-to-get-job-count-in-tower/32497 "2020-03-18T22:15:14Z")

</div>

Hello, I am trying to find total number of jobs that are run in week/month from Ansible tower. How can it be achieved , can it be done through a REST API call (or) can it be queried from DB? Please advise. Thank you.…

---

## [postgresql\_info fails](https://forum.ansible.com/t/postgresql-info-fails/32494)

<div class="topic-metadata">

**Author:** [@Hesam\_Bahmanabadi](https://forum.ansible.com/u/Hesam_Bahmanabadi)\
**Replies:** 6\
**Last updated:** [March 18, 2020, 6:17pm UTC](https://forum.ansible.com/t/postgresql-info-fails/32494 "2020-03-18T18:17:25Z")

</div>

Hello I am trying to get this working,but getting following error. is it from ansible or moudle?

---

## [reference role default variable](https://forum.ansible.com/t/reference-role-default-variable/32493)

<div class="topic-metadata">

**Author:** [@Michael\_Stroder](https://forum.ansible.com/u/Michael_Stroder)\
**Replies:** 2\
**Last updated:** [March 18, 2020, 1:39pm UTC](https://forum.ansible.com/t/reference-role-default-variable/32493 "2020-03-18T13:39:00Z")

</div>

HI! I'd like to override a default for var\_b defined in roles/role\_b/defaults/main.yml with a value of var\_a defined in roles/role\_a/defaults/main.yml Is this possible? Can I reference role vars? Or is this rather…

---

## [Run one simples playbook with roles.](https://forum.ansible.com/t/run-one-simples-playbook-with-roles/32491)

<div class="topic-metadata">

**Author:** [@Marcelo\_Garcia\_Palma](https://forum.ansible.com/u/Marcelo_Garcia_Palma)\
**Replies:** 3\
**Last updated:** [March 18, 2020, 12:18pm UTC](https://forum.ansible.com/t/run-one-simples-playbook-with-roles/32491 "2020-03-18T12:18:29Z")

</div>

Hi guys! I’m need someone help me. I am new at world of ansible, then I create one sample for learning more, but I have a problem with roles. I have two roles one myql and one webserver, I did the struture correctly, …

---

## [Ansible Operation output diffrent result with “with\_sequence” and “debug module”](https://forum.ansible.com/t/ansible-operation-output-diffrent-result-with-with-sequence-and-debug-module/32492)

<div class="topic-metadata">

**Author:** [@SeungJoon](https://forum.ansible.com/u/SeungJoon)\
**Replies:** 1\
**Last updated:** [March 18, 2020, 6:38am UTC](https://forum.ansible.com/t/ansible-operation-output-diffrent-result-with-with-sequence-and-debug-module/32492 "2020-03-18T06:38:53Z")

</div>

\*\*My playbook sample :\*\* - name: Memory check debug: msg='{% if "{{ item }} percent" in HOST\_MGMT4.stdout %} MEMORY CHECK {% else %} MEMORY OK {% endif %}' register: result\_memory with\_sequence: '60-100'

---

## [Ansible - errno 101 network is unreachable](https://forum.ansible.com/t/ansible-errno-101-network-is-unreachable/32471)

<div class="topic-metadata">

**Author:** [@Santhosh\_Ganesan](https://forum.ansible.com/u/Santhosh_Ganesan)\
**Replies:** 11\
**Last updated:** [March 18, 2020, 4:53am UTC](https://forum.ansible.com/t/ansible-errno-101-network-is-unreachable/32471 "2020-03-18T04:53:43Z")

</div>

Newbie to ansible, trying to run a playbook to one of host, \</TASK \[Gathering Facts\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ok: \[172.28.158.115\] TASK \[include\_role : tes.kibana\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [ansible privilege escalation ( sudo su - )](https://forum.ansible.com/t/ansible-privilege-escalation-sudo-su/32445)

<div class="topic-metadata">

**Author:** [@Suresh\_R](https://forum.ansible.com/u/Suresh_R)\
**Replies:** 3\
**Last updated:** [March 17, 2020, 10:35pm UTC](https://forum.ansible.com/t/ansible-privilege-escalation-sudo-su/32445 "2020-03-17T22:35:39Z")

</div>

i have command sudo su - is working fine when we do ssh to the server. BTW we were unable to execute the same through ansible. Here is my ansible playbook and ansible.cfg

---

## [Using a variable inside reference](https://forum.ansible.com/t/using-a-variable-inside-reference/32488)

<div class="topic-metadata">

**Author:** [@Jason\_Bullen](https://forum.ansible.com/u/Jason_Bullen)\
**Replies:** 1\
**Last updated:** [March 17, 2020, 8:56pm UTC](https://forum.ansible.com/t/using-a-variable-inside-reference/32488 "2020-03-17T20:56:46Z")

</div>

I have 2 var files with a top level of dev and prod. All sublevels are the same. For example: dev: accesspolicies: policy1 policy 2 and prod: accesspolicies: policy1 There is a problem that i keep running into …

---

## [Ansible installation on Puppy Linux](https://forum.ansible.com/t/ansible-installation-on-puppy-linux/32485)

<div class="topic-metadata">

**Author:** [@Saurabh\_Chaudhary](https://forum.ansible.com/u/Saurabh_Chaudhary)\
**Replies:** 3\
**Last updated:** [March 17, 2020, 2:15pm UTC](https://forum.ansible.com/t/ansible-installation-on-puppy-linux/32485 "2020-03-17T14:15:57Z")

</div>

Hi All Can u please help me to install ansible on puppy linux . At PPM i can find very older version of Ansible .

---

## [passing variable in another playbook](https://forum.ansible.com/t/passing-variable-in-another-playbook/32478)

<div class="topic-metadata">

**Author:** [@mahesh\_g\_o](https://forum.ansible.com/u/mahesh_g_o)\
**Replies:** 2\
**Last updated:** [March 17, 2020, 1:32pm UTC](https://forum.ansible.com/t/passing-variable-in-another-playbook/32478 "2020-03-17T13:32:01Z")

</div>

i have created the list using set\_fact and i want use this list in another playbook. i have stored the value in the ouput. how do i use it in another playbook?? tasks: name: Initialize an empty list for our strings …

---

## [Running a task on multi groups using when](https://forum.ansible.com/t/running-a-task-on-multi-groups-using-when/32481)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 3\
**Last updated:** [March 17, 2020, 10:10am UTC](https://forum.ansible.com/t/running-a-task-on-multi-groups-using-when/32481 "2020-03-17T10:10:09Z")

</div>

HI, I have a task that runs only on servers that are under Kafka group. How can i run the task on Kafka and Webserver groups only. Thanks - name: install java-8-openjdk' packages yum: name: \['java-1.8.0-openjdk'…

---

## [Ansible ignore aws\_ec2 inventory plugin](https://forum.ansible.com/t/ansible-ignore-aws-ec2-inventory-plugin/32484)

<div class="topic-metadata">

**Author:** [@wagaboond](https://forum.ansible.com/u/wagaboond)\
**Replies:** 0\
**Last updated:** [March 17, 2020, 9:24am UTC](https://forum.ansible.com/t/ansible-ignore-aws-ec2-inventory-plugin/32484 "2020-03-17T09:24:44Z")

</div>

Hello, i’m trying to get instance information, but my inventory has ignored by ansible\\ec2 modules. /etc/ansible/ansible.cfg \` \[inventory\] enable inventory plugins, default: ‘host\_list’, ‘script’, ‘auto’, ‘yaml’, ‘in…

---

## [Getting command not found when executing using shell module](https://forum.ansible.com/t/getting-command-not-found-when-executing-using-shell-module/32483)

<div class="topic-metadata">

**Author:** [@racke](https://forum.ansible.com/u/racke)\
**Replies:** 0\
**Last updated:** [March 17, 2020, 7:29am UTC](https://forum.ansible.com/t/getting-command-not-found-when-executing-using-shell-module/32483 "2020-03-17T07:29:46Z")

</div>

Here is my playbook: cat test.yml \> -name:Play2 hosts:targetserver tasks: \\-copy:src=\\./centosscript\\.sh dest=\\~mode=775 \\-shell:\\~/centosscript\\.sh \> Here is my shell script: cat centosscript.sh \> #/bin/ksh …

---

## [getting command not found error when using ansible shell module to execute shell script.](https://forum.ansible.com/t/getting-command-not-found-error-when-using-ansible-shell-module-to-execute-shell-script/32482)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 0\
**Last updated:** [March 17, 2020, 7:11am UTC](https://forum.ansible.com/t/getting-command-not-found-error-when-using-ansible-shell-module-to-execute-shell-script/32482 "2020-03-17T07:11:59Z")

</div>

Here is my playbook: cat test.yml - name: Play 2 hosts: targetserver tasks: - copy: src=./centosscript.sh dest=~ mode=775 - shell: ~/centosscript.sh Here is my shell script: cat centosscript.sh #/bin/ksh grabip…

---

## [RE: Re: \[ansible-project\] Another Ansible Question](https://forum.ansible.com/t/re-re-ansible-project-another-ansible-question/32480)

<div class="topic-metadata">

**Author:** [@Michael\_Cooper](https://forum.ansible.com/u/Michael_Cooper)\
**Replies:** 0\
**Last updated:** [March 17, 2020, 5:51am UTC](https://forum.ansible.com/t/re-re-ansible-project-another-ansible-question/32480 "2020-03-17T05:51:33Z")

</div>

Thanks Phil, I appreciate it.

---

## [RE: \[ansible-project\] Re: Another Ansible Question](https://forum.ansible.com/t/re-ansible-project-re-another-ansible-question/32479)

<div class="topic-metadata">

**Author:** [@Michael\_Cooper](https://forum.ansible.com/u/Michael_Cooper)\
**Replies:** 0\
**Last updated:** [March 17, 2020, 5:49am UTC](https://forum.ansible.com/t/re-ansible-project-re-another-ansible-question/32479 "2020-03-17T05:49:39Z")

</div>

Thank you, This looks very promising.

---

## [Another Ansible Question](https://forum.ansible.com/t/another-ansible-question/32476)

<div class="topic-metadata">

**Author:** [@Michael\_Cooper](https://forum.ansible.com/u/Michael_Cooper)\
**Replies:** 5\
**Last updated:** [March 17, 2020, 3:11am UTC](https://forum.ansible.com/t/another-ansible-question/32476 "2020-03-17T03:11:43Z")

</div>

Hey Guys, I am trying to get ansible working on docker. The image that I am using is ansible/ansible and there are no instructions for a run line on it. So this is what I tried but it doesn’t work. docker run -dit --n…

---

## [ansible-freeipa client install error](https://forum.ansible.com/t/ansible-freeipa-client-install-error/32454)

<div class="topic-metadata">

**Author:** [@Andrew\_Meyer1](https://forum.ansible.com/u/Andrew_Meyer1)\
**Replies:** 3\
**Last updated:** [March 16, 2020, 3:21pm UTC](https://forum.ansible.com/t/ansible-freeipa-client-install-error/32454 "2020-03-16T15:21:06Z")

</div>

I am trying to use the ansible-playbook to install the client on CentOS 8. I am getting the following error: TASK \[ipaclient : Install - Check if one of password or keytabs are set\]

---

## [Creating a AWS VPC with IPv6 addresses](https://forum.ansible.com/t/creating-a-aws-vpc-with-ipv6-addresses/32457)

<div class="topic-metadata">

**Author:** [@Ralf\_Weber](https://forum.ansible.com/u/Ralf_Weber)\
**Replies:** 4\
**Last updated:** [March 16, 2020, 3:04pm UTC](https://forum.ansible.com/t/creating-a-aws-vpc-with-ipv6-addresses/32457 "2020-03-16T15:04:27Z")

</div>

Moin! I wanted to use ansible to create a VPC with Amazon supplied IPv6 addresses. In the Console this is an option, when I create and VPC, but I could not find anything in ec2\_vpc\_net for that. When I use ec2\_vpc\_net\_…

---

## [Win\_ping failing with Correct Credentials](https://forum.ansible.com/t/win-ping-failing-with-correct-credentials/32441)

<div class="topic-metadata">

**Author:** [@Piyush\_Bansal](https://forum.ansible.com/u/Piyush_Bansal)\
**Replies:** 2\
**Last updated:** [March 16, 2020, 11:14am UTC](https://forum.ansible.com/t/win-ping-failing-with-correct-credentials/32441 "2020-03-16T11:14:03Z")

</div>

Hello All, I am trying to win\_ping windows server from ansible but it is failing with error that specified credntials are rejected. I have cross verified multiple times that group\_vars,inventory,hosts etc files are all…

---

## [unable to create directory using ansible file module](https://forum.ansible.com/t/unable-to-create-directory-using-ansible-file-module/32473)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 5\
**Last updated:** [March 16, 2020, 8:44am UTC](https://forum.ansible.com/t/unable-to-create-directory-using-ansible-file-module/32473 "2020-03-16T08:44:57Z")

</div>

Here is my variable file: cat vars.yml \`

---

## [how to run one role out of a playbook host by host in serial one instead of linear or free](https://forum.ansible.com/t/how-to-run-one-role-out-of-a-playbook-host-by-host-in-serial-one-instead-of-linear-or-free/32460)

<div class="topic-metadata">

**Author:** [@Jelle\_de\_Jong](https://forum.ansible.com/u/Jelle_de_Jong)\
**Replies:** 3\
**Last updated:** [March 16, 2020, 8:44am UTC](https://forum.ansible.com/t/how-to-run-one-role-out-of-a-playbook-host-by-host-in-serial-one-instead-of-linear-or-free/32460 "2020-03-16T08:44:00Z")

</div>

Hello everybody, I got a role with a few tasks that do some calculations and writes down the results on a server, the next inventory\_host will use the caclulations to make a new one, now if these tasks are run by multip…

---

## [New to Ansible - Facing issue with ping to target host](https://forum.ansible.com/t/new-to-ansible-facing-issue-with-ping-to-target-host/32469)

<div class="topic-metadata">

**Author:** [@P\_r1](https://forum.ansible.com/u/P_r1)\
**Replies:** 1\
**Last updated:** [March 16, 2020, 2:53am UTC](https://forum.ansible.com/t/new-to-ansible-facing-issue-with-ping-to-target-host/32469 "2020-03-16T02:53:06Z")

</div>

Ansible Control Machine (ip = 1.1.1.1): NAME=“Ubuntu” VERSION=“18.04.3 LTS (Bionic Beaver)” Target Node (ip = 2.2.2.2): NAME=“Amazon Linux” VERSION=“2” I am able to ssh from Ansible Control Machine to Target node i…

---

## [RE: Re: \[ansible-project\] Very Very New to Ansible](https://forum.ansible.com/t/re-re-ansible-project-very-very-new-to-ansible/32467)

<div class="topic-metadata">

**Author:** [@Michael\_Cooper](https://forum.ansible.com/u/Michael_Cooper)\
**Replies:** 0\
**Last updated:** [March 15, 2020, 3:40pm UTC](https://forum.ansible.com/t/re-re-ansible-project-very-very-new-to-ansible/32467 "2020-03-15T15:40:51Z")

</div>

Thank you

---

## [RE: Re: \[ansible-project\] Very Very New to Ansible](https://forum.ansible.com/t/re-re-ansible-project-very-very-new-to-ansible/32463)

<div class="topic-metadata">

**Author:** [@Michael\_Cooper](https://forum.ansible.com/u/Michael_Cooper)\
**Replies:** 2\
**Last updated:** [March 15, 2020, 2:20pm UTC](https://forum.ansible.com/t/re-re-ansible-project-very-very-new-to-ansible/32463 "2020-03-15T14:20:18Z")

</div>

They are both Ubuntu Server 18.04.4 I bet python isn’t installed, Dang it, Thanks for pointing it out.

---

## [RE: Re: \[ansible-project\] Very Very New to Ansible](https://forum.ansible.com/t/re-re-ansible-project-very-very-new-to-ansible/32466)

<div class="topic-metadata">

**Author:** [@Michael\_Cooper](https://forum.ansible.com/u/Michael_Cooper)\
**Replies:** 0\
**Last updated:** [March 15, 2020, 9:47am UTC](https://forum.ansible.com/t/re-re-ansible-project-very-very-new-to-ansible/32466 "2020-03-15T09:47:20Z")

</div>

Got ya, will try that now

---

## [RE: Re: \[ansible-project\] Very Very New to Ansible](https://forum.ansible.com/t/re-re-ansible-project-very-very-new-to-ansible/32465)

<div class="topic-metadata">

**Author:** [@Michael\_Cooper](https://forum.ansible.com/u/Michael_Cooper)\
**Replies:** 0\
**Last updated:** [March 15, 2020, 9:44am UTC](https://forum.ansible.com/t/re-re-ansible-project-very-very-new-to-ansible/32465 "2020-03-15T09:44:44Z")

</div>

“module\_stdout”: “/bin/sh: 1: /usr/bin/python: not found\\r\\n”, I see what you mean good lord how stupid of me ………………

---

## [RE: Re: \[ansible-project\] Very Very New to Ansible](https://forum.ansible.com/t/re-re-ansible-project-very-very-new-to-ansible/32464)

<div class="topic-metadata">

**Author:** [@Michael\_Cooper](https://forum.ansible.com/u/Michael_Cooper)\
**Replies:** 0\
**Last updated:** [March 15, 2020, 9:43am UTC](https://forum.ansible.com/t/re-re-ansible-project-very-very-new-to-ansible/32464 "2020-03-15T09:43:27Z")

</div>

I am pretty sure it isn’t I apologize guys, I am not much for programming stuff but I will pay more attention. Thanks,

---

## [Very Very New to Ansible](https://forum.ansible.com/t/very-very-new-to-ansible/32462)

<div class="topic-metadata">

**Author:** [@Michael\_Cooper](https://forum.ansible.com/u/Michael_Cooper)\
**Replies:** 2\
**Last updated:** [March 15, 2020, 9:40am UTC](https://forum.ansible.com/t/very-very-new-to-ansible/32462 "2020-03-15T09:40:59Z")

</div>

Hello Everyone I built my control machine on a VM w/Ubuntu Server 18.04.4 and ansible 2.5.1. Mind you I am just learning so the version shouldn’t matter that much. I built my first and second target machines and I am te…

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

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