# Archives

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

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

**Page:** 260

---

## [Using variables from custom script](https://forum.ansible.com/t/using-variables-from-custom-script/31213)

<div class="topic-metadata">

**Author:** [@Mikel](https://forum.ansible.com/u/Mikel)\
**Replies:** 3\
**Last updated:** [September 9, 2019, 2:49pm UTC](https://forum.ansible.com/t/using-variables-from-custom-script/31213 "2019-09-09T14:49:46Z")

</div>

Howdy all I have a playback that I want to run hourly to check for new hosts and I have a script that returns a variable of new and this host gets the yum update and yum reboot and then come around again this host varia…

---

## [Flatpaks aren't available when using ansible](https://forum.ansible.com/t/flatpaks-arent-available-when-using-ansible/31238)

<div class="topic-metadata">

**Author:** [@zoliky](https://forum.ansible.com/u/zoliky)\
**Replies:** 0\
**Last updated:** [September 9, 2019, 2:11pm UTC](https://forum.ansible.com/t/flatpaks-arent-available-when-using-ansible/31238 "2019-09-09T14:11:27Z")

</div>

Hello, I created a simple playbook for my Fedora workstation. \` TASK \[Flatpak - Installing Cozy\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* changed: \[localhost\] PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Pre-create list of volumes for docker\_container command?](https://forum.ansible.com/t/pre-create-list-of-volumes-for-docker-container-command/31155)

<div class="topic-metadata">

**Author:** [@Koen\_De\_Groote](https://forum.ansible.com/u/Koen_De_Groote)\
**Replies:** 4\
**Last updated:** [September 9, 2019, 1:50pm UTC](https://forum.ansible.com/t/pre-create-list-of-volumes-for-docker-container-command/31155 "2019-09-09T13:50:26Z")

</div>

I’m looking for some help or guidance in trying to create a list of volumes to pass along to docker container, before that actual command. So, the format for this is: volumes: - '{{ dir1 }}:{{ dir1 }}' - '/…

---

## [How to package ansible modules? Can I use setuptools and console\_scripts?](https://forum.ansible.com/t/how-to-package-ansible-modules-can-i-use-setuptools-and-console-scripts/31237)

<div class="topic-metadata">

**Author:** [@Stefan\_Midjich](https://forum.ansible.com/u/Stefan_Midjich)\
**Replies:** 0\
**Last updated:** [September 9, 2019, 1:33pm UTC](https://forum.ansible.com/t/how-to-package-ansible-modules-can-i-use-setuptools-and-console-scripts/31237 "2019-09-09T13:33:16Z")

</div>

Hey I was hoping to package my ansible modules to easier share code between them. So I used setuptools and entry\_points.console\_scripts as you can see here https://gitlab.com/stemid/ansible-siptrack/blob/2eac2c59c9e338…

---

## [Ansible and Satellite 6.4 - Waiting for Promote To Finish](https://forum.ansible.com/t/ansible-and-satellite-6-4-waiting-for-promote-to-finish/31079)

<div class="topic-metadata">

**Author:** [@Cade\_Lambert](https://forum.ansible.com/u/Cade_Lambert)\
**Replies:** 8\
**Last updated:** [September 9, 2019, 1:10pm UTC](https://forum.ansible.com/t/ansible-and-satellite-6-4-waiting-for-promote-to-finish/31079 "2019-09-09T13:10:39Z")

</div>

I created a playbook to connect to Satellite via API, publish new content views, and promote the various lifecycle environments to these new Content View versions, looping through a list of Lifecycle Environments. The is…

---

## [How to iterate over nested list and split it into two groups using add\_host?](https://forum.ansible.com/t/how-to-iterate-over-nested-list-and-split-it-into-two-groups-using-add-host/31227)

<div class="topic-metadata">

**Author:** [@autogun](https://forum.ansible.com/u/autogun)\
**Replies:** 4\
**Last updated:** [September 9, 2019, 12:42pm UTC](https://forum.ansible.com/t/how-to-iterate-over-nested-list-and-split-it-into-two-groups-using-add-host/31227 "2019-09-09T12:42:52Z")

</div>

Hey, Given the following playbook - hosts: localhost gather\_facts: false vars: my\_hosts: \[‘host1’, ‘host2’\] \[‘host3’\] name: Add host add\_host: name: ‘{{ item }}’ groups: “group{{ index }}” loop: “{{ m…

---

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

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 2\
**Last updated:** [September 9, 2019, 11:51am UTC](https://forum.ansible.com/t/shell/31233 "2019-09-09T11:51:32Z")

</div>

Hi, Please help me with this error which I am getting below : play-book:

---

## [Copy files from Local to all Destinations using synchronize module fails.](https://forum.ansible.com/t/copy-files-from-local-to-all-destinations-using-synchronize-module-fails/31230)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 1\
**Last updated:** [September 9, 2019, 10:40am UTC](https://forum.ansible.com/t/copy-files-from-local-to-all-destinations-using-synchronize-module-fails/31230 "2019-09-09T10:40:57Z")

</div>

I wish to copy all files from localhost IP(10.8.33.44) folder location: /app/tmpfiles/ to multiple destination IPs with user id user2 at location /app/IBM/profiles/backup/54166/ I run the playbook from localhost IP(1…

---

## [Easy way to learn Data Science](https://forum.ansible.com/t/easy-way-to-learn-data-science/31229)

<div class="topic-metadata">

**Author:** [@Nishanth\_Shetty](https://forum.ansible.com/u/Nishanth_Shetty)\
**Replies:** 0\
**Last updated:** [September 9, 2019, 7:46am UTC](https://forum.ansible.com/t/easy-way-to-learn-data-science/31229 "2019-09-09T07:46:01Z")

</div>

Data is the backbone of modern development, and not just in the tech industry. Shaping everything from healthcare to gaming to marketing, developers need to have the skills to excel in a data-driven future. At Packt its…

---

## [Any guide / document for configuration of offline awx](https://forum.ansible.com/t/any-guide-document-for-configuration-of-offline-awx/31226)

<div class="topic-metadata">

**Author:** [@Sohel\_Ahmed](https://forum.ansible.com/u/Sohel_Ahmed)\
**Replies:** 0\
**Last updated:** [September 8, 2019, 3:15pm UTC](https://forum.ansible.com/t/any-guide-document-for-configuration-of-offline-awx/31226 "2019-09-08T15:15:56Z")

</div>

Hi Guys, Is there any guide or document that can help me configure offline awx and write playbooks. I have installed awx and manage to add inventory in it. However it’s not getting synchronised. Any help would be appre…

---

## [How to use Microsoft Azure RM credentials in AWX](https://forum.ansible.com/t/how-to-use-microsoft-azure-rm-credentials-in-awx/31221)

<div class="topic-metadata">

**Author:** [@Prashant\_Iyer](https://forum.ansible.com/u/Prashant_Iyer)\
**Replies:** 1\
**Last updated:** [September 8, 2019, 10:06am UTC](https://forum.ansible.com/t/how-to-use-microsoft-azure-rm-credentials-in-awx/31221 "2019-09-08T10:06:54Z")

</div>

I have a template to create a RG in Azure. I have also created a Microsoft Azure RM Credentials (with subscription id,client-tenant ids, secret) However, I’m unable to find any doc reg how to use this credential to aut…

---

## [win\_domain\_controller "controller for the domain could not be contacted"](https://forum.ansible.com/t/win-domain-controller-controller-for-the-domain-could-not-be-contacted/31224)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 1\
**Last updated:** [September 8, 2019, 3:13am UTC](https://forum.ansible.com/t/win-domain-controller-controller-for-the-domain-could-not-be-contacted/31224 "2019-09-08T03:13:21Z")

</div>

After making a new domain, and adding a server to it, cant promote that server to domain controller. heres how im trying, \` hosts: domaincontrollers\[1:\] tasks: name: set dns for other domain controllers win\_dns\_cli…

---

## [win\_domain, win\_reboot, what to wait or test\_command for?](https://forum.ansible.com/t/win-domain-win-reboot-what-to-wait-or-test-command-for/31223)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 0\
**Last updated:** [September 8, 2019, 2:53am UTC](https://forum.ansible.com/t/win-domain-win-reboot-what-to-wait-or-test-command-for/31223 "2019-09-08T02:53:04Z")

</div>

When making a domain in ansible, ive been a playbook like this, \` hosts: domaincontrollers\[0\] tasks: name: make the domain win\_domain: dns\_domain\_name: foo.local safe\_mode\_password: A1!vagrant register: check…

---

## [cli\_command executing on localhost](https://forum.ansible.com/t/cli-command-executing-on-localhost/31222)

<div class="topic-metadata">

**Author:** [@JP-OKC](https://forum.ansible.com/u/JP-OKC)\
**Replies:** 0\
**Last updated:** [September 7, 2019, 4:35pm UTC](https://forum.ansible.com/t/cli-command-executing-on-localhost/31222 "2019-09-07T16:35:08Z")

</div>

I have a playbook to harden the NXOS API on Nexus switches. It requires connecting to the Nexus, running the bash shell and executing some commands to configure iptables. Some of the commands execute correctly and others…

---

## [Ansible Tower installation getting failed.](https://forum.ansible.com/t/ansible-tower-installation-getting-failed/31073)

<div class="topic-metadata">

**Author:** [@Vivek1](https://forum.ansible.com/u/Vivek1)\
**Replies:** 10\
**Last updated:** [September 7, 2019, 11:37am UTC](https://forum.ansible.com/t/ansible-tower-installation-getting-failed/31073 "2019-09-07T11:37:37Z")

</div>

Hi Experts, I am trying to install Ansible tower 3.2.0 version in my Redhat machine 7.2 and getting following error. I already installed ansible version 2.8 . But tower installation is getting failed. failed: \[localhos…

---

## [AWX Migration](https://forum.ansible.com/t/awx-migration/31217)

<div class="topic-metadata">

**Author:** [@Nathan\_Farmer](https://forum.ansible.com/u/Nathan_Farmer)\
**Replies:** 1\
**Last updated:** [September 6, 2019, 8:08pm UTC](https://forum.ansible.com/t/awx-migration/31217 "2019-09-06T20:08:32Z")

</div>

Are there instructions or a wiki on migrating AWX 6.1 to AWX 7.0?

---

## [Ansible release 2.9.0b1, feature freeze, and stable-2.9 branching](https://forum.ansible.com/t/ansible-release-2-9-0b1-feature-freeze-and-stable-2-9-branching/31218)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [September 6, 2019, 6:57pm UTC](https://forum.ansible.com/t/ansible-release-2-9-0b1-feature-freeze-and-stable-2-9-branching/31218 "2019-09-06T18:57:41Z")

</div>

Hi all- Feature freeze for Ansible-2.9.0 was last week. At that time, we also branched stable-2.9 from the devel branch. So features can continue to be opened against devel. They just won't be backported to stable-…

---

## [How I can destroy asnible generated resources in AWS with a playbook?](https://forum.ansible.com/t/how-i-can-destroy-asnible-generated-resources-in-aws-with-a-playbook/31212)

<div class="topic-metadata">

**Author:** [@Aamir\_Saleem](https://forum.ansible.com/u/Aamir_Saleem)\
**Replies:** 6\
**Last updated:** [September 6, 2019, 6:41pm UTC](https://forum.ansible.com/t/how-i-can-destroy-asnible-generated-resources-in-aws-with-a-playbook/31212 "2019-09-06T18:41:36Z")

</div>

How I can destroy asnible generated resources in AWS with a playbook? Actually, as we can removed all the resources created by terraforms by single script, can I do same with ansible?

---

## [fresh awx 6.1.0 or 7.0.0 fails on kubernetes](https://forum.ansible.com/t/fresh-awx-6-1-0-or-7-0-0-fails-on-kubernetes/31214)

<div class="topic-metadata">

**Author:** [@alancivita](https://forum.ansible.com/u/alancivita)\
**Replies:** 1\
**Last updated:** [September 6, 2019, 2:26pm UTC](https://forum.ansible.com/t/fresh-awx-6-1-0-or-7-0-0-fails-on-kubernetes/31214 "2019-09-06T14:26:03Z")

</div>

i’m trying to deploy a new installation of awx since i wasn’t able to upgrade from 6.0.0 to 6.1.0 6.1.0 and 7.0.0 both fails at TASK \[kubernetes : create django super user if it does not exist\] with the following erro…

---

## [AWX : How export datas from an external postgre database ?](https://forum.ansible.com/t/awx-how-export-datas-from-an-external-postgre-database/31216)

<div class="topic-metadata">

**Author:** [@Cedric\_A](https://forum.ansible.com/u/Cedric_A)\
**Replies:** 0\
**Last updated:** [September 6, 2019, 11:59am UTC](https://forum.ansible.com/t/awx-how-export-datas-from-an-external-postgre-database/31216 "2019-09-06T11:59:25Z")

</div>

Hi, Could you tell me if there is a real process to export datas from an external postgre database ? (tower-cli , dump file of the database, etc…) My difficulty is also that I try to export the datas from an AWX 1.0.6.…

---

## [Testing whether kubectl/oc context is valid](https://forum.ansible.com/t/testing-whether-kubectl-oc-context-is-valid/31215)

<div class="topic-metadata">

**Author:** [@afeller](https://forum.ansible.com/u/afeller)\
**Replies:** 0\
**Last updated:** [September 6, 2019, 11:36am UTC](https://forum.ansible.com/t/testing-whether-kubectl-oc-context-is-valid/31215 "2019-09-06T11:36:37Z")

</div>

Does anyone have a novel way to test kubectl/oc login context explicitly in a playbook to fail instead of waiting to lower in roles? I’m familiar with k8s\_auth module for handling explicit Kubernetes/OpenShift login, ho…

---

## [AWX on Kubernetes migration from 6.0.0 to 6.1.0](https://forum.ansible.com/t/awx-on-kubernetes-migration-from-6-0-0-to-6-1-0/31112)

<div class="topic-metadata">

**Author:** [@alancivita](https://forum.ansible.com/u/alancivita)\
**Replies:** 6\
**Last updated:** [September 6, 2019, 7:16am UTC](https://forum.ansible.com/t/awx-on-kubernetes-migration-from-6-0-0-to-6-1-0/31112 "2019-09-06T07:16:39Z")

</div>

Hi All, i’m currently running awx 6.0.0 on kubernetes, wondering if i can upgrade to 6.1.0 by simply changing the awx manifest in kubernetes to point to 6.1.0 version of the containers. Obviously this won’t work if a …

---

## [Ansible attach in mail module doesnt work](https://forum.ansible.com/t/ansible-attach-in-mail-module-doesnt-work/31204)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 5\
**Last updated:** [September 6, 2019, 6:56am UTC](https://forum.ansible.com/t/ansible-attach-in-mail-module-doesnt-work/31204 "2019-09-06T06:56:32Z")

</div>

I have a code as below and i have my html files present in /tmp/sanity/ . but i am getting error as “Failed to send mail: can’t attach file” i get file not found name: list html files run\_once: true local\_action: s…

---

## [win\_updates keeps failing on some updates](https://forum.ansible.com/t/win-updates-keeps-failing-on-some-updates/31207)

<div class="topic-metadata">

**Author:** [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Replies:** 1\
**Last updated:** [September 6, 2019, 1:01am UTC](https://forum.ansible.com/t/win-updates-keeps-failing-on-some-updates/31207 "2019-09-06T01:01:05Z")

</div>

I am using win\_updates to deploy patches to machines, and I have a whole list of patches to deploy to machines in a whitelist. I am seeing an issue sometimes where the machine I try to deploy the patches to is getting D…

---

## [kubectl get nodes using context from a playbook](https://forum.ansible.com/t/kubectl-get-nodes-using-context-from-a-playbook/31164)

<div class="topic-metadata">

**Author:** [@user\_user](https://forum.ansible.com/u/user_user)\
**Replies:** 1\
**Last updated:** [September 5, 2019, 7:52pm UTC](https://forum.ansible.com/t/kubectl-get-nodes-using-context-from-a-playbook/31164 "2019-09-05T19:52:31Z")

</div>

I’m trying to fetch nodes list via ansible playbook using a context name. but its not working my playbook: cat getnodes.yaml

---

## [Sending output from a completed job via the mail module](https://forum.ansible.com/t/sending-output-from-a-completed-job-via-the-mail-module/31209)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 3\
**Last updated:** [September 5, 2019, 6:30pm UTC](https://forum.ansible.com/t/sending-output-from-a-completed-job-via-the-mail-module/31209 "2019-09-05T18:30:10Z")

</div>

We have a playbook where, once its completed, we’d like to email the stdout to certain users. Right now I am testing with the command module in the playbook as follows: name: Get job output command: curl -k -u admin:{…

---

## [Hardening SSH With Ansible](https://forum.ansible.com/t/hardening-ssh-with-ansible/31198)

<div class="topic-metadata">

**Author:** [@Jon\_Adcock](https://forum.ansible.com/u/Jon_Adcock)\
**Replies:** 17\
**Last updated:** [September 5, 2019, 6:27pm UTC](https://forum.ansible.com/t/hardening-ssh-with-ansible/31198 "2019-09-05T18:27:48Z")

</div>

I think its common practice to “harden” SSH by running the following in one of your playbooks: \` name: Disallow root SSH access lineinfile: dest: /etc/ssh/sshd\_config regexp: “^PermitRootLogin no” line: “PermitRoo…

---

## [Automation for Ansible and Jfrog  Artifactory](https://forum.ansible.com/t/automation-for-ansible-and-jfrog-artifactory/31211)

<div class="topic-metadata">

**Author:** [@Uppara\_venkat](https://forum.ansible.com/u/Uppara_venkat)\
**Replies:** 0\
**Last updated:** [September 5, 2019, 4:14pm UTC](https://forum.ansible.com/t/automation-for-ansible-and-jfrog-artifactory/31211 "2019-09-05T16:14:45Z")

</div>

Hi, I’m trying to download latest artifacts and files from Artifactory general repository in windows environment, Using window environment for that I used win\_get\_url module but here we need to provide specific file nam…

---

## [mysql\_user – create a user on a remote host from a inventory host](https://forum.ansible.com/t/mysql-user-create-a-user-on-a-remote-host-from-a-inventory-host/31210)

<div class="topic-metadata">

**Author:** [@Serge\_Zajac](https://forum.ansible.com/u/Serge_Zajac)\
**Replies:** 1\
**Last updated:** [September 5, 2019, 3:26pm UTC](https://forum.ansible.com/t/mysql-user-create-a-user-on-a-remote-host-from-a-inventory-host/31210 "2019-09-05T15:26:08Z")

</div>

Hi, I have a simple question. mysql\_user module have some requirements, One of them is Requires the PyMySQL (Python 2.7 and Python 3.X) or MySQL-python (Python 2.X) package on the remote host. We have installed requi…

---

## [Splitting a List into chunks](https://forum.ansible.com/t/splitting-a-list-into-chunks/31206)

<div class="topic-metadata">

**Author:** [@Spiro\_Mitsialis](https://forum.ansible.com/u/Spiro_Mitsialis)\
**Replies:** 0\
**Last updated:** [September 5, 2019, 2:15pm UTC](https://forum.ansible.com/t/splitting-a-list-into-chunks/31206 "2019-09-05T14:15:37Z")

</div>

Hi, I have a list of 200+ items (showing sample below). I need to update a database with these records using the URI module. The backend API only supports 100 records at at time. How can I loop through the URI module w…

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

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