# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=260

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

**Page:** 261

---

## [Cannot use the pexpect module with Keybase pgp and multiple ':' characters](https://forum.ansible.com/t/cannot-use-the-pexpect-module-with-keybase-pgp-and-multiple-characters/31147)

<div class="topic-metadata">

**Author:** [@queglay](https://forum.ansible.com/u/queglay)\
**Replies:** 13\
**Last updated:** [September 5, 2019, 1:09pm UTC](https://forum.ansible.com/t/cannot-use-the-pexpect-module-with-keybase-pgp-and-multiple-characters/31147 "2019-09-05T13:09:54Z")

</div>

I’m wondering why the pexpect module is failing in this circumstance, perhaps my regex is not right, but the double ‘:’ may be messing with things as well and I’m not sure how to approach handling it. if I run- \` keyb…

---

## [How to assign set\_fact variable some value based on condition ?](https://forum.ansible.com/t/how-to-assign-set-fact-variable-some-value-based-on-condition/31205)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 2\
**Last updated:** [September 5, 2019, 12:53pm UTC](https://forum.ansible.com/t/how-to-assign-set-fact-variable-some-value-based-on-condition/31205 "2019-09-05T12:53:40Z")

</div>

MYUSER should be assigned value “wsadm” or “user1” based on the output of {{ command\_result.stdout.split(‘\\t’)\[1\] }} I tried the below however, I’m getting error when I run. My playbook looks like below: \`

---

## [\[find module\]\[mail module\] Report only file name list](https://forum.ansible.com/t/find-module-mail-module-report-only-file-name-list/31203)

<div class="topic-metadata">

**Author:** [@Tran\_Khang](https://forum.ansible.com/u/Tran_Khang)\
**Replies:** 4\
**Last updated:** [September 5, 2019, 9:22am UTC](https://forum.ansible.com/t/find-module-mail-module-report-only-file-name-list/31203 "2019-09-05T09:22:16Z")

</div>

Hi all, I’m trying combine find module and mail module to report to my email only the list of files I need that were finded in specific folder. I try many ways but always receive full output. Do anyone can help? My tas…

---

## [Need Help for REST API integration with Ansible](https://forum.ansible.com/t/need-help-for-rest-api-integration-with-ansible/30846)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 7\
**Last updated:** [September 5, 2019, 5:13am UTC](https://forum.ansible.com/t/need-help-for-rest-api-integration-with-ansible/30846 "2019-09-05T05:13:35Z")

</div>

There is URI module present in Ansible which lets you invoke REST End Points and it works preety well. Currently i have lot of JSON Objects and corresponding REST end points ofcourse for each. Is it a good practice for…

---

## [playbook problem](https://forum.ansible.com/t/playbook-problem/31202)

<div class="topic-metadata">

**Author:** [@Matt\_Luk](https://forum.ansible.com/u/Matt_Luk)\
**Replies:** 0\
**Last updated:** [September 5, 2019, 4:09am UTC](https://forum.ansible.com/t/playbook-problem/31202 "2019-09-05T04:09:04Z")

</div>

I want use AWX to shut down the VM in hyper-V. powershell query: $a = Get-ClusterGroup | Where-Object {$.Name -like “server1” -and $.State -eq ‘Online’} $b = $a.OwnerNode Stop-VM -Name “vm1” -ComputerName $b …

---

## [Set SELinux to permissive mode and reboot.](https://forum.ansible.com/t/set-selinux-to-permissive-mode-and-reboot/31201)

<div class="topic-metadata">

**Author:** [@Zolvaring](https://forum.ansible.com/u/Zolvaring)\
**Replies:** 0\
**Last updated:** [September 5, 2019, 2:36am UTC](https://forum.ansible.com/t/set-selinux-to-permissive-mode-and-reboot/31201 "2019-09-05T02:36:08Z")

</div>

I’m almost positive you’d have to register the SELinux task return to get this to work, ‘reboot\_required’ is not going to exist outside of that scope, I think what you would need is:

---

## [AWX randomly fails to connect to hosts behind bastion](https://forum.ansible.com/t/awx-randomly-fails-to-connect-to-hosts-behind-bastion/31149)

<div class="topic-metadata">

**Author:** [@Alberto\_Jimenez\_Loza](https://forum.ansible.com/u/Alberto_Jimenez_Loza)\
**Replies:** 3\
**Last updated:** [September 5, 2019, 12:05am UTC](https://forum.ansible.com/t/awx-randomly-fails-to-connect-to-hosts-behind-bastion/31149 "2019-09-05T00:05:14Z")

</div>

I use a proxy to connect to some machines and therefore I use the variable ansible\_ssh\_common\_args. vars: ansible\_ssh\_common\_args: ‘-o ProxyCommand=“/usr/bin/nc --proxy-type socks5 --proxy xxxxxxxxxx:1080 %h %p”’ I fo…

---

## [Tower API Error When Removing Host From Inventory](https://forum.ansible.com/t/tower-api-error-when-removing-host-from-inventory/31190)

<div class="topic-metadata">

**Author:** [@Cade\_Lambert](https://forum.ansible.com/u/Cade_Lambert)\
**Replies:** 1\
**Last updated:** [September 4, 2019, 11:03pm UTC](https://forum.ansible.com/t/tower-api-error-when-removing-host-from-inventory/31190 "2019-09-04T23:03:07Z")

</div>

Not sure if this is a bug or not but I thought I’d see if anyone else has tried this and experienced the same issue. I’m attempting to use the Tower API to add and remove hosts from a temp static inventory. Adding hosts …

---

## [Announcing AWX 7.0.0](https://forum.ansible.com/t/announcing-awx-7-0-0/31200)

<div class="topic-metadata">

**Author:** [@rpetrell](https://forum.ansible.com/u/rpetrell)\
**Replies:** 0\
**Last updated:** [September 4, 2019, 8:20pm UTC](https://forum.ansible.com/t/announcing-awx-7-0-0/31200 "2019-09-04T20:20:34Z")

</div>

Hey everyone, We're excited to announce a new major version of AWX, 7.0.0. Here's what's new: - AWX now detects and installs Ansible Collections defined in your project (note - this feature only works in Ansible 2.9+)…

---

## [In the '/api/v2/job\_host\_summaries' path, does "dark" mean that the host was "unreachable"?](https://forum.ansible.com/t/in-the-api-v2-job-host-summaries-path-does-dark-mean-that-the-host-was-unreachable/31199)

<div class="topic-metadata">

**Author:** [@David\_Safanyuk](https://forum.ansible.com/u/David_Safanyuk)\
**Replies:** 3\
**Last updated:** [September 4, 2019, 6:52pm UTC](https://forum.ansible.com/t/in-the-api-v2-job-host-summaries-path-does-dark-mean-that-the-host-was-unreachable/31199 "2019-09-04T18:52:12Z")

</div>

I have attached a snippet of the api response in question. (attachments)data.json (720 Bytes)

---

## [How Alter postgres table definitions with ansible?](https://forum.ansible.com/t/how-alter-postgres-table-definitions-with-ansible/31185)

<div class="topic-metadata">

**Author:** [@simon\_read](https://forum.ansible.com/u/simon_read)\
**Replies:** 1\
**Last updated:** [September 4, 2019, 3:34pm UTC](https://forum.ansible.com/t/how-alter-postgres-table-definitions-with-ansible/31185 "2019-09-04T15:34:50Z")

</div>

We are using ansible to deploy postgres/schema/tables. We require to patch the tables and therefore require to alter the tables (e.g. add or change type of columns). There seems to be two modules related to this. postg…

---

## [Requires Help ,using Python for accessing dictionary values from yaml file](https://forum.ansible.com/t/requires-help-using-python-for-accessing-dictionary-values-from-yaml-file/31188)

<div class="topic-metadata">

**Author:** [@Pawan\_Kumar1](https://forum.ansible.com/u/Pawan_Kumar1)\
**Replies:** 8\
**Last updated:** [September 4, 2019, 2:30pm UTC](https://forum.ansible.com/t/requires-help-using-python-for-accessing-dictionary-values-from-yaml-file/31188 "2019-09-04T14:30:52Z")

</div>

Using Python script to access values from yaml dictionary & print some of the values as list . For Example - Parse the each key and extract the “product\_name”, “release\_candidate” and “version“ & Print results as list T…

---

## [Set SELinux to permissive mode and reboot.](https://forum.ansible.com/t/set-selinux-to-permissive-mode-and-reboot/31197)

<div class="topic-metadata">

**Author:** [@racke](https://forum.ansible.com/u/racke)\
**Replies:** 0\
**Last updated:** [September 4, 2019, 1:51pm UTC](https://forum.ansible.com/t/set-selinux-to-permissive-mode-and-reboot/31197 "2019-09-04T13:51:16Z")

</div>

Hello All, I need to set SELinux to permissive mode and reboot. When I run my playbook I get an error. Playbook: \> --- -name:SetSELinuxto permissive mode. selinux: policy:targeted state:permissive when:ansible\_…

---

## [open firewall for http traffic SLES 15](https://forum.ansible.com/t/open-firewall-for-http-traffic-sles-15/31193)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 2\
**Last updated:** [September 4, 2019, 8:28am UTC](https://forum.ansible.com/t/open-firewall-for-http-traffic-sles-15/31193 "2019-09-04T08:28:26Z")

</div>

sudo pip install firewall then run the playbook again

---

## [Ansible and Azure](https://forum.ansible.com/t/ansible-and-azure/31189)

<div class="topic-metadata">

**Author:** [@Lucas\_Chies](https://forum.ansible.com/u/Lucas_Chies)\
**Replies:** 3\
**Last updated:** [September 4, 2019, 8:16am UTC](https://forum.ansible.com/t/ansible-and-azure/31189 "2019-09-04T08:16:33Z")

</div>

Hello guys, I’ve a doubt … I’ve a ansible script that create an windows VM on Azure, but I already have the vnet created in and hosted in another Resource Group. I don’t know how can I create my script to put this VM i…

---

## [Looking For Advice On Convincing My Boss To Implement Ansible](https://forum.ansible.com/t/looking-for-advice-on-convincing-my-boss-to-implement-ansible/31195)

<div class="topic-metadata">

**Author:** [@Chrono\_7](https://forum.ansible.com/u/Chrono_7)\
**Replies:** 0\
**Last updated:** [September 4, 2019, 2:22am UTC](https://forum.ansible.com/t/looking-for-advice-on-convincing-my-boss-to-implement-ansible/31195 "2019-09-04T02:22:07Z")

</div>

Hello all, I’m looking for some advice on “selling” Ansible to my boss, and I figured this would be a good place to bring this up. I’m currently working at an MSP and would like to implement Ansible to help with system…

---

## [Temporarily disable Ansible from running on a host for 1 hour](https://forum.ansible.com/t/temporarily-disable-ansible-from-running-on-a-host-for-1-hour/31194)

<div class="topic-metadata">

**Author:** [@Nima\_V](https://forum.ansible.com/u/Nima_V)\
**Replies:** 1\
**Last updated:** [September 4, 2019, 12:09am UTC](https://forum.ansible.com/t/temporarily-disable-ansible-from-running-on-a-host-for-1-hour/31194 "2019-09-04T00:09:52Z")

</div>

I have Ansible running regularly via Jenkins. There are times where I want to prevent a host from running ansible temporarily. What is the best way to temporarily disable Ansible so that it does not run when Jenkins runs…

---

## [problems with initial auth setup for AWX to hosts, when have working ansible](https://forum.ansible.com/t/problems-with-initial-auth-setup-for-awx-to-hosts-when-have-working-ansible/31192)

<div class="topic-metadata">

**Author:** [@Philip\_Brown](https://forum.ansible.com/u/Philip_Brown)\
**Replies:** 0\
**Last updated:** [September 3, 2019, 6:10pm UTC](https://forum.ansible.com/t/problems-with-initial-auth-setup-for-awx-to-hosts-when-have-working-ansible/31192 "2019-09-03T18:10:25Z")

</div>

howdy folks, I am new to all this, and have just set up an initial ansible install with a few registered hosts in /etc/ansible/hosts ansible all -m ping works fine. So then I grabbed AWX 6.1 and did a docker-compose …

---

## [AWX 6.1.0 : Database relation Error](https://forum.ansible.com/t/awx-6-1-0-database-relation-error/31163)

<div class="topic-metadata">

**Author:** [@Cedric\_A](https://forum.ansible.com/u/Cedric_A)\
**Replies:** 1\
**Last updated:** [September 3, 2019, 4:42pm UTC](https://forum.ansible.com/t/awx-6-1-0-database-relation-error/31163 "2019-09-03T16:42:46Z")

</div>

Hi all, I’m trying to install AWX 6.1.0 on my Ubuntu 16.04.5 with an external postgre database 9.6 in SLES 12. Before to test this latest version, I had the AWX version 1.0.6.15 and .41 (yes it’s very old …

---

## [Thoughts on Dynamic Variables](https://forum.ansible.com/t/thoughts-on-dynamic-variables/31178)

<div class="topic-metadata">

**Author:** [@Cade\_Lambert](https://forum.ansible.com/u/Cade_Lambert)\
**Replies:** 6\
**Last updated:** [September 3, 2019, 4:14pm UTC](https://forum.ansible.com/t/thoughts-on-dynamic-variables/31178 "2019-09-03T16:14:01Z")

</div>

I wanted to see how you guys go about building dynamic variables. We have some playbooks/roles that require variables to be built based on various things, such as user input or other variables. I usually end up building …

---

## [AWX Error when trying to run Job](https://forum.ansible.com/t/awx-error-when-trying-to-run-job/31191)

<div class="topic-metadata">

**Author:** [@Nathan\_Farmer](https://forum.ansible.com/u/Nathan_Farmer)\
**Replies:** 0\
**Last updated:** [September 3, 2019, 3:39pm UTC](https://forum.ansible.com/t/awx-error-when-trying-to-run-job/31191 "2019-09-03T15:39:38Z")

</div>

I am trying to my playbook, and I’m getting an error I am unfamiliar with. I attached a screenshot. Here is the error: Traceback (most recent call last): File “/var/lib/awx/venv/awx/lib64/python3.6/site-packages/awx/mai…

---

## [Ansible - create a list from variable](https://forum.ansible.com/t/ansible-create-a-list-from-variable/31184)

<div class="topic-metadata">

**Author:** [@TheSmiths](https://forum.ansible.com/u/TheSmiths)\
**Replies:** 1\
**Last updated:** [September 3, 2019, 3:10pm UTC](https://forum.ansible.com/t/ansible-create-a-list-from-variable/31184 "2019-09-03T15:10:32Z")

</div>

Hi, I would like to create a list from parsing a variable that contains multiple ips separated by a comma. The variable: ips\_input: “,1.1.1.1/32,2.2.2.2/32,3.3.3.3/32” every item in the list should contain ip/mask. t…

---

## [playbook fails when run through Ansible tower](https://forum.ansible.com/t/playbook-fails-when-run-through-ansible-tower/31186)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 3\
**Last updated:** [September 3, 2019, 6:58am UTC](https://forum.ansible.com/t/playbook-fails-when-run-through-ansible-tower/31186 "2019-09-03T06:58:10Z")

</div>

It clearly states the reason. Try updating the password in credentials. Maybe a typo is causing this.

---

## [Ansible Tower AWX not execut my model](https://forum.ansible.com/t/ansible-tower-awx-not-execut-my-model/31187)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 1\
**Last updated:** [September 3, 2019, 6:33am UTC](https://forum.ansible.com/t/ansible-tower-awx-not-execut-my-model/31187 "2019-09-03T06:33:35Z")

</div>

Hey !! I use Ansible with same moment and ansible tower awx. Ansible Tower awx worked perfectly but now when i execut my model, ansible tower awx he remains waiting with an empty deployment So, when i execut my model …

---

## [Need a help to create S3 bucket using Ansible](https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106)

<div class="topic-metadata">

**Author:** [@Amit\_Kulkarni](https://forum.ansible.com/u/Amit_Kulkarni)\
**Replies:** 28\
**Last updated:** [September 2, 2019, 11:03pm UTC](https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106 "2019-09-02T23:03:34Z")

</div>

Hi All, Need urgent help I am getting below error while creating S3 bucket using playbook. AWS keys I have set up as Environmental variables. Let me know if I am missing anything. Below is the playbbok

---

## [Install with SSL Certificate](https://forum.ansible.com/t/install-with-ssl-certificate/31177)

<div class="topic-metadata">

**Author:** [@Adam\_Henson](https://forum.ansible.com/u/Adam_Henson)\
**Replies:** 4\
**Last updated:** [September 2, 2019, 5:44pm UTC](https://forum.ansible.com/t/install-with-ssl-certificate/31177 "2019-09-02T17:44:48Z")

</div>

Hi All, I am attempting to install AWX and have it run with our own SSL certificate. I have a (PEM) certificate file and a private key. However, whilst I can see the line in the inventory file to specify the ssl\_certifi…

---

## [Support for installing Ansible on Windows](https://forum.ansible.com/t/support-for-installing-ansible-on-windows/31129)

<div class="topic-metadata">

**Author:** [@John\_Thompson](https://forum.ansible.com/u/John_Thompson)\
**Replies:** 6\
**Last updated:** [September 2, 2019, 5:02pm UTC](https://forum.ansible.com/t/support-for-installing-ansible-on-windows/31129 "2019-09-02T17:02:35Z")

</div>

Hi, I have done some searching but can’t see if there is any update on supporting the installation of Ansible on Windows? I’d be interested to know if there are any plans? https://docs.ansible.com/ansible/latest/user\_g…

---

## [Ansible for windows](https://forum.ansible.com/t/ansible-for-windows/31093)

<div class="topic-metadata">

**Author:** [@uday1kiran](https://forum.ansible.com/u/uday1kiran)\
**Replies:** 3\
**Last updated:** [September 2, 2019, 4:58pm UTC](https://forum.ansible.com/t/ansible-for-windows/31093 "2019-09-02T16:58:03Z")

</div>

Hi, I wrote an autoit exe which will launch out application,test its functionality and store the logs in results.txt I want ansible to copy the autoit exe, a config file and our application to a vm amd launch the autoi…

---

## [chnaging all passwords on linux box](https://forum.ansible.com/t/chnaging-all-passwords-on-linux-box/31174)

<div class="topic-metadata">

**Author:** [@Andrew\_Morgan](https://forum.ansible.com/u/Andrew_Morgan)\
**Replies:** 5\
**Last updated:** [August 31, 2019, 7:27pm UTC](https://forum.ansible.com/t/chnaging-all-passwords-on-linux-box/31174 "2019-08-31T19:27:54Z")

</div>

Hello All, I have a task to change all the password on a vpnbox and then give the user their password. I have been researching and think I found a way to do it, but I am not sure how I then get the password to output to…

---

## [How to pass stdout of a variable belonging to different Ansible play ?](https://forum.ansible.com/t/how-to-pass-stdout-of-a-variable-belonging-to-different-ansible-play/31176)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 5\
**Last updated:** [August 31, 2019, 8:24am UTC](https://forum.ansible.com/t/how-to-pass-stdout-of-a-variable-belonging-to-different-ansible-play/31176 "2019-08-31T08:24:03Z")

</div>

How to pass “stdout” of a variable “command\_result” belonging to Ansible Play-1 to shell module of a different Play-2? My playbook looks like below: \` name: Play 1 hosts: localhost tasks: name: “Collect Output” …

[Previous page](https://forum.ansible.com/c/archives/31.md?page=259)

[Next page](https://forum.ansible.com/c/archives/31.md?page=261)
