# Latest

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

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

**Page:** 957

---

## [How the network operation happens in a module?](https://forum.ansible.com/t/how-the-network-operation-happens-in-a-module/15597)

<div class="topic-metadata">

**Author:** [@John\_Wang](https://forum.ansible.com/u/John_Wang)\
**Replies:** 7\
**Last updated:** [July 7, 2014, 7:11pm UTC](https://forum.ansible.com/t/how-the-network-operation-happens-in-a-module/15597 "2014-07-07T19:11:41Z")

</div>

Hi, I’m a fresher in Ansible(actually all kinds of CMS), and trying to know how the modules works. I can easily understand the “time” example and even some more complex ones. However those involving operations over netw…

---

## [docker module](https://forum.ansible.com/t/docker-module/15615)

<div class="topic-metadata">

**Author:** [@Mark\_Olliver](https://forum.ansible.com/u/Mark_Olliver)\
**Replies:** 1\
**Last updated:** [July 7, 2014, 3:03pm UTC](https://forum.ansible.com/t/docker-module/15615 "2014-07-07T15:03:01Z")

</div>

Hi, Is there a way to pass the docker-module a set of parameters so that it can login to a repository to download private repos. Currently I have it downloading public ones ok but I can not get our private ones to pull. …

---

## [sudo not working for me  (Mac OS X Mavericks)](https://forum.ansible.com/t/sudo-not-working-for-me-mac-os-x-mavericks/15611)

<div class="topic-metadata">

**Author:** [@Michael\_Martinez](https://forum.ansible.com/u/Michael_Martinez)\
**Replies:** 1\
**Last updated:** [July 7, 2014, 2:19am UTC](https://forum.ansible.com/t/sudo-not-working-for-me-mac-os-x-mavericks/15611 "2014-07-07T02:19:42Z")

</div>

I am a new ansible user and I can not get the sudo option working for me. To keep things simple, I am just trying a simple command: “shutdown -r now” In ansible, I am entering it as: ansible system\_name -a “shutdown -r…

---

## [Can I upgrade Ansible tower to a dev version?](https://forum.ansible.com/t/can-i-upgrade-ansible-tower-to-a-dev-version/15609)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 1\
**Last updated:** [July 4, 2014, 4:51pm UTC](https://forum.ansible.com/t/can-i-upgrade-ansible-tower-to-a-dev-version/15609 "2014-07-04T16:51:56Z")

</div>

I’d like to try some winRM stuff inside Ansible Tower. Is it possible to replace the ansible installation on a host where tower is installed with the one from the dev branch?

---

## [copy module && permissions](https://forum.ansible.com/t/copy-module-permissions/15610)

<div class="topic-metadata">

**Author:** [@Jason\_Edelman](https://forum.ansible.com/u/Jason_Edelman)\
**Replies:** 3\
**Last updated:** [July 4, 2014, 4:17pm UTC](https://forum.ansible.com/t/copy-module-permissions/15610 "2014-07-04T16:17:38Z")

</div>

Hello, It seems I have permissioning issues, but cannot seem to get it right when using the copy module. Using the command module, this works fine: “sudo cp /home/jedelman/.ssh/authorized\_keys /root/.ssh/” Using the c…

---

## [Convention over configuration or generating list fact from list variable](https://forum.ansible.com/t/convention-over-configuration-or-generating-list-fact-from-list-variable/15608)

<div class="topic-metadata">

**Author:** [@Pedro\_Romano](https://forum.ansible.com/u/Pedro_Romano)\
**Replies:** 3\
**Last updated:** [July 4, 2014, 12:42pm UTC](https://forum.ansible.com/t/convention-over-configuration-or-generating-list-fact-from-list-variable/15608 "2014-07-04T12:42:36Z")

</div>

I want to create users and then authorise their respective ssh public keys. Following the mantra of convention over configuration, the public key filename can be easily derived from the user name. However, I find myself…

---

## [issue to use variable for retries in the loop](https://forum.ansible.com/t/issue-to-use-variable-for-retries-in-the-loop/14477)

<div class="topic-metadata">

**Author:** [@jack1](https://forum.ansible.com/u/jack1)\
**Replies:** 4\
**Last updated:** [July 4, 2014, 12:29pm UTC](https://forum.ansible.com/t/issue-to-use-variable-for-retries-in-the-loop/14477 "2014-07-04T12:29:14Z")

</div>

Hi, we are trying to use the variable for the value of retries at loop. But always hit an error. We are using ansible version 1.4.3. Here is the sample test playbook: hosts: test-servers vars: tries: 5 tasks: name…

---

## [Hierarchical roles?](https://forum.ansible.com/t/hierarchical-roles/15606)

<div class="topic-metadata">

**Author:** [@Carlos\_A\_Carnero\_Del](https://forum.ansible.com/u/Carlos_A_Carnero_Del)\
**Replies:** 2\
**Last updated:** [July 4, 2014, 12:28pm UTC](https://forum.ansible.com/t/hierarchical-roles/15606 "2014-07-04T12:28:18Z")

</div>

Hi, I've been experimenting with roles, so, following the documentation I have something like this

---

## [Runnig roles directly via ansible or ansible-playbook](https://forum.ansible.com/t/runnig-roles-directly-via-ansible-or-ansible-playbook/15607)

<div class="topic-metadata">

**Author:** [@Raghu\_Udiyar](https://forum.ansible.com/u/Raghu_Udiyar)\
**Replies:** 1\
**Last updated:** [July 4, 2014, 12:27pm UTC](https://forum.ansible.com/t/runnig-roles-directly-via-ansible-or-ansible-playbook/15607 "2014-07-04T12:27:38Z")

</div>

Hi, When running roles on a set of machines, I end up writing a small playbook to specify the host pattern and roles to run. I was wondering instead of this, is there a easier method, so that this can be specified direc…

---

## [Help understanding shell modules](https://forum.ansible.com/t/help-understanding-shell-modules/15601)

<div class="topic-metadata">

**Author:** [@Stuart\_Reynolds](https://forum.ansible.com/u/Stuart_Reynolds)\
**Replies:** 2\
**Last updated:** [July 3, 2014, 10:47pm UTC](https://forum.ansible.com/t/help-understanding-shell-modules/15601 "2014-07-03T22:47:50Z")

</div>

I’m trying to understand what I can expect when writing my own modules. My hope would be to more quickly move and existing Makefile and shell script configuration to ansible. However, just testing a simple shell module: …

---

## [Proper way to rollback an action if failed](https://forum.ansible.com/t/proper-way-to-rollback-an-action-if-failed/12744)

<div class="topic-metadata">

**Author:** [@PePe\_Amengual](https://forum.ansible.com/u/PePe_Amengual)\
**Replies:** 12\
**Last updated:** [July 3, 2014, 10:04pm UTC](https://forum.ansible.com/t/proper-way-to-rollback-an-action-if-failed/12744 "2014-07-03T22:04:49Z")

</div>

Hi. I have been thinking to replace a webistrano deployment since is really slow and I don’t want to learn or ruby or capistrano so I was thinking to do all the deployment with ansible. One nice thing that webistrano/c…

---

## [Manual git clone (locally) works, but same command using ansible (localhost) fails](https://forum.ansible.com/t/manual-git-clone-locally-works-but-same-command-using-ansible-localhost-fails/15593)

<div class="topic-metadata">

**Author:** [@Ken\_Lemoine](https://forum.ansible.com/u/Ken_Lemoine)\
**Replies:** 2\
**Last updated:** [July 3, 2014, 9:13pm UTC](https://forum.ansible.com/t/manual-git-clone-locally-works-but-same-command-using-ansible-localhost-fails/15593 "2014-07-03T21:13:08Z")

</div>

Hello, I can run this command successfully on my ansible server - git clone git@github.com:path/repo.git However, this command fails (see verbose ssh output below). ‘local’ is a host inventory group consisting of ‘loc…

---

## [Templates, loops, dynamically list 1 or more lines](https://forum.ansible.com/t/templates-loops-dynamically-list-1-or-more-lines/15598)

<div class="topic-metadata">

**Author:** [@jepper](https://forum.ansible.com/u/jepper)\
**Replies:** 4\
**Last updated:** [July 3, 2014, 8:07pm UTC](https://forum.ansible.com/t/templates-loops-dynamically-list-1-or-more-lines/15598 "2014-07-03T20:07:21Z")

</div>

I have to write a template so that I can produce the following - queue physicalName can vary in quantity, and may have 1 2 or 3 entries typically. This seems to be the challenge. I can do a more static version with - { ‘…

---

## [powerbroker (pbrun) solutions?](https://forum.ansible.com/t/powerbroker-pbrun-solutions/15600)

<div class="topic-metadata">

**Author:** [@Nathan\_Robertson](https://forum.ansible.com/u/Nathan_Robertson)\
**Replies:** 3\
**Last updated:** [July 3, 2014, 8:01pm UTC](https://forum.ansible.com/t/powerbroker-pbrun-solutions/15600 "2014-07-03T20:01:45Z")

</div>

I saw some people talk about implementing a pbrun solutions into Ansible but last I see is people just running shell and command tasks to do all the work. We access a wide range of systems and only a small portion of the…

---

## [include error message misleading](https://forum.ansible.com/t/include-error-message-misleading/15599)

<div class="topic-metadata">

**Author:** [@Tom\_Ekberg](https://forum.ansible.com/u/Tom_Ekberg)\
**Replies:** 1\
**Last updated:** [July 3, 2014, 8:01pm UTC](https://forum.ansible.com/t/include-error-message-misleading/15599 "2014-07-03T20:01:02Z")

</div>

I distilled the problem down to a simple YAML file: \` hosts: apps2 vars: TOP\_BAD: “…” tasks: name: check TOP debug: msg=“{{TOP}}” handlers: include: “{{TOP}}/handlers/apache\_graceful.yml” \` When I save this…

---

## ["recycling" script output in a playbook](https://forum.ansible.com/t/recycling-script-output-in-a-playbook/15602)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 0\
**Last updated:** [July 3, 2014, 8:00pm UTC](https://forum.ansible.com/t/recycling-script-output-in-a-playbook/15602 "2014-07-03T20:00:03Z")

</div>

Hi, I’ve got a script that can produce JSON output and would like to register that output as a variable. I know it sounds lot like module but it isn’t. It’s a generic tool that can operate with or without ansible. I ha…

---

## [Ansible 1.6.6 - refinements to previous security fixes](https://forum.ansible.com/t/ansible-1-6-6-refinements-to-previous-security-fixes/15587)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 2\
**Last updated:** [July 3, 2014, 12:32pm UTC](https://forum.ansible.com/t/ansible-1-6-6-refinements-to-previous-security-fixes/15587 "2014-07-03T12:32:14Z")

</div>

Hi everyone, Today we have updated Ansible to 1.6.6. As you may remember, last week we updated our remote data checking code to lock down some security items, and the result of that was that our great open source commu…

---

## [Jinja2 template directives](https://forum.ansible.com/t/jinja2-template-directives/15596)

<div class="topic-metadata">

**Author:** [@Henry\_Finucane](https://forum.ansible.com/u/Henry_Finucane)\
**Replies:** 5\
**Last updated:** [July 3, 2014, 12:31pm UTC](https://forum.ansible.com/t/jinja2-template-directives/15596 "2014-07-03T12:31:33Z")

</div>

Howdy, One of the changes to 1.6.6 dropped support for jinja2 template directives: https://github.com/ansible/ansible/commit/3761bc113295e20771544491d007f1d328f40b99 I'd been leaning on that pretty heavily to convert …

---

## [Multiple projects on one server](https://forum.ansible.com/t/multiple-projects-on-one-server/15591)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 5\
**Last updated:** [July 2, 2014, 10:19pm UTC](https://forum.ansible.com/t/multiple-projects-on-one-server/15591 "2014-07-02T22:19:53Z")

</div>

Hi all! Does anybody had experience in managing deployment of two or moredifferent projects on one system? I have such task and main issue that Im experiencing is configuration an dependencies clashes. Best solution w…

---

## [How to use changed\_when with user:](https://forum.ansible.com/t/how-to-use-changed-when-with-user/15594)

<div class="topic-metadata">

**Author:** [@Kenton\_Brede](https://forum.ansible.com/u/Kenton_Brede)\
**Replies:** 1\
**Last updated:** [July 2, 2014, 10:18pm UTC](https://forum.ansible.com/t/how-to-use-changed-when-with-user/15594 "2014-07-02T22:18:36Z")

</div>

Trying to learn more about how to use Ansible. I’ve got a situation where a mix of local and LDAP users may exist on a box. In some situations user1 may either be a local user or LDAP user. I created a task to remove ce…

---

## [roles/vars/main.yml - but what about other files in this directory](https://forum.ansible.com/t/roles-vars-main-yml-but-what-about-other-files-in-this-directory/12838)

<div class="topic-metadata">

**Author:** [@jschulman](https://forum.ansible.com/u/jschulman)\
**Replies:** 8\
**Last updated:** [July 2, 2014, 10:16pm UTC](https://forum.ansible.com/t/roles-vars-main-yml-but-what-about-other-files-in-this-directory/12838 "2014-07-02T22:16:27Z")

</div>

I’m using roles for template building, and would like to understand the use the of the vars directory a bit more. From the docs, I see that ansible will automatically pick up roles/{role}/vars/main.yml. But let’s say tha…

---

## [Problems with permissions accesing files with sudo](https://forum.ansible.com/t/problems-with-permissions-accesing-files-with-sudo/15581)

<div class="topic-metadata">

**Author:** [@micafer](https://forum.ansible.com/u/micafer)\
**Replies:** 4\
**Last updated:** [July 2, 2014, 10:14pm UTC](https://forum.ansible.com/t/problems-with-permissions-accesing-files-with-sudo/15581 "2014-07-02T22:14:28Z")

</div>

Hi, I’m having problems with permissions accessing files. I have this simple test playbook: hosts: all sudo: true tasks: copy: src=/tmp/root.txt dest=/tmp/pr.txt The file “/tmp/root.txt” is owned by the root user …

---

## [How to use changed\_when with user:](https://forum.ansible.com/t/how-to-use-changed-when-with-user/15592)

<div class="topic-metadata">

**Author:** [@Kenton\_Brede](https://forum.ansible.com/u/Kenton_Brede)\
**Replies:** 1\
**Last updated:** [July 2, 2014, 5:14pm UTC](https://forum.ansible.com/t/how-to-use-changed-when-with-user/15592 "2014-07-02T17:14:35Z")

</div>

Trying to learn more about how to use Ansible. I’ve got a situation where a mix of local and LDAP users may exist on a box. In some situations user1 may either be a local user or LDAP user. I created a task to remove ce…

---

## [How to use custom private key with ansible?](https://forum.ansible.com/t/how-to-use-custom-private-key-with-ansible/15572)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 3\
**Last updated:** [July 2, 2014, 6:18am UTC](https://forum.ansible.com/t/how-to-use-custom-private-key-with-ansible/15572 "2014-07-02T06:18:56Z")

</div>

What is the analog for : ssh -i my\_key.pem \[ubuntu@123.123.123.123\](mailto:ubuntu@123.123.123.123) in Ansible?

---

## [Boolean variables and when condition](https://forum.ansible.com/t/boolean-variables-and-when-condition/15579)

<div class="topic-metadata">

**Author:** [@igorc](https://forum.ansible.com/u/igorc)\
**Replies:** 3\
**Last updated:** [July 2, 2014, 1:14am UTC](https://forum.ansible.com/t/boolean-variables-and-when-condition/15579 "2014-07-02T01:14:12Z")

</div>

Hi guys, Simple question … given that the vars below are boolean type with values of true or false, does this condition make sense? when: (var1 | bool and var2 | bool) or not var3 | bool Although I would expect to wor…

---

## [New GCE Fact module](https://forum.ansible.com/t/new-gce-fact-module/15588)

<div class="topic-metadata">

**Author:** [@Mark\_Olliver](https://forum.ansible.com/u/Mark_Olliver)\
**Replies:** 2\
**Last updated:** [July 1, 2014, 11:38pm UTC](https://forum.ansible.com/t/new-gce-fact-module/15588 "2014-07-01T23:38:17Z")

</div>

Hi, I am trying to write a fact module to read the Google Compute Engine Metadata. So far I have the following script: https://gist.github.com/pixie79/d5399bbdc9df7e68fb4e This works fine when I run it via: hacking/tes…

---

## [check for file system before mount](https://forum.ansible.com/t/check-for-file-system-before-mount/15589)

<div class="topic-metadata">

**Author:** [@Mark\_Olliver](https://forum.ansible.com/u/Mark_Olliver)\
**Replies:** 1\
**Last updated:** [July 1, 2014, 10:33pm UTC](https://forum.ansible.com/t/check-for-file-system-before-mount/15589 "2014-07-01T22:33:37Z")

</div>

Hi, I have a file system that is present on some servers but not others /dev/sdb, what is the best way to automatically format this disk if is is currently not formatted and then mount it to /data. If the device does no…

---

## [How do I keep role vars from leaking out?](https://forum.ansible.com/t/how-do-i-keep-role-vars-from-leaking-out/15582)

<div class="topic-metadata">

**Author:** [@John\_Anderson](https://forum.ansible.com/u/John_Anderson)\
**Replies:** 9\
**Last updated:** [July 1, 2014, 8:45pm UTC](https://forum.ansible.com/t/how-do-i-keep-role-vars-from-leaking-out/15582 "2014-07-01T20:45:37Z")

</div>

I have the following structure: roles/pythonapp/ roles/billingsvc/ roles/usersvc/ pythonapp is a generic set of instructions like cloning and installing a python package, billingsvc and usersvc both include it in the…

---

## [Shouldn't run\_command expand user on cwd ?](https://forum.ansible.com/t/shouldnt-run-command-expand-user-on-cwd/15584)

<div class="topic-metadata">

**Author:** [@Michel\_Blanc](https://forum.ansible.com/u/Michel_Blanc)\
**Replies:** 1\
**Last updated:** [July 1, 2014, 7:00pm UTC](https://forum.ansible.com/t/shouldnt-run-command-expand-user-on-cwd/15584 "2014-07-01T19:00:35Z")

</div>

Hi, I came across an issue today using the npm module where a path passed via the 'path' parameter wasn't being user-expanded. I tracked this down to the run\_command function in lib/ansible/module\_utils/basic.py wher…

---

## [way to upload configuration file to Cisco router?](https://forum.ansible.com/t/way-to-upload-configuration-file-to-cisco-router/15580)

<div class="topic-metadata">

**Author:** [@Lucas\_Johnson](https://forum.ansible.com/u/Lucas_Johnson)\
**Replies:** 1\
**Last updated:** [July 1, 2014, 6:47pm UTC](https://forum.ansible.com/t/way-to-upload-configuration-file-to-cisco-router/15580 "2014-07-01T18:47:13Z")

</div>

I am new to Ansible and am trying to figure out the best approach using Ansible to upload a configuration file to several Cisco devices. Cisco recommends using the console port or Ethernet management port and I was leani…

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

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