# Ansible Project

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

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

**Page:** 195

---

## [Ansible : ERROR! SSH encountered an unknown error during the connection](https://forum.ansible.com/t/ansible-error-ssh-encountered-an-unknown-error-during-the-connection/30149)

<div class="topic-metadata">

**Author:** [@nilesh\_bhadane](https://forum.ansible.com/u/nilesh_bhadane)\
**Replies:** 5\
**Last updated:** [April 18, 2019, 9:53pm UTC](https://forum.ansible.com/t/ansible-error-ssh-encountered-an-unknown-error-during-the-connection/30149 "2019-04-18T21:53:10Z")

</div>

Hi, I am new the Ansible. I have setup ansible on Ubuntu machine as follows : $ sudo apt-get update $ sudo apt-get install software-properties-common $ sudo apt-add-repository --yes --update ppa:ansible/ansible . -\>\> …

---

## [Ansible "ERROR! SSH encountered an unknown error during the connection](https://forum.ansible.com/t/ansible-error-ssh-encountered-an-unknown-error-during-the-connection/30150)

<div class="topic-metadata">

**Author:** [@Gaetano\_Giacalone](https://forum.ansible.com/u/Gaetano_Giacalone)\
**Replies:** 1\
**Last updated:** [April 18, 2019, 9:09pm UTC](https://forum.ansible.com/t/ansible-error-ssh-encountered-an-unknown-error-during-the-connection/30150 "2019-04-18T21:09:29Z")

</div>

From your control host type ssh-copy-id -I (remote ip) to copy public key

---

## [user module on IBM AIX](https://forum.ansible.com/t/user-module-on-ibm-aix/30101)

<div class="topic-metadata">

**Author:** [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Replies:** 2\
**Last updated:** [April 18, 2019, 5:54pm UTC](https://forum.ansible.com/t/user-module-on-ibm-aix/30101 "2019-04-18T17:54:26Z")

</div>

Hi, I’m trying to use the user module to create users on AIX, but I’m getting errors and I think the problem comes from the password hash that I’m using. The role runs fine on Linux, but not on AIX. What is the best w…

---

## [Subsequent play do not runs when upper one fails](https://forum.ansible.com/t/subsequent-play-do-not-runs-when-upper-one-fails/30092)

<div class="topic-metadata">

**Author:** [@amit\_ahuja](https://forum.ansible.com/u/amit_ahuja)\
**Replies:** 1\
**Last updated:** [April 18, 2019, 4:30pm UTC](https://forum.ansible.com/t/subsequent-play-do-not-runs-when-upper-one-fails/30092 "2019-04-18T16:30:16Z")

</div>

Hi, i have a condition where lower plays don’t get executed when upper play fail on some condition . i need to run my second play also inside same yml file if above play gets fail, how can i do this ?? play with localho…

---

## [Use the version of the role as variable in a template](https://forum.ansible.com/t/use-the-version-of-the-role-as-variable-in-a-template/30148)

<div class="topic-metadata">

**Author:** [@Werner\_Dijkerman](https://forum.ansible.com/u/Werner_Dijkerman)\
**Replies:** 0\
**Last updated:** [April 18, 2019, 4:29pm UTC](https://forum.ansible.com/t/use-the-version-of-the-role-as-variable-in-a-template/30148 "2019-04-18T16:29:36Z")

</div>

Hi, I’m curious if there is a Ansible variable available that I can use that describes the version of a role. In a requirements.yml file, like the following: \` src: dj-wasabi.zabbix-server version: 1.4.0 \` A vers…

---

## [Ansible playbook execution | root restriction](https://forum.ansible.com/t/ansible-playbook-execution-root-restriction/30094)

<div class="topic-metadata">

**Author:** [@subin\_alex](https://forum.ansible.com/u/subin_alex)\
**Replies:** 2\
**Last updated:** [April 18, 2019, 4:29pm UTC](https://forum.ansible.com/t/ansible-playbook-execution-root-restriction/30094 "2019-04-18T16:29:07Z")

</div>

Hi All, We are facing customer restriction on providing root access to run the ansible playbook .Our playbook needs root access to execute smooth.They are apprehensive about the commands executed by playbook thinking if…

---

## [please help](https://forum.ansible.com/t/please-help/30123)

<div class="topic-metadata">

**Author:** [@ritesh\_r](https://forum.ansible.com/u/ritesh_r)\
**Replies:** 2\
**Last updated:** [April 18, 2019, 4:03pm UTC](https://forum.ansible.com/t/please-help/30123 "2019-04-18T16:03:35Z")

</div>

ansible all -m ping 10.1.0.6 | UNREACHABLE! =\> { “changed”: false, “msg”: “Failed to connect to the host via ssh: Permission denied (publickey,password).”, “unreachable”: true }

---

## [Error while executed yml file](https://forum.ansible.com/t/error-while-executed-yml-file/30125)

<div class="topic-metadata">

**Author:** [@vikram\_acharya](https://forum.ansible.com/u/vikram_acharya)\
**Replies:** 4\
**Last updated:** [April 18, 2019, 4:01pm UTC](https://forum.ansible.com/t/error-while-executed-yml-file/30125 "2019-04-18T16:01:21Z")

</div>

Hello Team Am pretty new to Ansible trying , am getting an error while executing yml file . Here am trying to install httpd services on one of web server i have inventory file below are the details ip details added am …

---

## [ansible script to do remote execution of templates](https://forum.ansible.com/t/ansible-script-to-do-remote-execution-of-templates/30137)

<div class="topic-metadata">

**Author:** [@rashmi\_nair](https://forum.ansible.com/u/rashmi_nair)\
**Replies:** 1\
**Last updated:** [April 18, 2019, 3:58pm UTC](https://forum.ansible.com/t/ansible-script-to-do-remote-execution-of-templates/30137 "2019-04-18T15:58:10Z")

</div>

Hi All, I have a scenario where I need to execute ansible script which will run the templates on remote server. I have list of remote servers which when given to delegate\_to is not working and fileglob is not copying th…

---

## [format of the /etc/ansible/hosts file](https://forum.ansible.com/t/format-of-the-etc-ansible-hosts-file/30134)

<div class="topic-metadata">

**Author:** [@erichymowitz](https://forum.ansible.com/u/erichymowitz)\
**Replies:** 4\
**Last updated:** [April 18, 2019, 3:53pm UTC](https://forum.ansible.com/t/format-of-the-etc-ansible-hosts-file/30134 "2019-04-18T15:53:20Z")

</div>

This is probably an FAQ, and I apologize, but I can’t find this explicitly written anywhere. In my /etc/ansible/hosts file, I have a few hosts that are not in any group, followed by a bunch of groups with hosts hostA …

---

## [how to set python interpreter between different roles](https://forum.ansible.com/t/how-to-set-python-interpreter-between-different-roles/30132)

<div class="topic-metadata">

**Author:** [@christian.tremel](https://forum.ansible.com/u/christian.tremel)\
**Replies:** 2\
**Last updated:** [April 18, 2019, 3:50pm UTC](https://forum.ansible.com/t/how-to-set-python-interpreter-between-different-roles/30132 "2019-04-18T15:50:47Z")

</div>

so i have this play to do some rpm package management. this involves removing the python package from the system. so i install some fallback python package which should be used while the sytem python is not available. m…

---

## [When: inventory\_hostname not in ./my\_file.txt](https://forum.ansible.com/t/when-inventory-hostname-not-in-my-file-txt/30143)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 1\
**Last updated:** [April 18, 2019, 3:46pm UTC](https://forum.ansible.com/t/when-inventory-hostname-not-in-my-file-txt/30143 "2019-04-18T15:46:59Z")

</div>

Hi all, I have this file “my\_file.txt” with this content : 1,user1,host1 2,user2,host2 My inventory is : host5 I want condition “when” for skip same task if inventory\_hostname is not in my file “my\_file.txt” exemp…

---

## [Need help for parsing json](https://forum.ansible.com/t/need-help-for-parsing-json/30147)

<div class="topic-metadata">

**Author:** [@fred\_goasmat](https://forum.ansible.com/u/fred_goasmat)\
**Replies:** 0\
**Last updated:** [April 18, 2019, 2:24pm UTC](https://forum.ansible.com/t/need-help-for-parsing-json/30147 "2019-04-18T14:24:53Z")

</div>

Hello, In his playbook below I’trying to assert that there only one ingress rule (tcp on port 443 with cidr 0.0.0.0/0) I 've difficulties to understand how to parse it → help :slight\_smile:

---

## [](https://forum.ansible.com/t/30146)

<div class="topic-metadata">

**Author:** [@vikram\_acharya](https://forum.ansible.com/u/vikram_acharya)\
**Replies:** 4\
**Last updated:** [April 18, 2019, 2:12pm UTC](https://forum.ansible.com/t/30146 "2019-04-18T14:12:19Z")

</div>

Hello team , Am trying to install lamp i have written playbook in this manner . My system are system connected AWS i can do ssh to Redhat node from Ansible control server Need help to resolve the problem

---

## [List of items in deb parameter of apt module](https://forum.ansible.com/t/list-of-items-in-deb-parameter-of-apt-module/30144)

<div class="topic-metadata">

**Author:** [@f.floimair.commend](https://forum.ansible.com/u/f.floimair.commend)\
**Replies:** 2\
**Last updated:** [April 18, 2019, 10:13am UTC](https://forum.ansible.com/t/list-of-items-in-deb-parameter-of-apt-module/30144 "2019-04-18T10:13:01Z")

</div>

Hi! Since the with\_items are going to be deprecated and following the porting guide here: https://docs.ansible.com/ansible/latest/porting\_guides/porting\_guide\_2.7.html I tried to rewrite some of my tasks where I am ins…

---

## [repo error from ansible target - amazon](https://forum.ansible.com/t/repo-error-from-ansible-target-amazon/30140)

<div class="topic-metadata">

**Author:** [@AQ1](https://forum.ansible.com/u/AQ1)\
**Replies:** 5\
**Last updated:** [April 18, 2019, 12:24am UTC](https://forum.ansible.com/t/repo-error-from-ansible-target-amazon/30140 "2019-04-18T00:24:18Z")

</div>

\[test@ip-172-31-1-143 ~\]$ ansible webservers -m yum -a ‘name=pyhton-pip state=present’ -u test --become --ask-become-pass SUDO password: 172.31.13.61 | FAILED! =\> { “changed”: false, “failed”: true, “msg”: “Failure …

---

## [unable to install python-pip on EC2 linux - repo error http 404](https://forum.ansible.com/t/unable-to-install-python-pip-on-ec2-linux-repo-error-http-404/30141)

<div class="topic-metadata">

**Author:** [@AQ1](https://forum.ansible.com/u/AQ1)\
**Replies:** 0\
**Last updated:** [April 18, 2019, 12:23am UTC](https://forum.ansible.com/t/unable-to-install-python-pip-on-ec2-linux-repo-error-http-404/30141 "2019-04-18T00:23:26Z")

</div>

\[test@ip-172-31-1-143 ~\]$ ansible webservers -m yum -a ‘name=python-pip state=present’ -u test --become --ask-become-pass SUDO password: 172.31.13.61 | FAILED! =\> { “changed”: false, “failed”: true, “msg”: “https://…

---

## [error repo enablement](https://forum.ansible.com/t/error-repo-enablement/30139)

<div class="topic-metadata">

**Author:** [@AQ1](https://forum.ansible.com/u/AQ1)\
**Replies:** 1\
**Last updated:** [April 17, 2019, 11:50pm UTC](https://forum.ansible.com/t/error-repo-enablement/30139 "2019-04-17T23:50:55Z")

</div>

\[test@ip-172-31-1-143 ~\]$ ansible webservers -m yum -a ‘name=https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm enablerepo=“amzn2-core-debuginfo/2/x86\_64”’ -u test --become --ask-become-pass SUDO pas…

---

## [cant install dependencies for mysql and flask](https://forum.ansible.com/t/cant-install-dependencies-for-mysql-and-flask/30128)

<div class="topic-metadata">

**Author:** [@AQ1](https://forum.ansible.com/u/AQ1)\
**Replies:** 3\
**Last updated:** [April 17, 2019, 10:16pm UTC](https://forum.ansible.com/t/cant-install-dependencies-for-mysql-and-flask/30128 "2019-04-17T22:16:40Z")

</div>

\[test@ip-172-31-1-143 ~\]$ ansible-playbook /home/test/AQ-Project2/playbook.yml -i /home/test/AQ-Project2/inventory.txt PLAY \[Deploy a web application\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TA…

---

## [Windows Lock Workstation](https://forum.ansible.com/t/windows-lock-workstation/30118)

<div class="topic-metadata">

**Author:** [@ground7612](https://forum.ansible.com/u/ground7612)\
**Replies:** 3\
**Last updated:** [April 17, 2019, 8:52pm UTC](https://forum.ansible.com/t/windows-lock-workstation/30118 "2019-04-17T20:52:30Z")

</div>

Hi, I am trying lock the workstation during a play while installing Windows Updates and doing some maintenance activities for an application. This is a highly sensitive and regulated environment. At the moment we are …

---

## [stdout debogage in ansible](https://forum.ansible.com/t/stdout-debogage-in-ansible/30136)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 0\
**Last updated:** [April 17, 2019, 3:28pm UTC](https://forum.ansible.com/t/stdout-debogage-in-ansible/30136 "2019-04-17T15:28:15Z")

</div>

Hi, How delete with command in ansible.cfg the debogage on windows when i show variable ? I don’t want this content when i see a variable : “msg”: { “changed”: false, “failed”: false, It’s possible or not please ? …

---

## [Problem windows when i see variable](https://forum.ansible.com/t/problem-windows-when-i-see-variable/30135)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 3\
**Last updated:** [April 17, 2019, 2:34pm UTC](https://forum.ansible.com/t/problem-windows-when-i-see-variable/30135 "2019-04-17T14:34:41Z")

</div>

Hi all, I have this task : name: “Afficher la date et l’heure” timetest: register: time name: “Afficher le module time” debug: var: time This module must display the date and time on a windows, but i see th…

---

## [I need get to netmask](https://forum.ansible.com/t/i-need-get-to-netmask/30133)

<div class="topic-metadata">

**Author:** [@lander.hernandezmart](https://forum.ansible.com/u/lander.hernandezmart)\
**Replies:** 2\
**Last updated:** [April 17, 2019, 11:44am UTC](https://forum.ansible.com/t/i-need-get-to-netmask/30133 "2019-04-17T11:44:58Z")

</div>

How to get netmask in ansble?? (I know to exist ansible all -i localhost, -m setup -c local but dont serve this)

---

## [Limiting hosts when including playbooks](https://forum.ansible.com/t/limiting-hosts-when-including-playbooks/12278)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein1](https://forum.ansible.com/u/Lorin_Hochstein1)\
**Replies:** 18\
**Last updated:** [April 17, 2019, 10:28am UTC](https://forum.ansible.com/t/limiting-hosts-when-including-playbooks/12278 "2019-04-17T10:28:31Z")

</div>

When including a playbook in another playbook, is there any way to limit the hosts in the child playbook? For example, if I had an existing playbook (e.g., “configure-widget.yaml”) that had its hosts set to “webservers”…

---

## [Run 1 playbok on multiple hosts  with  different  passwords](https://forum.ansible.com/t/run-1-playbok-on-multiple-hosts-with-different-passwords/30131)

<div class="topic-metadata">

**Author:** [@The\_Vandyy\_Vines](https://forum.ansible.com/u/The_Vandyy_Vines)\
**Replies:** 2\
**Last updated:** [April 17, 2019, 6:56am UTC](https://forum.ansible.com/t/run-1-playbok-on-multiple-hosts-with-different-passwords/30131 "2019-04-17T06:56:29Z")

</div>

Hello, I am trying to run ansible playbook on mutiple hosts with different passwords. I tried this: ansible-playbook -i hosts test2.yml --extra-vars “ansible\_user=root ansible\_password=dfth ansible\_password=yuij” But…

---

## [can't run ansible command](https://forum.ansible.com/t/cant-run-ansible-command/30129)

<div class="topic-metadata">

**Author:** [@AQ1](https://forum.ansible.com/u/AQ1)\
**Replies:** 1\
**Last updated:** [April 17, 2019, 12:11am UTC](https://forum.ansible.com/t/cant-run-ansible-command/30129 "2019-04-17T00:11:31Z")

</div>

\[test@ip-172-31-1-143 opt\]$ ansible webservers -m yum -a ‘name=/opt/mysql/mysql80-community-release-el7-2.noarch.rpm state=present’ 172.31.13.61 | FAILED! =\> { “changed”: false, “failed”: true, “msg”: “You need to be…

---

## [can't run playbook - linux aws ec2 controller machine](https://forum.ansible.com/t/cant-run-playbook-linux-aws-ec2-controller-machine/30127)

<div class="topic-metadata">

**Author:** [@AQ1](https://forum.ansible.com/u/AQ1)\
**Replies:** 1\
**Last updated:** [April 16, 2019, 10:26pm UTC](https://forum.ansible.com/t/cant-run-playbook-linux-aws-ec2-controller-machine/30127 "2019-04-16T22:26:19Z")

</div>

\[test@ip-172-31-1-143 AQ-Project2\]$ sudo ansible playbook playbook.yml -i inventory.txt Usage: ansible \[options\] Define and run a single task ‘playbook’ against a set of hosts Options: -a MODULE\_ARGS, --args=MODULE\_…

---

## [Deploy VMware guests on different vcenters](https://forum.ansible.com/t/deploy-vmware-guests-on-different-vcenters/30126)

<div class="topic-metadata">

**Author:** [@Vladimir\_Berezovski](https://forum.ansible.com/u/Vladimir_Berezovski)\
**Replies:** 0\
**Last updated:** [April 16, 2019, 6:27pm UTC](https://forum.ansible.com/t/deploy-vmware-guests-on-different-vcenters/30126 "2019-04-16T18:27:18Z")

</div>

Hi, Due to software licensing limitation we need to deploy some of VMs on separate vcenter and a rest of VMs on another one. What would be a best way to provision VMs on a different vcenters and working with a single in…

---

## [Run custom code before first task in playbook](https://forum.ansible.com/t/run-custom-code-before-first-task-in-playbook/30116)

<div class="topic-metadata">

**Author:** [@Pavel\_Martynov](https://forum.ansible.com/u/Pavel_Martynov)\
**Replies:** 1\
**Last updated:** [April 16, 2019, 4:52pm UTC](https://forum.ansible.com/t/run-custom-code-before-first-task-in-playbook/30116 "2019-04-16T16:52:17Z")

</div>

Hi! I use json facts caching and sometimes this files expires (last modified time \> than configured fact\_caching\_timeout). This is a rare problem, but if it arises - I have non-obvious errors in stdout after running my…

---

## [getting this error while installing ansible tower](https://forum.ansible.com/t/getting-this-error-while-installing-ansible-tower/30124)

<div class="topic-metadata">

**Author:** [@vikram\_acharya](https://forum.ansible.com/u/vikram_acharya)\
**Replies:** 1\
**Last updated:** [April 16, 2019, 12:16pm UTC](https://forum.ansible.com/t/getting-this-error-while-installing-ansible-tower/30124 "2019-04-16T12:16:35Z")

</div>

Hello Ritesh , ansible all -m ping --ask-pass SSH password: 10.1.0.6 | UNREACHABLE! =\> { “changed”: false, “msg”: “Invalid/incorrect password: Permission denied, please try again.”, “unreachable”: true

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

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