# Latest

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

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

**Page:** 477

---

## [var/fact validation](https://forum.ansible.com/t/var-fact-validation/29876)

<div class="topic-metadata">

**Author:** [@Justin\_DynamicD](https://forum.ansible.com/u/Justin_DynamicD)\
**Replies:** 0\
**Last updated:** [March 13, 2019, 8:47pm UTC](https://forum.ansible.com/t/var-fact-validation/29876 "2019-03-13T20:47:00Z")

</div>

I’ve gotten in a habit of creating a simple dictionary of expected variables when making a role so that it fails early. Something like this: \` name: “Validate Variables” vars: required\_vars: name: foo msg: “var foo…

---

## [How to install Ansible to run under Python3 on Amazon Linux?](https://forum.ansible.com/t/how-to-install-ansible-to-run-under-python3-on-amazon-linux/29870)

<div class="topic-metadata">

**Author:** [@gigit1000](https://forum.ansible.com/u/gigit1000)\
**Replies:** 4\
**Last updated:** [March 13, 2019, 8:43pm UTC](https://forum.ansible.com/t/how-to-install-ansible-to-run-under-python3-on-amazon-linux/29870 "2019-03-13T20:43:11Z")

</div>

There are directions here: https://docs.ansible.com/ansible/latest/reference\_appendices/python\_3\_support.html Which say: The easiest way to run /usr/bin/ansible under Python 3 is to install it with the Python3 version …

---

## [Ansible 2.7.8, role dependencies(github repo) in meta/main.yml are not downloaded automatically, why? still have to run ansible-galaxy install -r requirements.yml?](https://forum.ansible.com/t/ansible-2-7-8-role-dependencies-github-repo-in-meta-main-yml-are-not-downloaded-automatically-why-still-have-to-run-ansible-galaxy-install-r-requirements-yml/29872)

<div class="topic-metadata">

**Author:** [@rella.guo](https://forum.ansible.com/u/rella.guo)\
**Replies:** 1\
**Last updated:** [March 13, 2019, 7:03pm UTC](https://forum.ansible.com/t/ansible-2-7-8-role-dependencies-github-repo-in-meta-main-yml-are-not-downloaded-automatically-why-still-have-to-run-ansible-galaxy-install-r-requirements-yml/29872 "2019-03-13T19:03:50Z")

</div>

Ansible verison: 2.7.8 I define role B as Role A dependencies in meta/main.yml like this: dependencies: - { role: B, src: 'git+https://github.xxx/xxx/B.git', version: '1.0' } When I run playbook with Role A, I suppos…

---

## [newbie question and help resolving warnings](https://forum.ansible.com/t/newbie-question-and-help-resolving-warnings/29874)

<div class="topic-metadata">

**Author:** [@Gaetano\_Giacalone](https://forum.ansible.com/u/Gaetano_Giacalone)\
**Replies:** 0\
**Last updated:** [March 13, 2019, 6:14pm UTC](https://forum.ansible.com/t/newbie-question-and-help-resolving-warnings/29874 "2019-03-13T18:14:49Z")

</div>

have posted one of my first roles on galaxy, and I am getting warnings. ./galaxy/downloads/tmpQjSwNY/tasks/main.yml:40: \[E503\] Tasks that run when changed should likely be handlers If someone would be so kind as to giv…

---

## [I want to make a specific loop but don't know the way how to do it](https://forum.ansible.com/t/i-want-to-make-a-specific-loop-but-dont-know-the-way-how-to-do-it/28162)

<div class="topic-metadata">

**Author:** [@Julien](https://forum.ansible.com/u/Julien)\
**Replies:** 5\
**Last updated:** [March 13, 2019, 2:07pm UTC](https://forum.ansible.com/t/i-want-to-make-a-specific-loop-but-dont-know-the-way-how-to-do-it/28162 "2019-03-13T14:07:01Z")

</div>

Hi, Today i’m writting a play and i want to do a specific loop but i dont know to do it, here is the explanation: I’ve created a survey on Tower that is defining the {{ tma\_name }} var, this var should have one, or mul…

---

## [Strange error: Do you have azure\>=2.0.0 installed? Try \`pip install ansible\[azure\]\`- No module named containerservice](https://forum.ansible.com/t/strange-error-do-you-have-azure-2-0-0-installed-try-pip-install-ansible-azure-no-module-named-containerservice/29860)

<div class="topic-metadata">

**Author:** [@tselios.petros](https://forum.ansible.com/u/tselios.petros)\
**Replies:** 2\
**Last updated:** [March 13, 2019, 1:27pm UTC](https://forum.ansible.com/t/strange-error-do-you-have-azure-2-0-0-installed-try-pip-install-ansible-azure-no-module-named-containerservice/29860 "2019-03-13T13:27:20Z")

</div>

Hello, I am puzzled from the under subject error message. I have a very simple playbook that creates an Azure Resource Group. However, when I execute it it generates this error message. Of course, I have the latest pa…

---

## [Encrypted passwords not working, clear text does](https://forum.ansible.com/t/encrypted-passwords-not-working-clear-text-does/29869)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [March 12, 2019, 9:12pm UTC](https://forum.ansible.com/t/encrypted-passwords-not-working-clear-text-does/29869 "2019-03-12T21:12:11Z")

</div>

For my credssp (windows) to work, I need ansible\_user and ansible\_password set. I can set these in plain text in a variable, and everything works fine; however, when experimenting with vars\_prompt I attempt the same thin…

---

## [Tower "loopback" jobs](https://forum.ansible.com/t/tower-loopback-jobs/29833)

<div class="topic-metadata">

**Author:** [@dmakovey](https://forum.ansible.com/u/dmakovey)\
**Replies:** 6\
**Last updated:** [March 12, 2019, 7:59pm UTC](https://forum.ansible.com/t/tower-loopback-jobs/29833 "2019-03-12T19:59:58Z")

</div>

I'm trying to write a playbook that would invoke other playbooks (to use for bulk playbook launches): roles/tower\_job

---

## [Scaling PostgreSQL to higher instance counts](https://forum.ansible.com/t/scaling-postgresql-to-higher-instance-counts/29868)

<div class="topic-metadata">

**Author:** [@Steven\_Bateman](https://forum.ansible.com/u/Steven_Bateman)\
**Replies:** 0\
**Last updated:** [March 12, 2019, 7:14pm UTC](https://forum.ansible.com/t/scaling-postgresql-to-higher-instance-counts/29868 "2019-03-12T19:14:04Z")

</div>

I’m running into challenges getting AWX scaled up in Kubernetes to higher instance counts, specifically that it is overwhelming our PostgreSQL 9.6 external database with connections. Our target instance count is 16, and …

---

## [retrieving facter\_ec2\_metadata from hostvars - can't get element in macs](https://forum.ansible.com/t/retrieving-facter-ec2-metadata-from-hostvars-cant-get-element-in-macs/29828)

<div class="topic-metadata">

**Author:** [@Chris\_Jefferies](https://forum.ansible.com/u/Chris_Jefferies)\
**Replies:** 5\
**Last updated:** [March 12, 2019, 7:03pm UTC](https://forum.ansible.com/t/retrieving-facter-ec2-metadata-from-hostvars-cant-get-element-in-macs/29828 "2019-03-12T19:03:10Z")

</div>

I can drill down into hostvars like this: \` debug: msg: “looking at interface macs: {{ hostvars\[inventory\_hostname\].facter\_ec2\_metadata.network.interfaces.macs }}” \` And I get something like this: \` ok: \[db01.dev…

---

## [AWX - Check mode reporting](https://forum.ansible.com/t/awx-check-mode-reporting/29866)

<div class="topic-metadata">

**Author:** [@smalenfant](https://forum.ansible.com/u/smalenfant)\
**Replies:** 0\
**Last updated:** [March 12, 2019, 2:33pm UTC](https://forum.ansible.com/t/awx-check-mode-reporting/29866 "2019-03-12T14:33:27Z")

</div>

Hi, We starting evaluating AWX a while back and finally upgraded to 3.0.1 last night. So far so good. Currently the Dashboard only display Green/Red depending if the playbook succeeds or fails… We would love to see “or…

---

## [Inlinefile module keep adding a line when it does exists](https://forum.ansible.com/t/inlinefile-module-keep-adding-a-line-when-it-does-exists/29838)

<div class="topic-metadata">

**Author:** [@Jean\_Carlo](https://forum.ansible.com/u/Jean_Carlo)\
**Replies:** 2\
**Last updated:** [March 12, 2019, 1:03pm UTC](https://forum.ansible.com/t/inlinefile-module-keep-adding-a-line-when-it-does-exists/29838 "2019-03-12T13:03:00Z")

</div>

Hello I want to change the configuration of vim, in order to do set mouse=r. At the beginning this line is commented by default. Using inlinefile module, I check by regexp the line commented and I replace it with the n…

---

## [Export gathering facts to .csv file](https://forum.ansible.com/t/export-gathering-facts-to-csv-file/29832)

<div class="topic-metadata">

**Author:** [@michal.misiak](https://forum.ansible.com/u/michal.misiak)\
**Replies:** 3\
**Last updated:** [March 12, 2019, 10:32am UTC](https://forum.ansible.com/t/export-gathering-facts-to-csv-file/29832 "2019-03-12T10:32:34Z")

</div>

Hello, I’m new user in Ansible technology and I have a problem with export gathering facts about host to .csv file. I would like to generate report in .csv file from ansible-playbook results. Ansible playbook reads fac…

---

## [Apt Update exclude Packages (Blacklist)](https://forum.ansible.com/t/apt-update-exclude-packages-blacklist/29861)

<div class="topic-metadata">

**Author:** [@Face\_Gaming](https://forum.ansible.com/u/Face_Gaming)\
**Replies:** 4\
**Last updated:** [March 12, 2019, 8:50am UTC](https://forum.ansible.com/t/apt-update-exclude-packages-blacklist/29861 "2019-03-12T08:50:51Z")

</div>

Hey Guys I would like to know, if its possible to exclude packages from an apt update or a blacklist for packages, which shouldn’t be updated. Thanks for your help! Greetings

---

## [Can ios\_config handle responding to two prompts in a row?](https://forum.ansible.com/t/can-ios-config-handle-responding-to-two-prompts-in-a-row/29859)

<div class="topic-metadata">

**Author:** [@ibdg](https://forum.ansible.com/u/ibdg)\
**Replies:** 3\
**Last updated:** [March 11, 2019, 10:52pm UTC](https://forum.ansible.com/t/can-ios-config-handle-responding-to-two-prompts-in-a-row/29859 "2019-03-11T22:52:13Z")

</div>

Cross posted from stackoverflow I’m setting up a root CA on a Cisco IOS router and trying to use the ios\_command module to run the command crypto pki server my-ca start. On running it, the following happens: GW1(confi…

---

## [Testing inventory plugins](https://forum.ansible.com/t/testing-inventory-plugins/29580)

<div class="topic-metadata">

**Author:** [@Josh\_R](https://forum.ansible.com/u/Josh_R)\
**Replies:** 4\
**Last updated:** [March 11, 2019, 10:48pm UTC](https://forum.ansible.com/t/testing-inventory-plugins/29580 "2019-03-11T22:48:48Z")

</div>

I’m writing an inventory plugin that gets a list of online machines from an active directory OU structure and dynamically creates groups and host details from it. However, as I write it - I’d like to be able to test the…

---

## [display\_args\_to\_stdout=true - Is it possible to suppress internal args?](https://forum.ansible.com/t/display-args-to-stdout-true-is-it-possible-to-suppress-internal-args/29744)

<div class="topic-metadata">

**Author:** [@Henning\_Juva](https://forum.ansible.com/u/Henning_Juva)\
**Replies:** 1\
**Last updated:** [March 11, 2019, 10:46pm UTC](https://forum.ansible.com/t/display-args-to-stdout-true-is-it-possible-to-suppress-internal-args/29744 "2019-03-11T22:46:57Z")

</div>

I recently upgraded to 2.7.7 from 2.4 and using display\_args\_to\_stdout=true. After upgrade many modules (like stat,command,shell etc) have started including ansible internal args into what is logged for the task on the c…

---

## [with\_items question](https://forum.ansible.com/t/with-items-question/29856)

<div class="topic-metadata">

**Author:** [@liverpudlian88](https://forum.ansible.com/u/liverpudlian88)\
**Replies:** 4\
**Last updated:** [March 11, 2019, 10:12pm UTC](https://forum.ansible.com/t/with-items-question/29856 "2019-03-11T22:12:25Z")

</div>

Hello, I am kinda new to Ansible, I would appreciate if you could assist me with a question, I am trying to do the following in a role in a playbook 1- Copy 3 zip files to a specific destination 2- Unzip only the firs…

---

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

<div class="topic-metadata">

**Author:** [@Jeffrey\_Agnitsch](https://forum.ansible.com/u/Jeffrey_Agnitsch)\
**Replies:** 1\
**Last updated:** [March 11, 2019, 8:06pm UTC](https://forum.ansible.com/t/conditionals/29862 "2019-03-11T20:06:27Z")

</div>

Trying to do a conditional that when my inventory host name once converted to a string is greater than a number Inventory file server1 server2 server3 - … … … … … server205 this is the important parts of the r…

---

## [How can i run a block of playbook instructions only if they pass the specified condition?](https://forum.ansible.com/t/how-can-i-run-a-block-of-playbook-instructions-only-if-they-pass-the-specified-condition/29761)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 4\
**Last updated:** [March 11, 2019, 4:38pm UTC](https://forum.ansible.com/t/how-can-i-run-a-block-of-playbook-instructions-only-if-they-pass-the-specified-condition/29761 "2019-03-11T16:38:08Z")

</div>

I have got a playbook where i need to check if the host fact for reboot is set to true, i need to execute the rest of the instructions for that particular host in the inventory only if the reboot condition is true. Foll…

---

## [Access to variables defined in roles from python script](https://forum.ansible.com/t/access-to-variables-defined-in-roles-from-python-script/29837)

<div class="topic-metadata">

**Author:** [@wnelis294](https://forum.ansible.com/u/wnelis294)\
**Replies:** 2\
**Last updated:** [March 11, 2019, 11:43am UTC](https://forum.ansible.com/t/access-to-variables-defined-in-roles-from-python-script/29837 "2019-03-11T11:43:41Z")

</div>

I am an ansible newbie. My first non-trivial ansible project is to update / optimize the configuration of Juniper switches. The ansible modules are not run on the Juniper switch but locally on the ansible controller. The…

---

## [Process to set proxy in tower-CLI](https://forum.ansible.com/t/process-to-set-proxy-in-tower-cli/29845)

<div class="topic-metadata">

**Author:** [@RC1](https://forum.ansible.com/u/RC1)\
**Replies:** 1\
**Last updated:** [March 11, 2019, 7:06am UTC](https://forum.ansible.com/t/process-to-set-proxy-in-tower-cli/29845 "2019-03-11T07:06:24Z")

</div>

Can help fo the below issue would be appreciated. Process to set proxy in tower-CLI Thanks

---

## [aws inventory: \`hostname\_variable = tag\_Name\` not working](https://forum.ansible.com/t/aws-inventory-hostname-variable-tag-name-not-working/29858)

<div class="topic-metadata">

**Author:** [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Replies:** 1\
**Last updated:** [March 10, 2019, 11:55pm UTC](https://forum.ansible.com/t/aws-inventory-hostname-variable-tag-name-not-working/29858 "2019-03-10T23:55:49Z")

</div>

I haven’t used Ansible with AWS for a while. I am using it on a new project. I see a newer option that didn’t used to be there: hostname\_variable = tag\_Name My understanding of this variable is that it will use the Na…

---

## [ansible all -a "/bin/echo hello"   unable to run command](https://forum.ansible.com/t/ansible-all-a-bin-echo-hello-unable-to-run-command/29857)

<div class="topic-metadata">

**Author:** [@rajendar\_t](https://forum.ansible.com/u/rajendar_t)\
**Replies:** 1\
**Last updated:** [March 10, 2019, 5:48pm UTC](https://forum.ansible.com/t/ansible-all-a-bin-echo-hello-unable-to-run-command/29857 "2019-03-10T17:48:45Z")

</div>

Hi All, I am successfully configured ansible in my laptop I am new to the ansible when I run ansible all -a “/bin/echo hello” command I am getting command not found error can you please explain the reason ?? rajenda…

---

## [fetching the right output](https://forum.ansible.com/t/fetching-the-right-output/29480)

<div class="topic-metadata">

**Author:** [@Vino\_Thiyagu](https://forum.ansible.com/u/Vino_Thiyagu)\
**Replies:** 3\
**Last updated:** [March 9, 2019, 10:06pm UTC](https://forum.ansible.com/t/fetching-the-right-output/29480 "2019-03-09T22:06:00Z")

</div>

HI team, I have a output as below. but still I need to pick the right value fro this output. I need only the change no as in record field, it working fine for single run but it failing when in loop. can some one help me…

---

## [infini\_host module](https://forum.ansible.com/t/infini-host-module/29820)

<div class="topic-metadata">

**Author:** [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Replies:** 6\
**Last updated:** [March 9, 2019, 3:23pm UTC](https://forum.ansible.com/t/infini-host-module/29820 "2019-03-09T15:23:00Z")

</div>

Hi, I have infinidat storage and I’m trying to use the ansible modules, but I’m stucked on the connection. I cannot figure out from the documentation how to connect to the storage. I have the following:

---

## [win\_update on domain controller using a "Domain User" account.](https://forum.ansible.com/t/win-update-on-domain-controller-using-a-domain-user-account/29846)

<div class="topic-metadata">

**Author:** [@Flavio\_Gobber](https://forum.ansible.com/u/Flavio_Gobber)\
**Replies:** 3\
**Last updated:** [March 8, 2019, 11:38pm UTC](https://forum.ansible.com/t/win-update-on-domain-controller-using-a-domain-user-account/29846 "2019-03-08T23:38:30Z")

</div>

Hello, I am using a “Domain User” to upgrade the windows server 2012 and 2016, on these server I have assigned to the this account to the local “Administrators” group. With this method the update works well. How can I…

---

## [rpm-python centos5 package package\_facts](https://forum.ansible.com/t/rpm-python-centos5-package-package-facts/29854)

<div class="topic-metadata">

**Author:** [@Adam\_E](https://forum.ansible.com/u/Adam_E)\
**Replies:** 5\
**Last updated:** [March 8, 2019, 11:32pm UTC](https://forum.ansible.com/t/rpm-python-centos5-package-package-facts/29854 "2019-03-08T23:32:29Z")

</div>

hey there, i’m trying to manage a bunch of centos5/rhel5 systems with ansible 2.7.5 On the target host I am able to install python 2.6 from epel which is all good and ansible runs just fine for most stuff. The issue is …

---

## [how can I use ansible openssl\_certificate module to gather facts about installed ssl certificates on application servers?](https://forum.ansible.com/t/how-can-i-use-ansible-openssl-certificate-module-to-gather-facts-about-installed-ssl-certificates-on-application-servers/29855)

<div class="topic-metadata">

**Author:** [@Jason\_Yu](https://forum.ansible.com/u/Jason_Yu)\
**Replies:** 0\
**Last updated:** [March 8, 2019, 10:41pm UTC](https://forum.ansible.com/t/how-can-i-use-ansible-openssl-certificate-module-to-gather-facts-about-installed-ssl-certificates-on-application-servers/29855 "2019-03-08T22:41:44Z")

</div>

Dear ansible friends here: I got a request to collect the facts like expiration date, issuer for each ssl certificates on linux servers. I plan to use openssl\_certificate module and use the return values to pop out the…

---

## [nginx: \[emerg\] getpwnam("nginx") failed](https://forum.ansible.com/t/nginx-emerg-getpwnam-nginx-failed/29814)

<div class="topic-metadata">

**Author:** [@AFAHOUNKO\_Danny](https://forum.ansible.com/u/AFAHOUNKO_Danny)\
**Replies:** 10\
**Last updated:** [March 8, 2019, 8:14pm UTC](https://forum.ansible.com/t/nginx-emerg-getpwnam-nginx-failed/29814 "2019-03-08T20:14:37Z")

</div>

Hello, Build awx project is failing with nginx error. I have pulled the lasted version of the code. awx\_1 | (changed: True) awx\_1 | 2019-03-03 21:57:18,845 DEBUG awx.main.dispatch publish awx.main.tasks.apply\_cluster…

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

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