# Latest

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

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

**Page:** 643

---

## [New Commer to the Ansible](https://forum.ansible.com/t/new-commer-to-the-ansible/24974)

<div class="topic-metadata">

**Author:** [@Bukhari](https://forum.ansible.com/u/Bukhari)\
**Replies:** 0\
**Last updated:** [July 13, 2017, 1:35pm UTC](https://forum.ansible.com/t/new-commer-to-the-ansible/24974 "2017-07-13T13:35:16Z")

</div>

Hi Guys I want to learn ansible: Being a newcomer, can you please direct the way to get this tool master in steps. Thank You! WSB

---

## [How can i get the amount of free space (numerical value) in a logical disk drive in windows server 2012 R2](https://forum.ansible.com/t/how-can-i-get-the-amount-of-free-space-numerical-value-in-a-logical-disk-drive-in-windows-server-2012-r2/22006)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 4\
**Last updated:** [July 13, 2017, 12:38pm UTC](https://forum.ansible.com/t/how-can-i-get-the-amount-of-free-space-numerical-value-in-a-logical-disk-drive-in-windows-server-2012-r2/22006 "2017-07-13T12:38:17Z")

</div>

I am trying very hard to get a numerical value of free disk space on a windows server 2012 R2 machine, but couldn’t get it so far. All the commands that are available for listing the disk space information - they are not…

---

## [Strategies for testing if network range available](https://forum.ansible.com/t/strategies-for-testing-if-network-range-available/24970)

<div class="topic-metadata">

**Author:** [@Josef\_Fortier](https://forum.ansible.com/u/Josef_Fortier)\
**Replies:** 1\
**Last updated:** [July 13, 2017, 10:54am UTC](https://forum.ansible.com/t/strategies-for-testing-if-network-range-available/24970 "2017-07-13T10:54:56Z")

</div>

My goal is to fail early and warn if storage network not set up (and set up mounts if it is set up). I’ve an approach that seems to work OK, but was wondering if there is a preferred/better path set\_fact: has\_storage\_…

---

## [How to put an array in a json object.](https://forum.ansible.com/t/how-to-put-an-array-in-a-json-object/24942)

<div class="topic-metadata">

**Author:** [@VenomMsk](https://forum.ansible.com/u/VenomMsk)\
**Replies:** 1\
**Last updated:** [July 13, 2017, 9:57am UTC](https://forum.ansible.com/t/how-to-put-an-array-in-a-json-object/24942 "2017-07-13T09:57:15Z")

</div>

Hi, I have a varible that contains an array: “AuthenticationHTTPheader”: \[ “iv-user”, “iv-groups” \], I need to pass this walue as a JSON-element in a body of a Request sent by URI module. So, body: ‘{ … “remote…

---

## [Error while linking: \[Errno 13\] Permission denied](https://forum.ansible.com/t/error-while-linking-errno-13-permission-denied/24971)

<div class="topic-metadata">

**Author:** [@Swapnil\_Bendekar1](https://forum.ansible.com/u/Swapnil_Bendekar1)\
**Replies:** 0\
**Last updated:** [July 13, 2017, 5:34am UTC](https://forum.ansible.com/t/error-while-linking-errno-13-permission-denied/24971 "2017-07-13T05:34:29Z")

</div>

Hello Folks, With Ansible(2.3.0.0) and python(2.6.6), executing ansible playbook from webadmin user. Using remote\_user = ansible (in ansible.cfg )for passwordless authentication. While creating symlink, getting Error …

---

## [Problems getting linux-controller for windows working](https://forum.ansible.com/t/problems-getting-linux-controller-for-windows-working/21149)

<div class="topic-metadata">

**Author:** [@Benjamin\_Loehner](https://forum.ansible.com/u/Benjamin_Loehner)\
**Replies:** 7\
**Last updated:** [July 13, 2017, 2:47am UTC](https://forum.ansible.com/t/problems-getting-linux-controller-for-windows-working/21149 "2017-07-13T02:47:05Z")

</div>

Hi, i followed the instructions at http://docs.ansible.com/ansible/intro\_windows.html to set up a control machine but it won’t work. I the set up a second machine, following these instructions http://darrylcauldwell.com…

---

## [Why can I debug this variable syntax but not set\_fact the same variable syntax?](https://forum.ansible.com/t/why-can-i-debug-this-variable-syntax-but-not-set-fact-the-same-variable-syntax/24959)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 2\
**Last updated:** [July 12, 2017, 8:57pm UTC](https://forum.ansible.com/t/why-can-i-debug-this-variable-syntax-but-not-set-fact-the-same-variable-syntax/24959 "2017-07-12T20:57:33Z")

</div>

Hello - I’m trying to register a variable on dynamic host {{ target }} and use it on a different host ptl01a0fap005. The dynamic host {{ target }} is passed in as an extra-var on the command line. I’ve found that I can …

---

## [when: inventory\_hostname != play\_hosts\[-1\] not working](https://forum.ansible.com/t/when-inventory-hostname-play-hosts-1-not-working/24969)

<div class="topic-metadata">

**Author:** [@chrono](https://forum.ansible.com/u/chrono)\
**Replies:** 0\
**Last updated:** [July 12, 2017, 8:35pm UTC](https://forum.ansible.com/t/when-inventory-hostname-play-hosts-1-not-working/24969 "2017-07-12T20:35:11Z")

</div>

Hello, I’m trying to get a role to run on all hosts except the last. I thought this would work: { role: wait, timeout: 300, tags: \[‘wait’\], when: inventory\_hostname != play\_hosts\[-1\] } …but I get a YAML syntax erro…

---

## ["/bin/sh" isn\\'t allowed to be executed](https://forum.ansible.com/t/bin-sh-isn-t-allowed-to-be-executed/24960)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 4\
**Last updated:** [July 12, 2017, 8:29pm UTC](https://forum.ansible.com/t/bin-sh-isn-t-allowed-to-be-executed/24960 "2017-07-12T20:29:48Z")

</div>

I’m trying to run commands against a remote host and even a simple ad hoc ping fails, with the error ‘“/bin/sh” isn't allowed to be executed’. The error message changes to ‘/bin/bash’ when I add “executable = /bin/bash” …

---

## [Way to recover latest backup?](https://forum.ansible.com/t/way-to-recover-latest-backup/12398)

<div class="topic-metadata">

**Author:** [@fdavis](https://forum.ansible.com/u/fdavis)\
**Replies:** 2\
**Last updated:** [July 12, 2017, 7:47pm UTC](https://forum.ansible.com/t/way-to-recover-latest-backup/12398 "2017-07-12T19:47:12Z")

</div>

Hello all, So… If I needed to restore those ‘backup=true’ files for some conf on a few hundred hosts. Do we have something in place for this? Lets say we run: the playbook that causes pain

---

## [Ansible role variables](https://forum.ansible.com/t/ansible-role-variables/24966)

<div class="topic-metadata">

**Author:** [@Martin\_Jablecnik](https://forum.ansible.com/u/Martin_Jablecnik)\
**Replies:** 0\
**Last updated:** [July 12, 2017, 3:07pm UTC](https://forum.ansible.com/t/ansible-role-variables/24966 "2017-07-12T15:07:54Z")

</div>

I have Ansible 2.3.0.0 with this roles in playbook: - { role: bwt-container, tags: \['bwt\_en', 'bwt'\], vars: { app\_lang: "en" } } - { role: bwt-container, tags: \['bwt\_de', 'bwt'\], vars: { app\_lang: "de" } } BWT appli…

---

## [Ansible syslogs to user.notice on the managed machine - can I change this?](https://forum.ansible.com/t/ansible-syslogs-to-user-notice-on-the-managed-machine-can-i-change-this/24956)

<div class="topic-metadata">

**Author:** [@Ed\_Greenberg](https://forum.ansible.com/u/Ed_Greenberg)\
**Replies:** 2\
**Last updated:** [July 12, 2017, 1:05pm UTC](https://forum.ansible.com/t/ansible-syslogs-to-user-notice-on-the-managed-machine-can-i-change-this/24956 "2017-07-12T13:05:26Z")

</div>

I have a task logging to user.notice, and I can’t change it. Ansible also logs to user.notice, and I’m wondering if I can change where it does that on a global basis. One of the locals would be nice. Any way to do this…

---

## [sudo: effective uid is not 0, is sudo installed setuid root?](https://forum.ansible.com/t/sudo-effective-uid-is-not-0-is-sudo-installed-setuid-root/24961)

<div class="topic-metadata">

**Author:** [@stianfp](https://forum.ansible.com/u/stianfp)\
**Replies:** 0\
**Last updated:** [July 12, 2017, 8:59am UTC](https://forum.ansible.com/t/sudo-effective-uid-is-not-0-is-sudo-installed-setuid-root/24961 "2017-07-12T08:59:44Z")

</div>

Hi, We get this when we try to run any job on our ansible clients via tower. Ansible tower server version 3.1.4, ansible version 2.4.0 (got the same error with older versions as well) Ansible server, and all other ser…

---

## [Extending the system/svc module](https://forum.ansible.com/t/extending-the-system-svc-module/24934)

<div class="topic-metadata">

**Author:** [@taca](https://forum.ansible.com/u/taca)\
**Replies:** 3\
**Last updated:** [July 12, 2017, 2:32am UTC](https://forum.ansible.com/t/extending-the-system-svc-module/24934 "2017-07-12T02:32:35Z")

</div>

Hello, I'm interested in extending the svc module for nosh (and possibly other daemontools family toolsets) and have a couple of questions/observations. A. current svc extension issues

---

## [Why parameterized attribute lookup on ansible variables fail?](https://forum.ansible.com/t/why-parameterized-attribute-lookup-on-ansible-variables-fail/24923)

<div class="topic-metadata">

**Author:** [@moe\_22](https://forum.ansible.com/u/moe_22)\
**Replies:** 2\
**Last updated:** [July 11, 2017, 11:35pm UTC](https://forum.ansible.com/t/why-parameterized-attribute-lookup-on-ansible-variables-fail/24923 "2017-07-11T23:35:29Z")

</div>

This is best explained by this example:

---

## [Feature request: "backup\_dir" parameter in copy module](https://forum.ansible.com/t/feature-request-backup-dir-parameter-in-copy-module/24958)

<div class="topic-metadata">

**Author:** [@Jos\_Vos](https://forum.ansible.com/u/Jos_Vos)\
**Replies:** 0\
**Last updated:** [July 11, 2017, 9:52pm UTC](https://forum.ansible.com/t/feature-request-backup-dir-parameter-in-copy-module/24958 "2017-07-11T21:52:29Z")

</div>

Hi, I would like to see a “backup\_dir” parameter for the copy module, where backup files (if the “backup” parameter is “yes”) are created (i.s.o. in the same directory as the dest files). Has this question been brought …

---

## [Jinja2 template not getting parsed correctly when using include and with\_items](https://forum.ansible.com/t/jinja2-template-not-getting-parsed-correctly-when-using-include-and-with-items/24957)

<div class="topic-metadata">

**Author:** [@Rasmus\_Sjorslev](https://forum.ansible.com/u/Rasmus_Sjorslev)\
**Replies:** 2\
**Last updated:** [July 11, 2017, 8:40pm UTC](https://forum.ansible.com/t/jinja2-template-not-getting-parsed-correctly-when-using-include-and-with-items/24957 "2017-07-11T20:40:42Z")

</div>

Im adding to an empty array/list defined in groups\_vars/all as: vminfo: \[\] the playbook creates new VMs and i need to register some information for later reference (teardown) so i add the relevant info to this vminfo l…

---

## [Connecting to Cisco IOS device through Cisco terminal server (29xx)](https://forum.ansible.com/t/connecting-to-cisco-ios-device-through-cisco-terminal-server-29xx/24944)

<div class="topic-metadata">

**Author:** [@coolcps](https://forum.ansible.com/u/coolcps)\
**Replies:** 1\
**Last updated:** [July 11, 2017, 2:26pm UTC](https://forum.ansible.com/t/connecting-to-cisco-ios-device-through-cisco-terminal-server-29xx/24944 "2017-07-11T14:26:51Z")

</div>

I would like Ansible to connect to the console port of IOS devices to provision them. I have set up a Cisco 29xx terminal server to use SSH. The issue is that in order to access the device, you must now go through two pr…

---

## [Ansible log\_path to also include the command line that invoked ansible-playbook?](https://forum.ansible.com/t/ansible-log-path-to-also-include-the-command-line-that-invoked-ansible-playbook/24946)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 2\
**Last updated:** [July 11, 2017, 2:15pm UTC](https://forum.ansible.com/t/ansible-log-path-to-also-include-the-command-line-that-invoked-ansible-playbook/24946 "2017-07-11T14:15:51Z")

</div>

Question - Is it also possible for Ansible log\_path to log the actual command that was used to invoke the ansible-playbook? It does a great job of tracking tasks and status, but I can’t see the command itself. Would be …

---

## [Ansible Windows: Add account to group administrators FR/US](https://forum.ansible.com/t/ansible-windows-add-account-to-group-administrators-fr-us/24932)

<div class="topic-metadata">

**Author:** [@fanchfanch44](https://forum.ansible.com/u/fanchfanch44)\
**Replies:** 2\
**Last updated:** [July 11, 2017, 2:09pm UTC](https://forum.ansible.com/t/ansible-windows-add-account-to-group-administrators-fr-us/24932 "2017-07-11T14:09:22Z")

</div>

Hello, I’m starting with Ansible. I would like to know in a playbook how to test if the windows computer is in version FR or US. Following the test, I would add account users to the local “Administrators” or “Administra…

---

## [vmware - Managing several portgroups on a cluster](https://forum.ansible.com/t/vmware-managing-several-portgroups-on-a-cluster/24926)

<div class="topic-metadata">

**Author:** [@Drew\_Merryman](https://forum.ansible.com/u/Drew_Merryman)\
**Replies:** 1\
**Last updated:** [July 11, 2017, 2:09pm UTC](https://forum.ansible.com/t/vmware-managing-several-portgroups-on-a-cluster/24926 "2017-07-11T14:09:13Z")

</div>

Hey all, I’m new to Ansible but I’m really liking it so far. However, I think what I’m trying to do is a bit more advanced, or perhaps Ansible isn’t the right tool? Here is the problem: Currently I have several datacen…

---

## [What are fire and forget tasks ?](https://forum.ansible.com/t/what-are-fire-and-forget-tasks/24951)

<div class="topic-metadata">

**Author:** [@Luvpreet\_Singh](https://forum.ansible.com/u/Luvpreet_Singh)\
**Replies:** 0\
**Last updated:** [July 11, 2017, 2:00pm UTC](https://forum.ansible.com/t/what-are-fire-and-forget-tasks/24951 "2017-07-11T14:00:26Z")

</div>

I have read the asynchronous actions and polling in Ansible docs. But I could not understand it. I understand that poll means the time interval after which the status of the job will be checked. I think Async means the…

---

## [Testing Huawei with Errors](https://forum.ansible.com/t/testing-huawei-with-errors/24950)

<div class="topic-metadata">

**Author:** [@jepoy](https://forum.ansible.com/u/jepoy)\
**Replies:** 0\
**Last updated:** [July 11, 2017, 11:31am UTC](https://forum.ansible.com/t/testing-huawei-with-errors/24950 "2017-07-11T11:31:27Z")

</div>

Hi All, Im just new to ansible and tested few successful samples on IOS and IOSXR, but im having an error for huawei. I just want to display the current config and copy to a file but ive encounted below errors. root@a…

---

## [Running command modules without Python on target host](https://forum.ansible.com/t/running-command-modules-without-python-on-target-host/24876)

<div class="topic-metadata">

**Author:** [@Nathan\_Adler](https://forum.ansible.com/u/Nathan_Adler)\
**Replies:** 1\
**Last updated:** [July 11, 2017, 9:00am UTC](https://forum.ansible.com/t/running-command-modules-without-python-on-target-host/24876 "2017-07-11T09:00:33Z")

</div>

Hi, I am working in an environment where I want to use ansible to ssh from one machine with python & ansible installed, to another (target) machine - effectively a jumphost - without python, before running a series of c…

---

## [Using include\_vars and with\_items with optiona files == bug?](https://forum.ansible.com/t/using-include-vars-and-with-items-with-optiona-files-bug/24945)

<div class="topic-metadata">

**Author:** [@dan\_linder](https://forum.ansible.com/u/dan_linder)\
**Replies:** 5\
**Last updated:** [July 11, 2017, 12:04am UTC](https://forum.ansible.com/t/using-include-vars-and-with-items-with-optiona-files-bug/24945 "2017-07-11T00:04:49Z")

</div>

I’m trying to setup a hierarchical set of variable files so that different teams can setup value, permitting more specific instances to override generic ones. The key is that the more specific instances may not be define…

---

## [Block/Rescue/Always Exit Code](https://forum.ansible.com/t/block-rescue-always-exit-code/24947)

<div class="topic-metadata">

**Author:** [@Joao\_Cravo](https://forum.ansible.com/u/Joao_Cravo)\
**Replies:** 0\
**Last updated:** [July 10, 2017, 9:29pm UTC](https://forum.ansible.com/t/block-rescue-always-exit-code/24947 "2017-07-10T21:29:45Z")

</div>

Hi! When I use Block that has a task that fails, and then I rescue it, what should be the ansible exit code? AFAIK, on the documentation, there is no information about it. I have a scenario where I would like to use re…

---

## [Add user to "administrators" group or "administrateurs" group](https://forum.ansible.com/t/add-user-to-administrators-group-or-administrateurs-group/24922)

<div class="topic-metadata">

**Author:** [@fanchfanch44](https://forum.ansible.com/u/fanchfanch44)\
**Replies:** 1\
**Last updated:** [July 10, 2017, 8:04pm UTC](https://forum.ansible.com/t/add-user-to-administrators-group-or-administrateurs-group/24922 "2017-07-10T20:04:56Z")

</div>

Hello, I would like to create a playbook that adds a user to the administrators group. This action is simple and is an example. But my problem is that I have servers in FR and the group is not administrators but adminis…

---

## [Cisco switch unreachable](https://forum.ansible.com/t/cisco-switch-unreachable/24931)

<div class="topic-metadata">

**Author:** [@Phil\_F](https://forum.ansible.com/u/Phil_F)\
**Replies:** 2\
**Last updated:** [July 10, 2017, 7:40pm UTC](https://forum.ansible.com/t/cisco-switch-unreachable/24931 "2017-07-10T19:40:43Z")

</div>

Hi, I have just installed Ansible for the first time and am attempting to connect to a Cisco switch, this needs to be with username and password. From both an Ubuntu server and my Mac I can ssh to the box with the same…

---

## [Not able to use ec2\_vpc\_endpoint module](https://forum.ansible.com/t/not-able-to-use-ec2-vpc-endpoint-module/24938)

<div class="topic-metadata">

**Author:** [@shuvam\_jha](https://forum.ansible.com/u/shuvam_jha)\
**Replies:** 1\
**Last updated:** [July 10, 2017, 6:14pm UTC](https://forum.ansible.com/t/not-able-to-use-ec2-vpc-endpoint-module/24938 "2017-07-10T18:14:24Z")

</div>

Hi , I am using ansible 2.3.1.0 , python version = 2.7.5 . When i am trying to use ec2\_vpc\_endpoint module it is giving error , but i am able to run other ec2 or aws modules . I have checked the list of module by runnin…

---

## [Ansible dynamic variable](https://forum.ansible.com/t/ansible-dynamic-variable/24937)

<div class="topic-metadata">

**Author:** [@Kethzer\_Docteur](https://forum.ansible.com/u/Kethzer_Docteur)\
**Replies:** 1\
**Last updated:** [July 10, 2017, 6:08pm UTC](https://forum.ansible.com/t/ansible-dynamic-variable/24937 "2017-07-10T18:08:51Z")

</div>

Im trying to have ansible Update variable value base on OS distribution, but Im faling when I insert the rules in a template. Any idea how to solve this? --- - hosts: fansible,cansible vars: nagios\_freebsd\_load: -…

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

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