# Latest

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

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

**Page:** 637

---

## [Unsupported parameters for (copy) module: when](https://forum.ansible.com/t/unsupported-parameters-for-copy-module-when/25138)

<div class="topic-metadata">

**Author:** [@mark.haney](https://forum.ansible.com/u/mark.haney)\
**Replies:** 4\
**Last updated:** [July 31, 2017, 6:11pm UTC](https://forum.ansible.com/t/unsupported-parameters-for-copy-module-when/25138 "2017-07-31T18:11:57Z")

</div>

I’ve got a task I’m trying to run, where a file gets copied if that file has changed. It’s a local file (though it’s copied from a remote to a local destination first) and I want to copy it to several hosts. When I run t…

---

## [Expect module in ansible](https://forum.ansible.com/t/expect-module-in-ansible/25118)

<div class="topic-metadata">

**Author:** [@SARANYA\_devotional\_R](https://forum.ansible.com/u/SARANYA_devotional_R)\
**Replies:** 4\
**Last updated:** [July 31, 2017, 6:02pm UTC](https://forum.ansible.com/t/expect-module-in-ansible/25118 "2017-07-31T18:02:52Z")

</div>

Expect module is not taking the password! Task: expect: command: ssh -l admin localhost -p 10000 responses: admin@localhost’s password: “xyz” Error: TASK \[unpresentrepo : expect\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Where is the doc/spec for the \`task\` object that gets provided to \`CallbackModule#v2\_playbook\_on\_task\`\_start in callback plugins?](https://forum.ansible.com/t/where-is-the-doc-spec-for-the-task-object-that-gets-provided-to-callbackmodule-v2-playbook-on-task-start-in-callback-plugins/25129)

<div class="topic-metadata">

**Author:** [@neil1](https://forum.ansible.com/u/neil1)\
**Replies:** 2\
**Last updated:** [July 31, 2017, 5:10pm UTC](https://forum.ansible.com/t/where-is-the-doc-spec-for-the-task-object-that-gets-provided-to-callbackmodule-v2-playbook-on-task-start-in-callback-plugins/25129 "2017-07-31T17:10:12Z")

</div>

Developing a callback plugin and need to recognize when a particular task come through. I did some Google’n but didn’t find anything… I’m guessing it’s an instance of Task from lib/ansible/playbook/task.py? Does Ansibl…

---

## [Is it possible to change the Vault cipher from AES256?](https://forum.ansible.com/t/is-it-possible-to-change-the-vault-cipher-from-aes256/25117)

<div class="topic-metadata">

**Author:** [@LeamHall](https://forum.ansible.com/u/LeamHall)\
**Replies:** 1\
**Last updated:** [July 31, 2017, 3:03pm UTC](https://forum.ansible.com/t/is-it-possible-to-change-the-vault-cipher-from-aes256/25117 "2017-07-31T15:03:14Z")

</div>

The stuff I’ve read said that AES256 is the default but I can’t find what options are available and where it gets changed. Thanks! Leam

---

## [Ansible: Register a VM to sphere ( vcenter)](https://forum.ansible.com/t/ansible-register-a-vm-to-sphere-vcenter/25130)

<div class="topic-metadata">

**Author:** [@Victor1](https://forum.ansible.com/u/Victor1)\
**Replies:** 2\
**Last updated:** [July 31, 2017, 2:34pm UTC](https://forum.ansible.com/t/ansible-register-a-vm-to-sphere-vcenter/25130 "2017-07-31T14:34:38Z")

</div>

Hi , I am trying to register a VM through vmware-cmd command line as below but it fails with the following error message. has anybody tried this earlier. any help is appreciated. I just need to register a VM to vcente…

---

## [PostgreSQL create user module expected to work on windows?](https://forum.ansible.com/t/postgresql-create-user-module-expected-to-work-on-windows/25135)

<div class="topic-metadata">

**Author:** [@Andy\_Redhead](https://forum.ansible.com/u/Andy_Redhead)\
**Replies:** 0\
**Last updated:** [July 31, 2017, 12:00pm UTC](https://forum.ansible.com/t/postgresql-create-user-module-expected-to-work-on-windows/25135 "2017-07-31T12:00:59Z")

</div>

Hi, I just tried the following in a playbook running against a Win 2016 server that has PostgreSQL 9.6 installed: name: create postgresql cmdb user postgresql\_user: login\_password: “{{ a365\_postgresql\_admin\_password…

---

## [Anisble provider not working with authorize.](https://forum.ansible.com/t/anisble-provider-not-working-with-authorize/25134)

<div class="topic-metadata">

**Author:** [@akku1](https://forum.ansible.com/u/akku1)\
**Replies:** 0\
**Last updated:** [July 31, 2017, 10:12am UTC](https://forum.ansible.com/t/anisble-provider-not-working-with-authorize/25134 "2017-07-31T10:12:46Z")

</div>

ansible 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides

---

## [inventory\_groupname variable (similar to inventory\_hostname)](https://forum.ansible.com/t/inventory-groupname-variable-similar-to-inventory-hostname/25133)

<div class="topic-metadata">

**Author:** [@Darshan\_Shroff](https://forum.ansible.com/u/Darshan_Shroff)\
**Replies:** 1\
**Last updated:** [July 31, 2017, 9:18am UTC](https://forum.ansible.com/t/inventory-groupname-variable-similar-to-inventory-hostname/25133 "2017-07-31T09:18:26Z")

</div>

Ansible FAQ clarifies “‘inventory\_hostname’ is a magic variable that indicates the current host you are looping over in the host loop.” Is there a similar concept of inventory\_groupname that can be made available to be…

---

## [variable within a variable in template](https://forum.ansible.com/t/variable-within-a-variable-in-template/25132)

<div class="topic-metadata">

**Author:** [@madhan0618](https://forum.ansible.com/u/madhan0618)\
**Replies:** 0\
**Last updated:** [July 31, 2017, 1:30am UTC](https://forum.ansible.com/t/variable-within-a-variable-in-template/25132 "2017-07-31T01:30:06Z")

</div>

I am trying to push a property file template like the below schema.registry.url=http://{{ schemaregis\_host{{ play\_hosts.index(inventory\_hostname) }} }}:8081 I pass extra variables like these in the ansible input comman…

---

## [Ansible: Vmware\_guest\_Snapshot module  does not see the registered VM while creating the snapshot](https://forum.ansible.com/t/ansible-vmware-guest-snapshot-module-does-not-see-the-registered-vm-while-creating-the-snapshot/25131)

<div class="topic-metadata">

**Author:** [@Victor1](https://forum.ansible.com/u/Victor1)\
**Replies:** 0\
**Last updated:** [July 30, 2017, 6:52am UTC](https://forum.ansible.com/t/ansible-vmware-guest-snapshot-module-does-not-see-the-registered-vm-while-creating-the-snapshot/25131 "2017-07-30T06:52:46Z")

</div>

Hi , I am using following code to create a snapshot for a VM already register in a datastore with esxcli command line but it fails in creating snapshot as it is not able to find the VM. //registering a VM code - name:…

---

## [Ansible ACI Modules](https://forum.ansible.com/t/ansible-aci-modules/24799)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 3\
**Last updated:** [July 29, 2017, 9:47pm UTC](https://forum.ansible.com/t/ansible-aci-modules/24799 "2017-07-29T21:47:21Z")

</div>

Hi All, I’m aware of modules for ACI on Github (https://github.com/jedelman8/aci-ansible), however they haven’t seen a lot of updates in the last while. Is anyone using them who might be prepared to chat about their exp…

---

## [module failure even for low privileges  command](https://forum.ansible.com/t/module-failure-even-for-low-privileges-command/25127)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 1\
**Last updated:** [July 29, 2017, 9:09pm UTC](https://forum.ansible.com/t/module-failure-even-for-low-privileges-command/25127 "2017-07-29T21:09:35Z")

</div>

Here is the case, I want run this command on all servers, out of it one server does not have current user{smodak} in sudoers file. Due to switch it asks both the passwords one for ssh and another for sudo. For all remai…

---

## [not able to find output of shell command](https://forum.ansible.com/t/not-able-to-find-output-of-shell-command/25128)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 1\
**Last updated:** [July 29, 2017, 9:06pm UTC](https://forum.ansible.com/t/not-able-to-find-output-of-shell-command/25128 "2017-07-29T21:06:24Z")

</div>

This is my yml file which is working fine for zypper commands but unable to see output for /etc/motd file. How to see the output \[smodak@hel-shell-2 ~\]$ vi roles/basic/tasks/main.yml name: “Installing VIM” zypper: n…

---

## [ansible doubt](https://forum.ansible.com/t/ansible-doubt/25107)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 9\
**Last updated:** [July 29, 2017, 6:45pm UTC](https://forum.ansible.com/t/ansible-doubt/25107 "2017-07-29T18:45:04Z")

</div>

Hello Team, Can some one tell me do we need user to b in /etc/sudoers file of all servers if we wish to execute /sbin/vgs command on all servers. also how can we we store global username password variable for ansible w…

---

## [Getting started with "properly structured playbooks!?"](https://forum.ansible.com/t/getting-started-with-properly-structured-playbooks/25119)

<div class="topic-metadata">

**Author:** [@Nicholas\_Sheridan](https://forum.ansible.com/u/Nicholas_Sheridan)\
**Replies:** 2\
**Last updated:** [July 29, 2017, 6:15pm UTC](https://forum.ansible.com/t/getting-started-with-properly-structured-playbooks/25119 "2017-07-29T18:15:19Z")

</div>

Hi Forum, If I write playbooks using the “ansible-galaxy init” command: ansible-galaxy init standardisationBot Which gives me this shr1mac1:standardisationBot nsheridan$ tree . ├── README.md ├── defaults │ └── ma…

---

## [Templating PHP and quoting vars](https://forum.ansible.com/t/templating-php-and-quoting-vars/25126)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [July 29, 2017, 10:59am UTC](https://forum.ansible.com/t/templating-php-and-quoting-vars/25126 "2017-07-29T10:59:14Z")

</div>

Hi I'm templating PHP configuration files, but having some issues trying to make variables work that can be different types. Take for instance this snippet of config that I'm trying to template: /\* \* Cookie…

---

## [complex dictionary reference including "item" question](https://forum.ansible.com/t/complex-dictionary-reference-including-item-question/25121)

<div class="topic-metadata">

**Author:** [@jerry1](https://forum.ansible.com/u/jerry1)\
**Replies:** 2\
**Last updated:** [July 29, 2017, 7:28am UTC](https://forum.ansible.com/t/complex-dictionary-reference-including-item-question/25121 "2017-07-29T07:28:26Z")

</div>

Hi, I am wondering if it possible to do this kind of form in a playbook. I know how to do it in a template: If I have some data of the form: mydict: entry1: data: xyzzy filename: scroll.txt entry2: data: boom fi…

---

## [How to creaye partitions](https://forum.ansible.com/t/how-to-creaye-partitions/25125)

<div class="topic-metadata">

**Author:** [@Shubham\_Shrivastava](https://forum.ansible.com/u/Shubham_Shrivastava)\
**Replies:** 1\
**Last updated:** [July 29, 2017, 6:15am UTC](https://forum.ansible.com/t/how-to-creaye-partitions/25125 "2017-07-29T06:15:58Z")

</div>

Hii guys, I am trying to create standard linux fdisk partitions from playbook using parted module. But it is giving me an error, PARTED IS NOT A VALID ATTRIBUTE FOR A PLAY. Is there any other way i can create partition…

---

## [ANSIBLE: how to append a string at the end of a file](https://forum.ansible.com/t/ansible-how-to-append-a-string-at-the-end-of-a-file/25102)

<div class="topic-metadata">

**Author:** [@Victor1](https://forum.ansible.com/u/Victor1)\
**Replies:** 9\
**Last updated:** [July 29, 2017, 3:10am UTC](https://forum.ansible.com/t/ansible-how-to-append-a-string-at-the-end-of-a-file/25102 "2017-07-29T03:10:42Z")

</div>

Hi , I am trying to use ansible as a test tool. at the end of each sucess/faiure i want to append a string at the end of a file and this file can be used as a test report. i Have tried this code but it did not log anyt…

---

## [Vmdeploy-queries](https://forum.ansible.com/t/vmdeploy-queries/25115)

<div class="topic-metadata">

**Author:** [@Saravanan\_Gandhiraja](https://forum.ansible.com/u/Saravanan_Gandhiraja)\
**Replies:** 1\
**Last updated:** [July 28, 2017, 7:24pm UTC](https://forum.ansible.com/t/vmdeploy-queries/25115 "2017-07-28T19:24:20Z")

</div>

Hi , We are planning to use vmcreate module to automate vmcreation and installation. Can you please help to answer below queries. vcenter is running in windows server & needs AD authentication, What we have to do to c…

---

## [Planning for Ansible Contributor Summit 5](https://forum.ansible.com/t/planning-for-ansible-contributor-summit-5/25120)

<div class="topic-metadata">

**Author:** [@Robyn\_Bergeron](https://forum.ansible.com/u/Robyn_Bergeron)\
**Replies:** 0\
**Last updated:** [July 28, 2017, 7:06pm UTC](https://forum.ansible.com/t/planning-for-ansible-contributor-summit-5/25120 "2017-07-28T19:06:45Z")

</div>

Greetings! We are super excited to announce our 5th Ansible Contributor Summit! And even more excited to see what folks want to accomplish or discuss during the Contributor Summit. (That’s right: there’s a call to actio…

---

## [Specifying environment variables (API credentials) for integration test](https://forum.ansible.com/t/specifying-environment-variables-api-credentials-for-integration-test/25114)

<div class="topic-metadata">

**Author:** [@Tomas\_Karasek](https://forum.ansible.com/u/Tomas_Karasek)\
**Replies:** 0\
**Last updated:** [July 28, 2017, 10:46am UTC](https://forum.ansible.com/t/specifying-environment-variables-api-credentials-for-integration-test/25114 "2017-07-28T10:46:30Z")

</div>

Hi, I am tryign to write integration test for packet\_device module (the module allocates a node in the PAcket host). I put the module calls and asserts to main.yml to test/integraion/targets/packet\_device/tasks/. To au…

---

## [use ansible configuration h3c and huawei s series switch from china](https://forum.ansible.com/t/use-ansible-configuration-h3c-and-huawei-s-series-switch-from-china/25111)

<div class="topic-metadata">

**Author:** [@lei\_wang](https://forum.ansible.com/u/lei_wang)\
**Replies:** 1\
**Last updated:** [July 28, 2017, 7:20am UTC](https://forum.ansible.com/t/use-ansible-configuration-h3c-and-huawei-s-series-switch-from-china/25111 "2017-07-28T07:20:31Z")

</div>

dear all: i want to use ansible configuration h3c and huawei s series switch but there is no network modules i try Developing Modules but it not work well someone help me .

---

## [How to correctly specify AnsibleModule sub specs](https://forum.ansible.com/t/how-to-correctly-specify-ansiblemodule-sub-specs/25101)

<div class="topic-metadata">

**Author:** [@Will\_Wagner](https://forum.ansible.com/u/Will_Wagner)\
**Replies:** 1\
**Last updated:** [July 28, 2017, 7:01am UTC](https://forum.ansible.com/t/how-to-correctly-specify-ansiblemodule-sub-specs/25101 "2017-07-28T07:01:36Z")

</div>

I’m trying to define my argument\_spec to AnsibleModule such that it will validate a nested list of dictionaries. I am supplying a series of firewall policy configurations, for which order matters, and I need access to th…

---

## [How to do OS hardening and and install antivirus on my windows server using Ansible](https://forum.ansible.com/t/how-to-do-os-hardening-and-and-install-antivirus-on-my-windows-server-using-ansible/25113)

<div class="topic-metadata">

**Author:** [@tarvinder7](https://forum.ansible.com/u/tarvinder7)\
**Replies:** 0\
**Last updated:** [July 28, 2017, 5:45am UTC](https://forum.ansible.com/t/how-to-do-os-hardening-and-and-install-antivirus-on-my-windows-server-using-ansible/25113 "2017-07-28T05:45:12Z")

</div>

I have configured and am able to ping from my control machine (Ubuntu 16.04 LTS) to my Windows Server 2012. Now i want to be able to do OS hardening and installing Antivirus software on my windows server. Any help, ext…

---

## [How to do OS hardening and and install antivirus on my windows server using Ansible](https://forum.ansible.com/t/how-to-do-os-hardening-and-and-install-antivirus-on-my-windows-server-using-ansible/25112)

<div class="topic-metadata">

**Author:** [@tarvinder7](https://forum.ansible.com/u/tarvinder7)\
**Replies:** 0\
**Last updated:** [July 28, 2017, 3:37am UTC](https://forum.ansible.com/t/how-to-do-os-hardening-and-and-install-antivirus-on-my-windows-server-using-ansible/25112 "2017-07-28T03:37:44Z")

</div>

I have configured and am able to ping from my control machine (Ubuntu 16.04 LTS) to my Windows Server 2012. Now i want to be able to do OS hardening and installing Antivirus software on my windows server. Any help, ext…

---

## [Ansible 2.2.1.0 failing while connecting to Windows using AD credentials.](https://forum.ansible.com/t/ansible-2-2-1-0-failing-while-connecting-to-windows-using-ad-credentials/24273)

<div class="topic-metadata">

**Author:** [@Siva\_Subramaniyan](https://forum.ansible.com/u/Siva_Subramaniyan)\
**Replies:** 5\
**Last updated:** [July 28, 2017, 1:50am UTC](https://forum.ansible.com/t/ansible-2-2-1-0-failing-while-connecting-to-windows-using-ad-credentials/24273 "2017-07-28T01:50:26Z")

</div>

ConfigureRemotingForAnsible.ps1

---

## [What exactly is the "action" module and how does it work?](https://forum.ansible.com/t/what-exactly-is-the-action-module-and-how-does-it-work/25109)

<div class="topic-metadata">

**Author:** [@Frank\_Thommen](https://forum.ansible.com/u/Frank_Thommen)\
**Replies:** 3\
**Last updated:** [July 27, 2017, 6:11pm UTC](https://forum.ansible.com/t/what-exactly-is-the-action-module-and-how-does-it-work/25109 "2017-07-27T18:11:14Z")

</div>

Hi, I was looking for a way to run the distro-dependent package manager w/o too many "when"s and I found this (on https://ansible-tips-and-tricks.readthedocs.io/en/latest/os-dependent-tasks/installing\_packages/#installi…

---

## [Pause after each iteration in a loop](https://forum.ansible.com/t/pause-after-each-iteration-in-a-loop/25110)

<div class="topic-metadata">

**Author:** [@rambius](https://forum.ansible.com/u/rambius)\
**Replies:** 2\
**Last updated:** [July 27, 2017, 6:05pm UTC](https://forum.ansible.com/t/pause-after-each-iteration-in-a-loop/25110 "2017-07-27T18:05:12Z")

</div>

Hello, Assume we have the following in an inventory \[win\_services\] host1 services=‘\[“service1”, “service2”, “service3”, “service4”\]’ host2 services=‘\[“service5”, “service6”, “service7”, “service8”\]’ host3 services=‘…

---

## [group variable precence](https://forum.ansible.com/t/group-variable-precence/25108)

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 0\
**Last updated:** [July 27, 2017, 2:56pm UTC](https://forum.ansible.com/t/group-variable-precence/25108 "2017-07-27T14:56:57Z")

</div>

Hi, my gruestion is about the group varilabes, when the host is in more groups and there are same variable keys. See next example ### INVENTORY \[cm\] ditlcm01 ansible\_ssh\_host=192.168.93.101 ansible\_ssh\_user=root d…

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

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