# Latest

**URL:** https://forum.ansible.com/latest.md?page=467

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

**Page:** 468

---

## [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 …

---

## [Git webhook trigger job](https://forum.ansible.com/t/git-webhook-trigger-job/30138)

<div class="topic-metadata">

**Author:** [@Christian\_Sandrini](https://forum.ansible.com/u/Christian_Sandrini)\
**Replies:** 1\
**Last updated:** [April 17, 2019, 8:40pm UTC](https://forum.ansible.com/t/git-webhook-trigger-job/30138 "2019-04-17T20:40:14Z")

</div>

Hi I try to find a way of triggering a job in AWX when there is a new commit in gogs. The standard webhook does not support authentication. Does anyone have a suggestion on how to achieve that? Thanks Chris

---

## [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…

---

## [Database migration fails when deploying on kubernetes](https://forum.ansible.com/t/database-migration-fails-when-deploying-on-kubernetes/30102)

<div class="topic-metadata">

**Author:** [@alancivita](https://forum.ansible.com/u/alancivita)\
**Replies:** 1\
**Last updated:** [April 16, 2019, 4:17pm UTC](https://forum.ansible.com/t/database-migration-fails-when-deploying-on-kubernetes/30102 "2019-04-16T16:17:40Z")

</div>

Hi, i’m trying to install awx on Kubernetes. the playbook fails on Migrate database task with the following error: TASK \[kubernetes : Migrate database\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [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

---

## [K8s module support for  --from-file=hooks](https://forum.ansible.com/t/k8s-module-support-for-from-file-hooks/30122)

<div class="topic-metadata">

**Author:** [@Alon\_Nisser](https://forum.ansible.com/u/Alon_Nisser)\
**Replies:** 0\
**Last updated:** [April 16, 2019, 11:00am UTC](https://forum.ansible.com/t/k8s-module-support-for-from-file-hooks/30122 "2019-04-16T11:00:52Z")

</div>

While I enjoy the new k8s module a lot I failed to find out how to do something like this with it kubectl create configmap service-per-pod-hooks -n metacontroller --from-file=hooks I’ll be glad for any pointers on how …

---

## [Separate Hard Disk guest](https://forum.ansible.com/t/separate-hard-disk-guest/30120)

<div class="topic-metadata">

**Author:** [@lander.hernandezmart](https://forum.ansible.com/u/lander.hernandezmart)\
**Replies:** 2\
**Last updated:** [April 16, 2019, 10:05am UTC](https://forum.ansible.com/t/separate-hard-disk-guest/30120 "2019-04-16T10:05:22Z")

</div>

I need separate hard disk information in number of hard disk and his information. For example, I have 2 disk and only need 1 disk information. My YAML is:

---

## [can't create a category tag](https://forum.ansible.com/t/cant-create-a-category-tag/30121)

<div class="topic-metadata">

**Author:** [@lander.hernandezmart](https://forum.ansible.com/u/lander.hernandezmart)\
**Replies:** 0\
**Last updated:** [April 16, 2019, 9:41am UTC](https://forum.ansible.com/t/cant-create-a-category-tag/30121 "2019-04-16T09:41:26Z")

</div>

I try to create a category in vsphere but have a giant error This is my YAML:

---

## [Ansible retrieve stdout with items loop](https://forum.ansible.com/t/ansible-retrieve-stdout-with-items-loop/30117)

<div class="topic-metadata">

**Author:** [@wanexa77](https://forum.ansible.com/u/wanexa77)\
**Replies:** 2\
**Last updated:** [April 16, 2019, 9:30am UTC](https://forum.ansible.com/t/ansible-retrieve-stdout-with-items-loop/30117 "2019-04-16T09:30:29Z")

</div>

Hi All I want to retrieve multiple output from a command with a with items loop the playbook is like this name: test command: openssl rand -base64 20 register: pwd delegate\_to: localhost with\_items: test1 test t…

---

## [multiple awx\_task containers](https://forum.ansible.com/t/multiple-awx-task-containers/28968)

<div class="topic-metadata">

**Author:** [@Adam\_E](https://forum.ansible.com/u/Adam_E)\
**Replies:** 4\
**Last updated:** [April 16, 2019, 6:51am UTC](https://forum.ansible.com/t/multiple-awx-task-containers/28968 "2019-04-16T06:51:49Z")

</div>

Hi there, I have completed the installation following the guide and am using the docker standalone setup. All works well. I would like to be able to add a second awx\_task container so I can distribute the load across mul…

---

## [how to modify output](https://forum.ansible.com/t/how-to-modify-output/30114)

<div class="topic-metadata">

**Author:** [@fmontaldo3](https://forum.ansible.com/u/fmontaldo3)\
**Replies:** 1\
**Last updated:** [April 16, 2019, 1:56am UTC](https://forum.ansible.com/t/how-to-modify-output/30114 "2019-04-16T01:56:12Z")

</div>

Hi folks: I got the following playbook

---

## [Pip install of Ansible on Ubuntu 16.04 results in broken ansible](https://forum.ansible.com/t/pip-install-of-ansible-on-ubuntu-16-04-results-in-broken-ansible/26321)

<div class="topic-metadata">

**Author:** [@Stephen\_Nesbitt](https://forum.ansible.com/u/Stephen_Nesbitt)\
**Replies:** 2\
**Last updated:** [April 16, 2019, 1:54am UTC](https://forum.ansible.com/t/pip-install-of-ansible-on-ubuntu-16-04-results-in-broken-ansible/26321 "2019-04-16T01:54:31Z")

</div>

All: After installing ansible using pip on an Ubuntu 16.04 system with python 3.5 results in the following error: ERROR! Unexpected Exception, this is probably a bug: (cryptography 1.2.3 (/usr/lib/python3/dist-packages)…

---

## [Ansible-2.8.0b1 available for testing](https://forum.ansible.com/t/ansible-2-8-0b1-available-for-testing/30115)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [April 15, 2019, 8:42pm UTC](https://forum.ansible.com/t/ansible-2-8-0b1-available-for-testing/30115 "2019-04-15T20:42:27Z")

</div>

Hi all- we're happy to announce that Ansible 2.8.0b1 is now available for testing! How do you get it?

[Previous page](https://forum.ansible.com/latest.md?page=466)

[Next page](https://forum.ansible.com/latest.md?page=468)
