# Archives

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

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

**Page:** 564

---

## [Configure isolated servers without Internet access](https://forum.ansible.com/t/configure-isolated-servers-without-internet-access/22277)

<div class="topic-metadata">

**Author:** [@David\_Li](https://forum.ansible.com/u/David_Li)\
**Replies:** 2\
**Last updated:** [August 12, 2016, 1:49pm UTC](https://forum.ansible.com/t/configure-isolated-servers-without-internet-access/22277 "2016-08-12T13:49:40Z")

</div>

Hi, I am relatively new to Ansible. I need to use Ansible from a dev laptop to set up some servers (both Ubuntu and Centos) that are isolated without any Internet access. The laptop has Internet access for development a…

---

## [Playbook randomly dies after async/poll](https://forum.ansible.com/t/playbook-randomly-dies-after-async-poll/20632)

<div class="topic-metadata">

**Author:** [@Greg\_Gilbert](https://forum.ansible.com/u/Greg_Gilbert)\
**Replies:** 2\
**Last updated:** [August 12, 2016, 1:43pm UTC](https://forum.ansible.com/t/playbook-randomly-dies-after-async-poll/20632 "2016-08-12T13:43:05Z")

</div>

Hey. I’m having an issue in Ansible 1.9.4 where a playbook just stops running. No errors or anything, the process just dies. It seems to happen at random places when running the playbook, but it all seems to happen after…

---

## [looping within loops](https://forum.ansible.com/t/looping-within-loops/22242)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 1\
**Last updated:** [August 12, 2016, 9:08am UTC](https://forum.ansible.com/t/looping-within-loops/22242 "2016-08-12T09:08:30Z")

</div>

I've got a bunch of user groups to create, each users information is a dict. Since each group maps to a team, I want to control access on a per-team level. so the natural 'shape' for this data is eg. users: dbas: …

---

## [Source Profile (.bashrc or profile.d)](https://forum.ansible.com/t/source-profile-bashrc-or-profile-d/22278)

<div class="topic-metadata">

**Author:** [@Aakash\_Singhal](https://forum.ansible.com/u/Aakash_Singhal)\
**Replies:** 0\
**Last updated:** [August 12, 2016, 5:26am UTC](https://forum.ansible.com/t/source-profile-bashrc-or-profile-d/22278 "2016-08-12T05:26:36Z")

</div>

I’m installing ruby from source and then using template to export path. but am unable to run: shell: rbenv install jruby-9.0.5.0 getting error rbenv command not found. the solution I’m using to run command is: shell…

---

## [Can't find boto for ansible EC2 module](https://forum.ansible.com/t/cant-find-boto-for-ansible-ec2-module/13247)

<div class="topic-metadata">

**Author:** [@Dan\_McKean](https://forum.ansible.com/u/Dan_McKean)\
**Replies:** 18\
**Last updated:** [August 11, 2016, 9:57pm UTC](https://forum.ansible.com/t/cant-find-boto-for-ansible-ec2-module/13247 "2016-08-11T21:57:15Z")

</div>

I’ve been considering Ansible for creating our EC2 instances, and have run into a problem with ansible not finding boto from either the command line or a playbook. Here’s the command line and response; the playbook is s…

---

## [Exit Playbook When Any Play Fails](https://forum.ansible.com/t/exit-playbook-when-any-play-fails/22275)

<div class="topic-metadata">

**Author:** [@Gordon\_Towne](https://forum.ansible.com/u/Gordon_Towne)\
**Replies:** 2\
**Last updated:** [August 11, 2016, 8:46pm UTC](https://forum.ansible.com/t/exit-playbook-when-any-play-fails/22275 "2016-08-11T20:46:51Z")

</div>

I have a playbook with multiple plays, where each play is executed on a different group of hosts. The behavior that I’m looking for is that if any host in any group is unreachable, the whole playbook fails immediately. B…

---

## [Running Python script, running into /usr/bin/env: No such file or directory](https://forum.ansible.com/t/running-python-script-running-into-usr-bin-env-no-such-file-or-directory/22256)

<div class="topic-metadata">

**Author:** [@SC1](https://forum.ansible.com/u/SC1)\
**Replies:** 5\
**Last updated:** [August 11, 2016, 6:25pm UTC](https://forum.ansible.com/t/running-python-script-running-into-usr-bin-env-no-such-file-or-directory/22256 "2016-08-11T18:25:17Z")

</div>

Hi All, Basically, I’m trying to run a python script on a host. I have a playbook that’s using the script module and it works when I target Oracle Enterprise Linux 6.7. However, trying it against a Solaris host fails. T…

---

## [Windows Playbook Fails Using win\_user](https://forum.ansible.com/t/windows-playbook-fails-using-win-user/22273)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 2\
**Last updated:** [August 11, 2016, 5:36pm UTC](https://forum.ansible.com/t/windows-playbook-fails-using-win-user/22273 "2016-08-11T17:36:24Z")

</div>

Trying to run a playbook to add a user on a windows server and getting errors, see below \[root@localhost group\_vars\]# ansible-playbook createuser.yml ERROR! Syntax Error while loading YAML. The error appears to have …

---

## [assign custom host name to ec2 instances](https://forum.ansible.com/t/assign-custom-host-name-to-ec2-instances/22276)

<div class="topic-metadata">

**Author:** [@eric\_skaggs1](https://forum.ansible.com/u/eric_skaggs1)\
**Replies:** 0\
**Last updated:** [August 11, 2016, 4:18pm UTC](https://forum.ansible.com/t/assign-custom-host-name-to-ec2-instances/22276 "2016-08-11T16:18:23Z")

</div>

When deploying an autoscaling group I want to be able to add custom hostnames to the instances for both initial deploy and scaling up and down. hostnames would be something like app-server01 app-server02. Then when we s…

---

## [Unable to assign instance ID to a variable](https://forum.ansible.com/t/unable-to-assign-instance-id-to-a-variable/22274)

<div class="topic-metadata">

**Author:** [@AC11](https://forum.ansible.com/u/AC11)\
**Replies:** 0\
**Last updated:** [August 11, 2016, 3:31pm UTC](https://forum.ansible.com/t/unable-to-assign-instance-id-to-a-variable/22274 "2016-08-11T15:31:21Z")

</div>

Hi, I am using ansible to get the instance ID of a EC2 instance on AWS through the use of ec2\_remote\_facts. How do I assign the instance ID to a variable using set\_fact? I was trying to use the following script but it…

---

## [simple true/false statements in playbooks](https://forum.ansible.com/t/simple-true-false-statements-in-playbooks/22269)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 4\
**Last updated:** [August 11, 2016, 2:16pm UTC](https://forum.ansible.com/t/simple-true-false-statements-in-playbooks/22269 "2016-08-11T14:16:46Z")

</div>

Management Node: CentOs 7.1 Ansible 2.1 Remote Node: Windows 7 Powershell 3.0 I’m trying to display an error message if the file ADS800Dice.s3db has not been modified for more than an hour. The problem …

---

## [Boolean variable being capitalized in templates? Best practice to work around?](https://forum.ansible.com/t/boolean-variable-being-capitalized-in-templates-best-practice-to-work-around/17496)

<div class="topic-metadata">

**Author:** [@Philip\_Lombardi](https://forum.ansible.com/u/Philip_Lombardi)\
**Replies:** 3\
**Last updated:** [August 11, 2016, 1:15pm UTC](https://forum.ansible.com/t/boolean-variable-being-capitalized-in-templates-best-practice-to-work-around/17496 "2016-08-11T13:15:22Z")

</div>

I have some variables defined in a role such as: \`

---

## [Importing Python Custom Modules for Ansible to run?](https://forum.ansible.com/t/importing-python-custom-modules-for-ansible-to-run/22271)

<div class="topic-metadata">

**Author:** [@SC1](https://forum.ansible.com/u/SC1)\
**Replies:** 1\
**Last updated:** [August 11, 2016, 8:03am UTC](https://forum.ansible.com/t/importing-python-custom-modules-for-ansible-to-run/22271 "2016-08-11T08:03:01Z")

</div>

Probably a silly question, but is it possible to refer to another Python file with the script module? For example, if I have abc.py and 123.py, if I import 123.py into the abc.py python script (if I need some functions …

---

## [Feature Request for the package module yum](https://forum.ansible.com/t/feature-request-for-the-package-module-yum/22270)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 0\
**Last updated:** [August 11, 2016, 6:15am UTC](https://forum.ansible.com/t/feature-request-for-the-package-module-yum/22270 "2016-08-11T06:15:20Z")

</div>

Good morning, I’d like to request a feature for the core module yum. I would like to specify advisory which should be installed. This would be the functionallity of --advisory=RHSA-XXXX:YYYY from the local tool. Kind r…

---

## [Does get\_url prevent caching?](https://forum.ansible.com/t/does-get-url-prevent-caching/20430)

<div class="topic-metadata">

**Author:** [@Joshua\_J\_Kugler](https://forum.ansible.com/u/Joshua_J_Kugler)\
**Replies:** 2\
**Last updated:** [August 11, 2016, 3:48am UTC](https://forum.ansible.com/t/does-get-url-prevent-caching/20430 "2016-08-11T03:48:43Z")

</div>

I am trying to download some ISOs to multiple machines (via a proxy to conserve bandwidth). The ISO is being stored by the proxy, and the machine is using the proxy, but it is downloading from the upstream source ever…

---

## [Wacky SSH timeout bug with Ansible](https://forum.ansible.com/t/wacky-ssh-timeout-bug-with-ansible/22239)

<div class="topic-metadata">

**Author:** [@Brandon\_Heller](https://forum.ansible.com/u/Brandon_Heller)\
**Replies:** 1\
**Last updated:** [August 10, 2016, 8:39pm UTC](https://forum.ansible.com/t/wacky-ssh-timeout-bug-with-ansible/22239 "2016-08-10T20:39:38Z")

</div>

tl;dr; Seeing an Ansible bug where commands take lots of time to start, and then complete quickly; seems to affect Ubuntu VMs. Full description: I’m using Ansible to orchestrate code deployments. These deployments frequ…

---

## [Windows and Groups](https://forum.ansible.com/t/windows-and-groups/22251)

<div class="topic-metadata">

**Author:** [@Allen\_Fisher](https://forum.ansible.com/u/Allen_Fisher)\
**Replies:** 2\
**Last updated:** [August 10, 2016, 6:59pm UTC](https://forum.ansible.com/t/windows-and-groups/22251 "2016-08-10T18:59:35Z")

</div>

Hello– Fairly new to Ansible and am starting to really dig into what I can do with it. I got my first server up and going using http://docs.ansible.com/ansible/intro\_windows.html, but am concerned that I only seem to be…

---

## [Replace host name in yml file](https://forum.ansible.com/t/replace-host-name-in-yml-file/22267)

<div class="topic-metadata">

**Author:** [@Anushri\_Mishra](https://forum.ansible.com/u/Anushri_Mishra)\
**Replies:** 2\
**Last updated:** [August 10, 2016, 6:51pm UTC](https://forum.ansible.com/t/replace-host-name-in-yml-file/22267 "2016-08-10T18:51:53Z")

</div>

hi I have a question this is my main.yml file content: name: Start Tomcat service: name=tomcat7 state=restarted enabled=yes command: wget “http://admin:admin@10.1.33.155:8080/manager/text/stop?path=/externaluserwebapi…

---

## [Connection issues to Windows Server - Host not Reachable](https://forum.ansible.com/t/connection-issues-to-windows-server-host-not-reachable/22249)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 13\
**Last updated:** [August 10, 2016, 4:26pm UTC](https://forum.ansible.com/t/connection-issues-to-windows-server-host-not-reachable/22249 "2016-08-10T16:26:06Z")

</div>

Trying to connect from Ansible server to windows host and getting connection errors \[root@localhost ansible\]# ansible -i hosts -m ping all 10.10.128.0 | UNREACHABLE! =\> { “changed”: false, “msg”: “Failed to connect t…

---

## [Connecting to Windows Host Failing - (Fails Ansible Ping)](https://forum.ansible.com/t/connecting-to-windows-host-failing-fails-ansible-ping/22266)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 0\
**Last updated:** [August 10, 2016, 4:15pm UTC](https://forum.ansible.com/t/connecting-to-windows-host-failing-fails-ansible-ping/22266 "2016-08-10T16:15:38Z")

</div>

The ping: task uses SSH - use http://docs.ansible.com/ansible/win\_ping\_module.html (disclaimer: I manage 0 windows hosts)

---

## [Running shell command in Ansible](https://forum.ansible.com/t/running-shell-command-in-ansible/22261)

<div class="topic-metadata">

**Author:** [@Enjoy\_The\_Silence](https://forum.ansible.com/u/Enjoy_The_Silence)\
**Replies:** 2\
**Last updated:** [August 10, 2016, 3:47pm UTC](https://forum.ansible.com/t/running-shell-command-in-ansible/22261 "2016-08-10T15:47:09Z")

</div>

Hello, Lately, I’ve started to use Ansible. I’m trying to write a script that pass a device as a parameter, and then chain a star sign for it. For example, if the device name is /dev/sda, i would like to count the coun…

---

## [Using dynamic variables with Ansible pull](https://forum.ansible.com/t/using-dynamic-variables-with-ansible-pull/22265)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 1\
**Last updated:** [August 10, 2016, 3:26pm UTC](https://forum.ansible.com/t/using-dynamic-variables-with-ansible-pull/22265 "2016-08-10T15:26:28Z")

</div>

I have a role that pulls in the correct variable depending on the type of server (eg web vs perl). If I set the variable within an inventory file, I can’t get my task to access the variable in question. I think my issue …

---

## [Using the wait\_for module to check if the VM is up and running](https://forum.ansible.com/t/using-the-wait-for-module-to-check-if-the-vm-is-up-and-running/22262)

<div class="topic-metadata">

**Author:** [@Chethan\_S](https://forum.ansible.com/u/Chethan_S)\
**Replies:** 2\
**Last updated:** [August 10, 2016, 3:08pm UTC](https://forum.ansible.com/t/using-the-wait-for-module-to-check-if-the-vm-is-up-and-running/22262 "2016-08-10T15:08:37Z")

</div>

I am trying to develop a simple playbook (which would later be used in larger ones) to check if Windows VMs in the inventory are up and running. \`

---

## [Would love to disable lsblk when gathering facts](https://forum.ansible.com/t/would-love-to-disable-lsblk-when-gathering-facts/22255)

<div class="topic-metadata">

**Author:** [@Brian\_Beach](https://forum.ansible.com/u/Brian_Beach)\
**Replies:** 2\
**Last updated:** [August 10, 2016, 2:58pm UTC](https://forum.ansible.com/t/would-love-to-disable-lsblk-when-gathering-facts/22255 "2016-08-10T14:58:52Z")

</div>

Hi, I posted a comment to https://github.com/ansible/ansible/issues/10779, but it’s been closed, and the advice was to post to the group. So… At Backblaze, we use Ansible to manage our storage pods. Each storage pod ha…

---

## [silly trick: you can use variables in the "- name:" part of a playbook](https://forum.ansible.com/t/silly-trick-you-can-use-variables-in-the-name-part-of-a-playbook/22257)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 2\
**Last updated:** [August 10, 2016, 2:44pm UTC](https://forum.ansible.com/t/silly-trick-you-can-use-variables-in-the-name-part-of-a-playbook/22257 "2016-08-10T14:44:17Z")

</div>

i realize itfits how yaml and jinja2 works so probably obvious to many of you. never thought about it until after doing this and seeing the result. could make for more readable output.

---

## [Ansible sunchronize module.](https://forum.ansible.com/t/ansible-sunchronize-module/22252)

<div class="topic-metadata">

**Author:** [@Amrit\_Bhandari](https://forum.ansible.com/u/Amrit_Bhandari)\
**Replies:** 1\
**Last updated:** [August 10, 2016, 12:49pm UTC](https://forum.ansible.com/t/ansible-sunchronize-module/22252 "2016-08-10T12:49:32Z")

</div>

Hello everyone, I am using Ansible 2.1.0.0 in a FEDORA environment.I have a playbook which is supposed to run a Python script.The Python script generates directories and subdirectories in /tmp/data/ of the remote machin…

---

## [Yum update with ansible](https://forum.ansible.com/t/yum-update-with-ansible/22263)

<div class="topic-metadata">

**Author:** [@Leandro\_Gomes](https://forum.ansible.com/u/Leandro_Gomes)\
**Replies:** 0\
**Last updated:** [August 10, 2016, 12:47pm UTC](https://forum.ansible.com/t/yum-update-with-ansible/22263 "2016-08-10T12:47:22Z")

</div>

How can I update a Redhat or Centos Server using yum module keeping the release version ? In my tests with update \* the server goes from 6.5 to 6.8 relase, when I want to keep in the 6.5 relase. In the command line in …

---

## [How can I use  ansible and ec2.py to manage multiple aws accounts](https://forum.ansible.com/t/how-can-i-use-ansible-and-ec2-py-to-manage-multiple-aws-accounts/22259)

<div class="topic-metadata">

**Author:** [@Bob\_Benson](https://forum.ansible.com/u/Bob_Benson)\
**Replies:** 1\
**Last updated:** [August 10, 2016, 11:30am UTC](https://forum.ansible.com/t/how-can-i-use-ansible-and-ec2-py-to-manage-multiple-aws-accounts/22259 "2016-08-10T11:30:57Z")

</div>

I’m trying to use one control ec2 machine to manage multiple machines in different aws accounts. what is the best way to setup static or dynamic inventories hosts file and various access keys. struggling with the concept…

---

## [mysql\_db won't use given password](https://forum.ansible.com/t/mysql-db-wont-use-given-password/22260)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 1\
**Last updated:** [August 10, 2016, 9:53am UTC](https://forum.ansible.com/t/mysql-db-wont-use-given-password/22260 "2016-08-10T09:53:28Z")

</div>

I have not run any plays with mysql\_db since upgrading to 2.x. But now I keep getting TASK \[Create mysql database\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[10.0.192.187\]: FAILED! =\> {"changed": false,…

---

## [How to install RHEL on mutiple nodes using ansible](https://forum.ansible.com/t/how-to-install-rhel-on-mutiple-nodes-using-ansible/22120)

<div class="topic-metadata">

**Author:** [@PUJA\_MUDALIAR](https://forum.ansible.com/u/PUJA_MUDALIAR)\
**Replies:** 4\
**Last updated:** [August 10, 2016, 8:56am UTC](https://forum.ansible.com/t/how-to-install-rhel-on-mutiple-nodes-using-ansible/22120 "2016-08-10T08:56:40Z")

</div>

Please help me with the configuration of ansible for setting up servers with RHEL 7

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

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