# Archives

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

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

**Page:** 250

---

## [Running a script as root user.](https://forum.ansible.com/t/running-a-script-as-root-user/31541)

<div class="topic-metadata">

**Author:** [@Dave\_McPherson](https://forum.ansible.com/u/Dave_McPherson)\
**Replies:** 1\
**Last updated:** [October 24, 2019, 11:05pm UTC](https://forum.ansible.com/t/running-a-script-as-root-user/31541 "2019-10-24T23:05:18Z")

</div>

Hi All, I have a script that I need to run on oracle linux when I try the standard “become:” it fails with the error “run with sudo -s” I have tried many variations but what I have now is below. name: Run gold\_change…

---

## [luks\_device module questions](https://forum.ansible.com/t/luks-device-module-questions/31536)

<div class="topic-metadata">

**Author:** [@Test\_Acct](https://forum.ansible.com/u/Test_Acct)\
**Replies:** 4\
**Last updated:** [October 24, 2019, 5:19pm UTC](https://forum.ansible.com/t/luks-device-module-questions/31536 "2019-10-24T17:19:46Z")

</div>

Hello. I am trying to create encrypted logical volumes within my playbook. I have the process written out, via commands (as if i were doing each one individually). I have gotten the LVM portion in the playbook working.…

---

## [Hanging on SSH connection](https://forum.ansible.com/t/hanging-on-ssh-connection/31538)

<div class="topic-metadata">

**Author:** [@Thomas\_Lawrence](https://forum.ansible.com/u/Thomas_Lawrence)\
**Replies:** 7\
**Last updated:** [October 24, 2019, 4:27pm UTC](https://forum.ansible.com/t/hanging-on-ssh-connection/31538 "2019-10-24T16:27:59Z")

</div>

I have inherited the job of continuing with my organisation’s ansible setup after our sys admin left. I am having a hell of a job adding new server to the setup as ansible can not seem to connect to any newly created ser…

---

## [Read timeout when using WinRM to apply Windows patches on Azure](https://forum.ansible.com/t/read-timeout-when-using-winrm-to-apply-windows-patches-on-azure/31529)

<div class="topic-metadata">

**Author:** [@Angel\_Rengifo\_Cancin](https://forum.ansible.com/u/Angel_Rengifo_Cancin)\
**Replies:** 3\
**Last updated:** [October 24, 2019, 4:20pm UTC](https://forum.ansible.com/t/read-timeout-when-using-winrm-to-apply-windows-patches-on-azure/31529 "2019-10-24T16:20:02Z")

</div>

Hello guys: I’m currently working with Ansible 2.8.5 to apply Windows patches through WinRM connections. This is a portion of my code: name: Instalar actualizaciones 1 win\_updates: category\_names: “{{ windows\_update…

---

## [Passing a '(' in a variable string](https://forum.ansible.com/t/passing-a-in-a-variable-string/31498)

<div class="topic-metadata">

**Author:** [@Stephen\_Feyrer](https://forum.ansible.com/u/Stephen_Feyrer)\
**Replies:** 7\
**Last updated:** [October 24, 2019, 10:31am UTC](https://forum.ansible.com/t/passing-a-in-a-variable-string/31498 "2019-10-24T10:31:42Z")

</div>

Hi there, I have a password vault and a script to which I am passing a password. The vault looks kind of like this: \`

---

## [Backup of variable with ansible](https://forum.ansible.com/t/backup-of-variable-with-ansible/31537)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 0\
**Last updated:** [October 24, 2019, 10:09am UTC](https://forum.ansible.com/t/backup-of-variable-with-ansible/31537 "2019-10-24T10:09:09Z")

</div>

Hey, I have file var with this content : version: 3-40-00 I have this task who create repertory : name: “Create repertory if run\_db\_test.sh is execut” file: path: /home/ansible/hospitalis\_sql/gis-db-patch-{{ hold\_…

---

## [Tower awx state : en attente](https://forum.ansible.com/t/tower-awx-state-en-attente/31535)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 0\
**Last updated:** [October 24, 2019, 8:46am UTC](https://forum.ansible.com/t/tower-awx-state-en-attente/31535 "2019-10-24T08:46:21Z")

</div>

Hey ! I have problem with ansible tower awx , when i execut my project with awx , the state is “en attente” . Before it’s works but on day i have delete container “task” of tower awx and this container it’s regeneratin…

---

## [What happens if in between the Play the node goes down](https://forum.ansible.com/t/what-happens-if-in-between-the-play-the-node-goes-down/31534)

<div class="topic-metadata">

**Author:** [@Sumanyu\_Nandwani](https://forum.ansible.com/u/Sumanyu_Nandwani)\
**Replies:** 0\
**Last updated:** [October 24, 2019, 8:06am UTC](https://forum.ansible.com/t/what-happens-if-in-between-the-play-the-node-goes-down/31534 "2019-10-24T08:06:31Z")

</div>

I am facing an issue in which I run a playbook on ~30 nodes and if in between of a play one of the nodes goes down, the whole play gets stuck ( I think Ansible gets stuck ) and the other nodes are also getting stuck due …

---

## [dynamic inventory with multiply files](https://forum.ansible.com/t/dynamic-inventory-with-multiply-files/31509)

<div class="topic-metadata">

**Author:** [@Misha\_Volodko](https://forum.ansible.com/u/Misha_Volodko)\
**Replies:** 2\
**Last updated:** [October 24, 2019, 7:54am UTC](https://forum.ansible.com/t/dynamic-inventory-with-multiply-files/31509 "2019-10-24T07:54:59Z")

</div>

Having hard time trying to add my dynamic inventory to tower - under inventory scripts is allows only to paste content of single file. What is I have git project for inventory which consist of multiply files? I’m queryi…

---

## [How to resolve dependencies of locally downloaded packages, when package A depends on B.](https://forum.ansible.com/t/how-to-resolve-dependencies-of-locally-downloaded-packages-when-package-a-depends-on-b/31531)

<div class="topic-metadata">

**Author:** [@john\_517501](https://forum.ansible.com/u/john_517501)\
**Replies:** 4\
**Last updated:** [October 23, 2019, 9:31pm UTC](https://forum.ansible.com/t/how-to-resolve-dependencies-of-locally-downloaded-packages-when-package-a-depends-on-b/31531 "2019-10-23T21:31:31Z")

</div>

I have simple playbook where trying to install the Debian packages downloaded locally in my server. This playbook runs on localhost and install the Debian packages in the same system. But this playbook gives an error "De…

---

## [New Ansible release 2.9.0rc5](https://forum.ansible.com/t/new-ansible-release-2-9-0rc5/31533)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [October 23, 2019, 9:24pm UTC](https://forum.ansible.com/t/new-ansible-release-2-9-0rc5/31533 "2019-10-23T21:24:02Z")

</div>

Hi all- we’re happy to announce that Ansible 2.9.0rc5 is now available! This is anticipated as the final release candidate before Ansible 2.9.0 is generally available within the next week or so. How do you get it?

---

## [New Ansible release 2.9.0rc5](https://forum.ansible.com/t/new-ansible-release-2-9-0rc5/31532)

<div class="topic-metadata">

**Author:** [@Matt\_Davis3](https://forum.ansible.com/u/Matt_Davis3)\
**Replies:** 0\
**Last updated:** [October 23, 2019, 9:22pm UTC](https://forum.ansible.com/t/new-ansible-release-2-9-0rc5/31532 "2019-10-23T21:22:55Z")

</div>

Hi all- we’re happy to announce that Ansible 2.9.0rc5 is now available! This is anticipated as the final release candidate before Ansible 2.9.0 is generally available within the next week or so. How do you get it?

---

## [replace line in multiple files using lineinfile could anyone please help me.](https://forum.ansible.com/t/replace-line-in-multiple-files-using-lineinfile-could-anyone-please-help-me/31514)

<div class="topic-metadata">

**Author:** [@SARDARNI\_NK](https://forum.ansible.com/u/SARDARNI_NK)\
**Replies:** 3\
**Last updated:** [October 23, 2019, 6:27pm UTC](https://forum.ansible.com/t/replace-line-in-multiple-files-using-lineinfile-could-anyone-please-help-me/31514 "2019-10-23T18:27:07Z")

</div>

---

## [Ansible tower awx problem with command shell downtime](https://forum.ansible.com/t/ansible-tower-awx-problem-with-command-shell-downtime/31524)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 1\
**Last updated:** [October 23, 2019, 6:06pm UTC](https://forum.ansible.com/t/ansible-tower-awx-problem-with-command-shell-downtime/31524 "2019-10-23T18:06:39Z")

</div>

Hey, I have one problem with ansible tower awx, i don’t understand why when i execut command for downtime, ansible works but not ansible tower awx. My task is : name: “Debut du Downtime” shell: /opt/jmsagent/bin/jms…

---

## [Specifying multiple credentials in a Job Template?](https://forum.ansible.com/t/specifying-multiple-credentials-in-a-job-template/31530)

<div class="topic-metadata">

**Author:** [@Matt\_Hickok](https://forum.ansible.com/u/Matt_Hickok)\
**Replies:** 1\
**Last updated:** [October 23, 2019, 5:38pm UTC](https://forum.ansible.com/t/specifying-multiple-credentials-in-a-job-template/31530 "2019-10-23T17:38:21Z")

</div>

I was trying to add multiple credentials in a job template and realized that it wouldn’t let me. Hovering over the tool tip I see ‘Select credentials that allow Tower to access the nodes this job will be ran against. You…

---

## [Failed to connect to the host via ssh: ssh: connect to host](https://forum.ansible.com/t/failed-to-connect-to-the-host-via-ssh-ssh-connect-to-host/31528)

<div class="topic-metadata">

**Author:** [@Frazer\_Grant](https://forum.ansible.com/u/Frazer_Grant)\
**Replies:** 0\
**Last updated:** [October 23, 2019, 2:30pm UTC](https://forum.ansible.com/t/failed-to-connect-to-the-host-via-ssh-ssh-connect-to-host/31528 "2019-10-23T14:30:35Z")

</div>

Hi, I feel a little bit uncomfortable posting this, as it seems it should be a simple fix, but I cannot seem to find an answer. Ive just installed Ansible 2.8.5 into a Vagrant VM on my laptop and from that I can gcloud…

---

## [Reboot wait for port to come available](https://forum.ansible.com/t/reboot-wait-for-port-to-come-available/31527)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [October 23, 2019, 2:07pm UTC](https://forum.ansible.com/t/reboot-wait-for-port-to-come-available/31527 "2019-10-23T14:07:33Z")

</div>

No, since host is server2 the wait\_for module will run on that host. You would need connection: local, delegate\_to: localhost or hosts: localhost to make it run on Ansible server aka Ansible controller.

---

## [Reboot wait for port to come available](https://forum.ansible.com/t/reboot-wait-for-port-to-come-available/31519)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 2\
**Last updated:** [October 23, 2019, 1:52pm UTC](https://forum.ansible.com/t/reboot-wait-for-port-to-come-available/31519 "2019-10-23T13:52:36Z")

</div>

Hi all, So I know how to do this for the most part, but I’ve got two servers that when I have to reboot them, one needs to be done before the other and cannot before a specific port comes available. That port is only ac…

---

## [Can I use github\_releases with a enterprise github?](https://forum.ansible.com/t/can-i-use-github-releases-with-a-enterprise-github/31446)

<div class="topic-metadata">

**Author:** [@Rodrigo\_Rapozo](https://forum.ansible.com/u/Rodrigo_Rapozo)\
**Replies:** 2\
**Last updated:** [October 23, 2019, 1:52pm UTC](https://forum.ansible.com/t/can-i-use-github-releases-with-a-enterprise-github/31446 "2019-10-23T13:52:06Z")

</div>

Hello, I’m trying to use github\_release module to fetch a release from a enterprise internal repository in the company that I work. This is possivle and how I can do that if don’t have any option like “url”, “server”, …

---

## [Ansible Play book for the Windows exe file](https://forum.ansible.com/t/ansible-play-book-for-the-windows-exe-file/31502)

<div class="topic-metadata">

**Author:** [@Vikrant](https://forum.ansible.com/u/Vikrant)\
**Replies:** 6\
**Last updated:** [October 23, 2019, 12:38pm UTC](https://forum.ansible.com/t/ansible-play-book-for-the-windows-exe-file/31502 "2019-10-23T12:38:53Z")

</div>

Hi All, There is a exe file at some location in windows server and I need to click on it and the in some java tab have to update below values: -Djavax.net.ssl.trustStore=D:/apps/Tomcathomeconf/xyz.jks -Djavax.net.ssl.…

---

## [Facing problem while using Ansible for Open edX installation.](https://forum.ansible.com/t/facing-problem-while-using-ansible-for-open-edx-installation/31522)

<div class="topic-metadata">

**Author:** [@Waleed\_Khan](https://forum.ansible.com/u/Waleed_Khan)\
**Replies:** 2\
**Last updated:** [October 23, 2019, 12:27pm UTC](https://forum.ansible.com/t/facing-problem-while-using-ansible-for-open-edx-installation/31522 "2019-10-23T12:27:02Z")

</div>

I am trying to install ironwood.master using native installation method by following this link: https://openedx.atlassian.net/wiki/spaces/a/pages/146440579/Native+Open+edX+Ubuntu+16.04+64+bit+Installation For step 5 in …

---

## [AWS EC2 Tag Filtering](https://forum.ansible.com/t/aws-ec2-tag-filtering/31526)

<div class="topic-metadata">

**Author:** [@Staggerlee011](https://forum.ansible.com/u/Staggerlee011)\
**Replies:** 0\
**Last updated:** [October 23, 2019, 11:12am UTC](https://forum.ansible.com/t/aws-ec2-tag-filtering/31526 "2019-10-23T11:12:13Z")

</div>

Hi all, Is it possible to using tagging for exlusions? ie: a Filter on: OS = Linux EXCEPT WHEN Applicaton = Database

---

## [Ansible on Windows Environment](https://forum.ansible.com/t/ansible-on-windows-environment/31520)

<div class="topic-metadata">

**Author:** [@Harini\_K](https://forum.ansible.com/u/Harini_K)\
**Replies:** 2\
**Last updated:** [October 23, 2019, 10:39am UTC](https://forum.ansible.com/t/ansible-on-windows-environment/31520 "2019-10-23T10:39:06Z")

</div>

Hi, We followed below steps to use Ansible on Windows. Installing Ansible on Cygwin Using Host machine as Windows machine Using Powershell to perform actions. The issues which we are facing are : On launching any a…

---

## [azure\_rm\_devtestlabvirtualmachine – Manage Azure DevTest Lab Virtual Machine instance - ssh\_key attribute](https://forum.ansible.com/t/azure-rm-devtestlabvirtualmachine-manage-azure-devtest-lab-virtual-machine-instance-ssh-key-attribute/31525)

<div class="topic-metadata">

**Author:** [@Mr\_Decisive](https://forum.ansible.com/u/Mr_Decisive)\
**Replies:** 0\
**Last updated:** [October 23, 2019, 9:55am UTC](https://forum.ansible.com/t/azure-rm-devtestlabvirtualmachine-manage-azure-devtest-lab-virtual-machine-instance-ssh-key-attribute/31525 "2019-10-23T09:55:19Z")

</div>

Hi, I have a question on the above module. I want to use ssh key authentication as opposed to password authentication on the vm that is created in the lab but if I exclude the password property and include a key for the…

---

## [Facing problem while using Ansible for Open edX installation.](https://forum.ansible.com/t/facing-problem-while-using-ansible-for-open-edx-installation/31523)

<div class="topic-metadata">

**Author:** [@Waleed\_Khan](https://forum.ansible.com/u/Waleed_Khan)\
**Replies:** 0\
**Last updated:** [October 23, 2019, 8:05am UTC](https://forum.ansible.com/t/facing-problem-while-using-ansible-for-open-edx-installation/31523 "2019-10-23T08:05:46Z")

</div>

I am trying to install ironwood.master using native installation method by following this link: https://openedx.atlassian.net/wiki/spaces/a/pages/146440579/Native+Open+edX+Ubuntu+16.04+64+bit+Installation For step 5 in …

---

## [Installing multiple roles from the same repo (Ansible Galaxy)](https://forum.ansible.com/t/installing-multiple-roles-from-the-same-repo-ansible-galaxy/31513)

<div class="topic-metadata">

**Author:** [@Ry1](https://forum.ansible.com/u/Ry1)\
**Replies:** 1\
**Last updated:** [October 23, 2019, 7:58am UTC](https://forum.ansible.com/t/installing-multiple-roles-from-the-same-repo-ansible-galaxy/31513 "2019-10-23T07:58:10Z")

</div>

Hi everyone, I’m having difficulties figuring out how I can install two different roles from the same project. Below is the project tree, Project\_Name ansible\_role role1 role2 The different between these two roles …

---

## [Dynamic Inventory Scripts in AWX 8.0.0+](https://forum.ansible.com/t/dynamic-inventory-scripts-in-awx-8-0-0/31515)

<div class="topic-metadata">

**Author:** [@Holden](https://forum.ansible.com/u/Holden)\
**Replies:** 3\
**Last updated:** [October 22, 2019, 10:54pm UTC](https://forum.ansible.com/t/dynamic-inventory-scripts-in-awx-8-0-0/31515 "2019-10-22T22:54:57Z")

</div>

Hello! I read in the release notes of AWX 8.0.0 that dynamic inventories will no longer be supported in future versions. We make heavy use of these at our organization currently and the path forward isn’t so clear or I…

---

## [network unreachable](https://forum.ansible.com/t/network-unreachable/31503)

<div class="topic-metadata">

**Author:** [@Julien\_Cochennec](https://forum.ansible.com/u/Julien_Cochennec)\
**Replies:** 2\
**Last updated:** [October 22, 2019, 10:50pm UTC](https://forum.ansible.com/t/network-unreachable/31503 "2019-10-22T22:50:08Z")

</div>

Hi, Searching proxy in this list, I found no answer, so maybe it’s not a proxy issue : I run a playbook with following task : \` name: download miniconda installer get\_url: url={{ miniconda\_url }} dest={{ minicond…

---

## [loop through a json object](https://forum.ansible.com/t/loop-through-a-json-object/31115)

<div class="topic-metadata">

**Author:** [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Replies:** 9\
**Last updated:** [October 22, 2019, 10:35pm UTC](https://forum.ansible.com/t/loop-through-a-json-object/31115 "2019-10-22T22:35:35Z")

</div>

I am trying to loop through a json object that is returned and list out key pieces of information, or later on do something with these key peices of information from each object. I have been trying to do this with JMESpa…

---

## [Loop on  values and ssh](https://forum.ansible.com/t/loop-on-values-and-ssh/31518)

<div class="topic-metadata">

**Author:** [@Boa\_Ah](https://forum.ansible.com/u/Boa_Ah)\
**Replies:** 0\
**Last updated:** [October 22, 2019, 10:29pm UTC](https://forum.ansible.com/t/loop-on-values-and-ssh/31518 "2019-10-22T22:29:02Z")

</div>

Team, I have json response from which am getting query with hosts name. I need to further take all goats names and ssh and run some command. How can I achieve this? Please give complete syntax. @Rahul Rameshbabu may b…

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

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