# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=323

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

**Page:** 324

---

## [Regarding win\_copy bug#23559](https://forum.ansible.com/t/regarding-win-copy-bug-23559/25143)

<div class="topic-metadata">

**Author:** [@akansha\_agarwal](https://forum.ansible.com/u/akansha_agarwal)\
**Replies:** 1\
**Last updated:** [August 1, 2017, 8:30am UTC](https://forum.ansible.com/t/regarding-win-copy-bug-23559/25143 "2017-08-01T08:30:06Z")

</div>

Hi, I encountered issue in copying a folder from one location to another. Searched and found there is known issue in ansible2.3 Could anybody please confirm if this issue will be fixed in version2.4?

---

## [Ansible Galaxy role removal](https://forum.ansible.com/t/ansible-galaxy-role-removal/25142)

<div class="topic-metadata">

**Author:** [@Rahul\_Mohandas](https://forum.ansible.com/u/Rahul_Mohandas)\
**Replies:** 0\
**Last updated:** [August 1, 2017, 3:16am UTC](https://forum.ansible.com/t/ansible-galaxy-role-removal/25142 "2017-08-01T03:16:27Z")

</div>

Hello, I have noticed an issue caused by user error. It would be great if some admin could help me resolve this issue. Based on the source code it seems someone with “admin” would be able to delete this erroneous role. …

---

## [dynamic groups of dynamic groups?](https://forum.ansible.com/t/dynamic-groups-of-dynamic-groups/25140)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 0\
**Last updated:** [July 31, 2017, 8:58pm UTC](https://forum.ansible.com/t/dynamic-groups-of-dynamic-groups/25140 "2017-07-31T20:58:52Z")

</div>

Hi! Is it possible to have dynamic groups of dynamic groups? Or can I only have static groups of dynamic groups? Thanks!

---

## [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…

---

## [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…

---

## [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 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…

---

## [Azure create vm module - cant specify vm size compatible with premium storage (or other valid vm\_size values)](https://forum.ansible.com/t/azure-create-vm-module-cant-specify-vm-size-compatible-with-premium-storage-or-other-valid-vm-size-values/25106)

<div class="topic-metadata">

**Author:** [@Andy\_Redhead](https://forum.ansible.com/u/Andy_Redhead)\
**Replies:** 0\
**Last updated:** [July 27, 2017, 8:38am UTC](https://forum.ansible.com/t/azure-create-vm-module-cant-specify-vm-size-compatible-with-premium-storage-or-other-valid-vm-size-values/25106 "2017-07-27T08:38:42Z")

</div>

Hi, I’m pretty new to Ansible and so far have spent only an afternoon with the Ansible Azure module - so it’s likely I’m being dim… After a bit of trial and error I got a playbook together that can create a basic VM (a…

---

## [Ansible static inventory with dynamic tags for Amazon EC2 Windows instances](https://forum.ansible.com/t/ansible-static-inventory-with-dynamic-tags-for-amazon-ec2-windows-instances/25105)

<div class="topic-metadata">

**Author:** [@Poornima\_Sandireddy](https://forum.ansible.com/u/Poornima_Sandireddy)\
**Replies:** 0\
**Last updated:** [July 27, 2017, 7:08am UTC](https://forum.ansible.com/t/ansible-static-inventory-with-dynamic-tags-for-amazon-ec2-windows-instances/25105 "2017-07-27T07:08:35Z")

</div>

Hi All, I am working on a project where in agents needs to be installed on running windows instances on AWS account. I need to discover the instances based on tags (ex - tag\_owner\_poornima) but I am facing issues. Below…

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=322)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=324)
