# Latest

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

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

**Page:** 507

---

## [Ansible command module giving errors in playbook](https://forum.ansible.com/t/ansible-command-module-giving-errors-in-playbook/29008)

<div class="topic-metadata">

**Author:** [@Vivek1](https://forum.ansible.com/u/Vivek1)\
**Replies:** 3\
**Last updated:** [November 12, 2018, 4:01pm UTC](https://forum.ansible.com/t/ansible-command-module-giving-errors-in-playbook/29008 "2018-11-12T16:01:38Z")

</div>

0down votefavorite I am creating a playbook to silently execute a installation package using Command module. But here I am getting playbook execution error. Below is my playbook sample. Here my aim is to execute the my…

---

## [Is there a way to access a play's vars section?](https://forum.ansible.com/t/is-there-a-way-to-access-a-plays-vars-section/28997)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 4\
**Last updated:** [November 12, 2018, 2:25pm UTC](https://forum.ansible.com/t/is-there-a-way-to-access-a-plays-vars-section/28997 "2018-11-12T14:25:50Z")

</div>

Given a play, I would like to reference somehow its vars section. I would like to achieve any of the two: The next play to have access to the vars of the previous play like “{{ prev\_play\_vars }}” The vars section of ea…

---

## [rootsh in Ansible for privilege escalation](https://forum.ansible.com/t/rootsh-in-ansible-for-privilege-escalation/29006)

<div class="topic-metadata">

**Author:** [@write\_Bapun](https://forum.ansible.com/u/write_Bapun)\
**Replies:** 0\
**Last updated:** [November 12, 2018, 2:17pm UTC](https://forum.ansible.com/t/rootsh-in-ansible-for-privilege-escalation/29006 "2018-11-12T14:17:47Z")

</div>

Hello All, I am looking if Ansible supports rootsh for privilege escalation. I have tried all possible ways but i am not successful yet. Documenation: https://linux.die.net/man/1/rootsh If there is no module/plugin pr…

---

## [Cron module](https://forum.ansible.com/t/cron-module/29005)

<div class="topic-metadata">

**Author:** [@f.second](https://forum.ansible.com/u/f.second)\
**Replies:** 2\
**Last updated:** [November 12, 2018, 1:12pm UTC](https://forum.ansible.com/t/cron-module/29005 "2018-11-12T13:12:05Z")

</div>

Hello, It’s not possible to install cron module for manage crontab. https://docs.ansible.com/ansible/2.7/modules/cron\_module.html?highlight=cron#requirements pip install cron I’ve this issue : playbook pip install c…

---

## [Logging per playbook file](https://forum.ansible.com/t/logging-per-playbook-file/28986)

<div class="topic-metadata">

**Author:** [@Sorin\_Work](https://forum.ansible.com/u/Sorin_Work)\
**Replies:** 3\
**Last updated:** [November 12, 2018, 10:23am UTC](https://forum.ansible.com/t/logging-per-playbook-file/28986 "2018-11-12T10:23:26Z")

</div>

Hi all, I just recently started using Ansible and really like it! I’ve enabled the global logging directive in /etc/ansible/ansible.cfg, but I wonder if I can re-point where the log gets saved per playbook? The setup …

---

## [deep nested argument-spec is not getting validated](https://forum.ansible.com/t/deep-nested-argument-spec-is-not-getting-validated/28984)

<div class="topic-metadata">

**Author:** [@Suhas\_Bharadwaj](https://forum.ansible.com/u/Suhas_Bharadwaj)\
**Replies:** 2\
**Last updated:** [November 12, 2018, 9:14am UTC](https://forum.ansible.com/t/deep-nested-argument-spec-is-not-getting-validated/28984 "2018-11-12T09:14:20Z")

</div>

I’am writing a new module and the argument spec is like this member\_spec = dict( pwwn=dict(required=True, type=‘str’, aliases=\[‘interface’, ‘device-alias’\]), devtype=dict(type=‘str’, choices=\[‘initiator’, ‘target’, ‘b…

---

## [Jenkin Jobs are failing because it is not able to access the mapped n/w drive](https://forum.ansible.com/t/jenkin-jobs-are-failing-because-it-is-not-able-to-access-the-mapped-n-w-drive/29004)

<div class="topic-metadata">

**Author:** [@Kavya\_bhandari](https://forum.ansible.com/u/Kavya_bhandari)\
**Replies:** 1\
**Last updated:** [November 12, 2018, 9:01am UTC](https://forum.ansible.com/t/jenkin-jobs-are-failing-because-it-is-not-able-to-access-the-mapped-n-w-drive/29004 "2018-11-12T09:01:54Z")

</div>

Hi please help to resolve the following issue . hosts: become\_user: become\_method: runas tasks: name: to start bat file win\_scheduled\_task: name: task name here username: \<domain\\user\> password: actions: pa…

---

## [VMware dvs portgroup](https://forum.ansible.com/t/vmware-dvs-portgroup/28994)

<div class="topic-metadata">

**Author:** [@Barry\_Obie](https://forum.ansible.com/u/Barry_Obie)\
**Replies:** 1\
**Last updated:** [November 12, 2018, 7:15am UTC](https://forum.ansible.com/t/vmware-dvs-portgroup/28994 "2018-11-12T07:15:05Z")

</div>

Hi. I’m trying to use the VMware module to configure my vCenters. I have over 100 vlans and roughly 30 dv switches that I’m trying to configure. The dvs switches could have any combination of the vlans. I could do somet…

---

## [Including vars\_files based on a condition is getting failed](https://forum.ansible.com/t/including-vars-files-based-on-a-condition-is-getting-failed/29001)

<div class="topic-metadata">

**Author:** [@anushakeshipeddy4](https://forum.ansible.com/u/anushakeshipeddy4)\
**Replies:** 3\
**Last updated:** [November 12, 2018, 5:56am UTC](https://forum.ansible.com/t/including-vars-files-based-on-a-condition-is-getting-failed/29001 "2018-11-12T05:56:20Z")

</div>

Hi All, I am trying to include vars\_Files based on a condition but it is getting failed. Could somone please help. PLAYBOOK:

---

## [concatenate string with all list items](https://forum.ansible.com/t/concatenate-string-with-all-list-items/28987)

<div class="topic-metadata">

**Author:** [@Fatima\_Elfakih](https://forum.ansible.com/u/Fatima_Elfakih)\
**Replies:** 1\
**Last updated:** [November 11, 2018, 11:50pm UTC](https://forum.ansible.com/t/concatenate-string-with-all-list-items/28987 "2018-11-11T23:50:27Z")

</div>

hello I want to add a string for all item in my list without using “with\_item”. any proposition? Thx

---

## ["/bin/sh: 1: powershell: not found\\n"](https://forum.ansible.com/t/bin-sh-1-powershell-not-found-n/27369)

<div class="topic-metadata">

**Author:** [@ali.khawaja](https://forum.ansible.com/u/ali.khawaja)\
**Replies:** 10\
**Last updated:** [November 11, 2018, 8:29pm UTC](https://forum.ansible.com/t/bin-sh-1-powershell-not-found-n/27369 "2018-11-11T20:29:26Z")

</div>

i have a simple ansible playbook that i am using to configure some windows machines. i am getting the following error. i have installed powershell. is it the bash shell that is complaining? winrm is configured fine and i…

---

## [Set hosts value with an extra-vars doesn't work for my Ansible role](https://forum.ansible.com/t/set-hosts-value-with-an-extra-vars-doesnt-work-for-my-ansible-role/29003)

<div class="topic-metadata">

**Author:** [@Dylan\_Osef](https://forum.ansible.com/u/Dylan_Osef)\
**Replies:** 0\
**Last updated:** [November 11, 2018, 6:07pm UTC](https://forum.ansible.com/t/set-hosts-value-with-an-extra-vars-doesnt-work-for-my-ansible-role/29003 "2018-11-11T18:07:49Z")

</div>

I’ve got a problem with my ansible playbook : My playbook is composed of 5 roles and looks like this : --- - name: Création de la machine virtuelle {{ Host\_Name }} à l'aide du template {{ vcenter\_template }} hosts: l…

---

## [MongoDB PRs](https://forum.ansible.com/t/mongodb-prs/29002)

<div class="topic-metadata">

**Author:** [@rhysmeister](https://forum.ansible.com/u/rhysmeister)\
**Replies:** 0\
**Last updated:** [November 11, 2018, 4:16pm UTC](https://forum.ansible.com/t/mongodb-prs/29002 "2018-11-11T16:16:05Z")

</div>

Hello, I submitted two PRs to the Ansible project sometime ago… https://github.com/ansible/ansible/pull/43674 https://github.com/ansible/ansible/pull/43673 I appreciate you guys get a lot of these but can I find out …

---

## [Module vmware\_guest  option powerdon/powerdoff not work OK](https://forum.ansible.com/t/module-vmware-guest-option-powerdon-powerdoff-not-work-ok/29000)

<div class="topic-metadata">

**Author:** [@Lucas\_Jackson](https://forum.ansible.com/u/Lucas_Jackson)\
**Replies:** 2\
**Last updated:** [November 11, 2018, 4:19am UTC](https://forum.ansible.com/t/module-vmware-guest-option-powerdon-powerdoff-not-work-ok/29000 "2018-11-11T04:19:44Z")

</div>

Makes sense the behavior, your playbook is attempting to power on the vm (state: poweredon) if the vm is already powered on then changed should be false.

---

## [Rendering the variables](https://forum.ansible.com/t/rendering-the-variables/28998)

<div class="topic-metadata">

**Author:** [@BIJAY\_PARIDA](https://forum.ansible.com/u/BIJAY_PARIDA)\
**Replies:** 3\
**Last updated:** [November 10, 2018, 7:43pm UTC](https://forum.ansible.com/t/rendering-the-variables/28998 "2018-11-10T19:43:36Z")

</div>

I have defined the variable like below:- input\_host\_ports: 4000:fluent:syslog 4500:json:log 4800:plain:debuglog I want to get the render the variables in the jinja2 for loop like below: tcp { port =\> 4000 …

---

## [Ansible Installation into Custom Directory using Yum Repository](https://forum.ansible.com/t/ansible-installation-into-custom-directory-using-yum-repository/28999)

<div class="topic-metadata">

**Author:** [@acharyatejaswi25](https://forum.ansible.com/u/acharyatejaswi25)\
**Replies:** 1\
**Last updated:** [November 10, 2018, 6:46pm UTC](https://forum.ansible.com/t/ansible-installation-into-custom-directory-using-yum-repository/28999 "2018-11-10T18:46:15Z")

</div>

Hi, I have installed ansible and the version is 2.6.4 using yum repository in RHEL 6.8.By default,all the host,ansible.cfg…etc files are in “/etc/ansible” directory.Can I install it into a custom directory other than “/…

---

## [MongoDB Ansible PRs](https://forum.ansible.com/t/mongodb-ansible-prs/28881)

<div class="topic-metadata">

**Author:** [@rhysmeister](https://forum.ansible.com/u/rhysmeister)\
**Replies:** 1\
**Last updated:** [November 10, 2018, 6:41pm UTC](https://forum.ansible.com/t/mongodb-ansible-prs/28881 "2018-11-10T18:41:38Z")

</div>

Hello, I submitted two PRs to the Ansible project sometime ago… https://github.com/ansible/ansible/pull/43674 https://github.com/ansible/ansible/pull/43673 I appreciate you guys get a lot of these but can I find out …

---

## [Erro Playbook to Update](https://forum.ansible.com/t/erro-playbook-to-update/28975)

<div class="topic-metadata">

**Author:** [@Adelmo\_Silva](https://forum.ansible.com/u/Adelmo_Silva)\
**Replies:** 4\
**Last updated:** [November 10, 2018, 9:12am UTC](https://forum.ansible.com/t/erro-playbook-to-update/28975 "2018-11-10T09:12:36Z")

</div>

Good morning, my friends. I’m having an error happening on Ansible when I run the playbook below: hosts: all become: yes become\_method: sudo become\_user: ansible gather\_facts: yes tasks: name: Installing Updates …

---

## [LDAP authentication issues](https://forum.ansible.com/t/ldap-authentication-issues/28973)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 2\
**Last updated:** [November 10, 2018, 6:23am UTC](https://forum.ansible.com/t/ldap-authentication-issues/28973 "2018-11-10T06:23:12Z")

</div>

I am having issues integration with LDAP/AD. LDAP bind functions. When I don’t specify “LDAP Require Group” I can authenticate a user against LDAP/AD. So I assume that my user search/DN template settings are correct. I s…

---

## [How to deploy Microsoft Office using Ansible?](https://forum.ansible.com/t/how-to-deploy-microsoft-office-using-ansible/28966)

<div class="topic-metadata">

**Author:** [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Replies:** 5\
**Last updated:** [November 10, 2018, 12:28am UTC](https://forum.ansible.com/t/how-to-deploy-microsoft-office-using-ansible/28966 "2018-11-10T00:28:41Z")

</div>

Hi How can we deploy Microsoft Office through Ansible? Should I use the win\_package module? What options should I use?

---

## [AWS dynamic inventory not working - on ONE account](https://forum.ansible.com/t/aws-dynamic-inventory-not-working-on-one-account/27461)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 1\
**Last updated:** [November 10, 2018, 12:20am UTC](https://forum.ansible.com/t/aws-dynamic-inventory-not-working-on-one-account/27461 "2018-11-10T00:20:58Z")

</div>

I manage multiple AWS accounts. On all but one, I can use the ec2.py dynamic inventory script. On that one account, the inventory is always empty: kauer@kt:~/dev/ansible$ scripts/ec2.py --list { “\_meta”: { “hostvars…

---

## [Regression using variables availabe after gathering facts when specifying environment](https://forum.ansible.com/t/regression-using-variables-availabe-after-gathering-facts-when-specifying-environment/28974)

<div class="topic-metadata">

**Author:** [@Koen\_Smets](https://forum.ansible.com/u/Koen_Smets)\
**Replies:** 2\
**Last updated:** [November 9, 2018, 8:25pm UTC](https://forum.ansible.com/t/regression-using-variables-availabe-after-gathering-facts-when-specifying-environment/28974 "2018-11-09T20:25:38Z")

</div>

Dear all, Before upgrading to ansible-2.7.x, I was able to run the following playbook.

---

## [Any Ansiblers coming to the PyCon Canada coding sprints?](https://forum.ansible.com/t/any-ansiblers-coming-to-the-pycon-canada-coding-sprints/28996)

<div class="topic-metadata">

**Author:** [@Dorian\_Pula](https://forum.ansible.com/u/Dorian_Pula)\
**Replies:** 0\
**Last updated:** [November 9, 2018, 7:45pm UTC](https://forum.ansible.com/t/any-ansiblers-coming-to-the-pycon-canada-coding-sprints/28996 "2018-11-09T19:45:06Z")

</div>

Hey there! I’m helping to organize the upcoming PyCon Canada coding sprints that are happening in Toronto (Monday Nov 12 and Tuesday Nov 13). Is anyone from the Ansible team planning to come out? (See the wiki for more …

---

## [Sudo (become) limitations & Best Practices](https://forum.ansible.com/t/sudo-become-limitations-best-practices/28995)

<div class="topic-metadata">

**Author:** [@Acrobis\_Nubian](https://forum.ansible.com/u/Acrobis_Nubian)\
**Replies:** 0\
**Last updated:** [November 9, 2018, 5:10pm UTC](https://forum.ansible.com/t/sudo-become-limitations-best-practices/28995 "2018-11-09T17:10:58Z")

</div>

Hi guys, So being new to Ansible I recently bumped into what seems to be a sudo security issue in Ansible, which I suppose is a well-known thing in Ansible community, but for whatever reasons I couldn’t find a lot of in…

---

## [ERROR! the field 'hosts' is required but was not set](https://forum.ansible.com/t/error-the-field-hosts-is-required-but-was-not-set/28988)

<div class="topic-metadata">

**Author:** [@nexusbond.renz](https://forum.ansible.com/u/nexusbond.renz)\
**Replies:** 1\
**Last updated:** [November 9, 2018, 4:31pm UTC](https://forum.ansible.com/t/error-the-field-hosts-is-required-but-was-not-set/28988 "2018-11-09T16:31:09Z")

</div>

(attachments)

---

## [cant start websphere Liberty using ansible](https://forum.ansible.com/t/cant-start-websphere-liberty-using-ansible/28993)

<div class="topic-metadata">

**Author:** [@Vivek1](https://forum.ansible.com/u/Vivek1)\
**Replies:** 1\
**Last updated:** [November 9, 2018, 2:49pm UTC](https://forum.ansible.com/t/cant-start-websphere-liberty-using-ansible/28993 "2018-11-09T14:49:46Z")

</div>

Hi Experts, Really appreciate your guidance here… I have setup a Websphere liberty application in Linux environment, there I am doing commandline execution and i want to automate that process through ansible now After…

---

## [Ansible crontab special characters issue](https://forum.ansible.com/t/ansible-crontab-special-characters-issue/28985)

<div class="topic-metadata">

**Author:** [@Rabeet\_Waqar](https://forum.ansible.com/u/Rabeet_Waqar)\
**Replies:** 5\
**Last updated:** [November 9, 2018, 11:45am UTC](https://forum.ansible.com/t/ansible-crontab-special-characters-issue/28985 "2018-11-09T11:45:11Z")

</div>

i am using ansible cron module i am facing an issue when placing a job in ansible ansible escapes special characters my example job is: (((( /usr/bin/php /var/www/file.php )))) \> /var/log/cron.stderr 2\>&1; if \[ $? -g…

---

## [primi passi con Ansible da cygwin windows](https://forum.ansible.com/t/primi-passi-con-ansible-da-cygwin-windows/28989)

<div class="topic-metadata">

**Author:** [@Alfio\_Fresta](https://forum.ansible.com/u/Alfio_Fresta)\
**Replies:** 1\
**Last updated:** [November 9, 2018, 11:22am UTC](https://forum.ansible.com/t/primi-passi-con-ansible-da-cygwin-windows/28989 "2018-11-09T11:22:54Z")

</div>

Buogiorno a tutti, ho una difficoltà ad eseguire un semplice ansible da riga di comando in pratica devo cambiare un valore dentro un file di testo typescript ansible -m path:‘/Cattolica/MainConsts.ts’ regexp:‘STANDALON…

---

## [Zypper fails to install multiple dependant RPMs e.g. mysql](https://forum.ansible.com/t/zypper-fails-to-install-multiple-dependant-rpms-e-g-mysql/28977)

<div class="topic-metadata">

**Author:** [@dean\_warren](https://forum.ansible.com/u/dean_warren)\
**Replies:** 1\
**Last updated:** [November 9, 2018, 5:21am UTC](https://forum.ansible.com/t/zypper-fails-to-install-multiple-dependant-rpms-e-g-mysql/28977 "2018-11-09T05:21:42Z")

</div>

Trying to install mysql on SLES 12 SP1 using Ansible 2.7 Following officail mysql documentation as per here: https://dev.mysql.com/doc/refman/8.0/en/linux-installation-rpm.html i.e. using the following command: sudo …

---

## [Ansible automate backup restoration](https://forum.ansible.com/t/ansible-automate-backup-restoration/28972)

<div class="topic-metadata">

**Author:** [@tonitsh](https://forum.ansible.com/u/tonitsh)\
**Replies:** 3\
**Last updated:** [November 9, 2018, 5:15am UTC](https://forum.ansible.com/t/ansible-automate-backup-restoration/28972 "2018-11-09T05:15:55Z")

</div>

Hi. Im having trouble in my backup test playbook. backed up files are is Amazon s3 bucket. The problem is - we have many versions there. i need to limit rsync to latest version without providing it manually, or to prom…

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

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