# Ansible Project

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

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

**Page:** 261

---

## [Best way to run powershell command?](https://forum.ansible.com/t/best-way-to-run-powershell-command/27534)

<div class="topic-metadata">

**Author:** [@Ab\_Generette](https://forum.ansible.com/u/Ab_Generette)\
**Replies:** 5\
**Last updated:** [May 15, 2018, 10:30pm UTC](https://forum.ansible.com/t/best-way-to-run-powershell-command/27534 "2018-05-15T22:30:47Z")

</div>

On my (winrm) target host, I am able to run the following: PS C:\\Users\\agenerette\> c:/Python27/python.exe c:/xx/run/yy/tests/confluence\_api\_test.py When I try to incorporate that into a playbook, however, I get a gre…

---

## [playbooks and tasks](https://forum.ansible.com/t/playbooks-and-tasks/27537)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 2\
**Last updated:** [May 15, 2018, 9:42pm UTC](https://forum.ansible.com/t/playbooks-and-tasks/27537 "2018-05-15T21:42:53Z")

</div>

I was reading the thread "VMware - convert template to virtual machines" and when I saw Nick's structure I realized I do have a lot to learn conceptually about ansible. Specifically having playbooks and roles separate…

---

## [VMware - convert template to virtual machines](https://forum.ansible.com/t/vmware-convert-template-to-virtual-machines/27397)

<div class="topic-metadata">

**Author:** [@Edward\_Ahern](https://forum.ansible.com/u/Edward_Ahern)\
**Replies:** 11\
**Last updated:** [May 15, 2018, 6:58pm UTC](https://forum.ansible.com/t/vmware-convert-template-to-virtual-machines/27397 "2018-05-15T18:58:28Z")

</div>

Hi All, I’m looking for a way to convert a VMware template to a virtual machine using Ansible. The work flow is: Convert a template to a virtual machine Power on Login to the virtual machine Update the OS patches (…

---

## [Best way to run Python scripts against Managed Cygwin nodes](https://forum.ansible.com/t/best-way-to-run-python-scripts-against-managed-cygwin-nodes/27525)

<div class="topic-metadata">

**Author:** [@Ab\_Generette](https://forum.ansible.com/u/Ab_Generette)\
**Replies:** 5\
**Last updated:** [May 15, 2018, 2:28pm UTC](https://forum.ansible.com/t/best-way-to-run-python-scripts-against-managed-cygwin-nodes/27525 "2018-05-15T14:28:46Z")

</div>

I have a CentOS7 control server from which I am trying to manage a few Server2012/Cygwin nodes. Those latter nodes have Cygwin setup such that its sshd component is installed and running (I’m able to successfully ssh to …

---

## ['unarchive' has extra params, which is only allowed in the following modules](https://forum.ansible.com/t/unarchive-has-extra-params-which-is-only-allowed-in-the-following-modules/27533)

<div class="topic-metadata">

**Author:** [@Sumer\_Singh](https://forum.ansible.com/u/Sumer_Singh)\
**Replies:** 3\
**Last updated:** [May 15, 2018, 2:03pm UTC](https://forum.ansible.com/t/unarchive-has-extra-params-which-is-only-allowed-in-the-following-modules/27533 "2018-05-15T14:03:59Z")

</div>

ERROR! this task ‘unarchive’ has extra params, which is only allowed in the following modules: command, win\_command, shell, win\_shell, script, include, include\_vars, include\_tasks, include\_role, import\_tasks, import\_role…

---

## [string concatenation with special characters](https://forum.ansible.com/t/string-concatenation-with-special-characters/27531)

<div class="topic-metadata">

**Author:** [@ali.khawaja](https://forum.ansible.com/u/ali.khawaja)\
**Replies:** 0\
**Last updated:** [May 15, 2018, 10:56am UTC](https://forum.ansible.com/t/string-concatenation-with-special-characters/27531 "2018-05-15T10:56:10Z")

</div>

i am trying to append a backslash between two string variables. dc + ‘/’ + item this works fine. but what i need is backslash. i could not figure how to insert a backslash. i have tried two backslashes, lot of other tr…

---

## [Role Dependencies - download only](https://forum.ansible.com/t/role-dependencies-download-only/27530)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 0\
**Last updated:** [May 15, 2018, 10:41am UTC](https://forum.ansible.com/t/role-dependencies-download-only/27530 "2018-05-15T10:41:32Z")

</div>

Hi together, managing a bigger project I am defining role dependencies in role’s \` meta.yml name: myrole src: git+git@myserver/myrole.git version: master \` The problem is that ansible also always executes the depe…

---

## [Need help in updating /etc/grub.conf file to disable THP in linux server using Ansible](https://forum.ansible.com/t/need-help-in-updating-etc-grub-conf-file-to-disable-thp-in-linux-server-using-ansible/27529)

<div class="topic-metadata">

**Author:** [@Padmesh\_Singh](https://forum.ansible.com/u/Padmesh_Singh)\
**Replies:** 2\
**Last updated:** [May 15, 2018, 7:29am UTC](https://forum.ansible.com/t/need-help-in-updating-etc-grub-conf-file-to-disable-thp-in-linux-server-using-ansible/27529 "2018-05-15T07:29:03Z")

</div>

I need help in updating /etc/grub.conf file to disable THP in Linux servers. I used below Ansible lineinfile module but it updates the kernel line everytime when I run it, I need which runs and updates every line of kern…

---

## [win\_disk\_facts - get size and size remaining](https://forum.ansible.com/t/win-disk-facts-get-size-and-size-remaining/27504)

<div class="topic-metadata">

**Author:** [@Jeremie\_Levy](https://forum.ansible.com/u/Jeremie_Levy)\
**Replies:** 2\
**Last updated:** [May 15, 2018, 5:52am UTC](https://forum.ansible.com/t/win-disk-facts-get-size-and-size-remaining/27504 "2018-05-15T05:52:52Z")

</div>

Hi I’m trying to use win\_disk\_facts new module. I would like to get the size and remaining size of each disk/partition/volume. Is there a way to “discover” how many of them there are in a kind of loop ? name: Get di…

---

## [Standard Ansible Loop Script not working](https://forum.ansible.com/t/standard-ansible-loop-script-not-working/27526)

<div class="topic-metadata">

**Author:** [@Carlton\_Patterson1](https://forum.ansible.com/u/Carlton_Patterson1)\
**Replies:** 1\
**Last updated:** [May 14, 2018, 10:11pm UTC](https://forum.ansible.com/t/standard-ansible-loop-script-not-working/27526 "2018-05-14T22:11:55Z")

</div>

Hello community, I have written the following ansible script \`

---

## ["requests\_ntlm is not installed", when it appears to be in place](https://forum.ansible.com/t/requests-ntlm-is-not-installed-when-it-appears-to-be-in-place/27519)

<div class="topic-metadata">

**Author:** [@Ab\_Generette](https://forum.ansible.com/u/Ab_Generette)\
**Replies:** 10\
**Last updated:** [May 14, 2018, 9:35pm UTC](https://forum.ansible.com/t/requests-ntlm-is-not-installed-when-it-appears-to-be-in-place/27519 "2018-05-14T21:35:02Z")

</div>

Has anyone out there seen this issue – when running win\_ping against a host – and been able to resolve it(?): \< target host \> | UNREACHABLE! =\> { “changed”: false, “msg”: “ntlm: requested auth method is ntlm, but req…

---

## [How to handle multi-line prompts with expect module?](https://forum.ansible.com/t/how-to-handle-multi-line-prompts-with-expect-module/27524)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 4\
**Last updated:** [May 14, 2018, 8:38pm UTC](https://forum.ansible.com/t/how-to-handle-multi-line-prompts-with-expect-module/27524 "2018-05-14T20:38:05Z")

</div>

Per https://groups.google.com/forum/#!topic/ansible-project/AXEPsAqxmNE I’m using the expect module, and have it working when the prompt is single line. How do I make it work when the prompt is multi-line? I’m not talkin…

---

## [Ansible not recognizing correct pexpect module?](https://forum.ansible.com/t/ansible-not-recognizing-correct-pexpect-module/27523)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 4\
**Last updated:** [May 14, 2018, 4:42pm UTC](https://forum.ansible.com/t/ansible-not-recognizing-correct-pexpect-module/27523 "2018-05-14T16:42:23Z")

</div>

\` $ ansible --version ansible 2.4.0.0 config file = /etc/ansible/ansible.cfg configured module search path = \[u’/home/scscm\_builder/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’\] ansible python mo…

---

## [Whats the right way to protect a backup script in windows?](https://forum.ansible.com/t/whats-the-right-way-to-protect-a-backup-script-in-windows/27520)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 2\
**Last updated:** [May 14, 2018, 11:56am UTC](https://forum.ansible.com/t/whats-the-right-way-to-protect-a-backup-script-in-windows/27520 "2018-05-14T11:56:29Z")

</div>

I have a robocopy batch script to use with diskshadow to sync files to a backup server. in vagrant, i tried this, but it prevents the upload of the script \` name: make a folder for backup scripts win\_file: path: C:…

---

## [Help me please. How can I get the output of the command?](https://forum.ansible.com/t/help-me-please-how-can-i-get-the-output-of-the-command/27521)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 0\
**Last updated:** [May 14, 2018, 11:40am UTC](https://forum.ansible.com/t/help-me-please-how-can-i-get-the-output-of-the-command/27521 "2018-05-14T11:40:48Z")

</div>

It would help if you would describe what it is supposed to do…

---

## [Setting up kerberos](https://forum.ansible.com/t/setting-up-kerberos/27478)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 5\
**Last updated:** [May 14, 2018, 4:01am UTC](https://forum.ansible.com/t/setting-up-kerberos/27478 "2018-05-14T04:01:26Z")

</div>

I must be looking at the wrong places. I would like to see an example of setting up kerberos using a task file, but all I find is how to make ansible authenticate using kerberos. Suggestions?

---

## [AWS instance profile - how to create in Ansible?](https://forum.ansible.com/t/aws-instance-profile-how-to-create-in-ansible/27517)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 2\
**Last updated:** [May 13, 2018, 9:54pm UTC](https://forum.ansible.com/t/aws-instance-profile-how-to-create-in-ansible/27517 "2018-05-13T21:54:33Z")

</div>

I can’t figure out how to create an instance profile. It’s easy enough to attach an instance profile; the ec2\_lc module has an instance\_profile\_name parameter. But how to create the policy and role? There seem to be t…

---

## [Loop through the contents of include\_vars file via a shell module](https://forum.ansible.com/t/loop-through-the-contents-of-include-vars-file-via-a-shell-module/27506)

<div class="topic-metadata">

**Author:** [@Saranya\_N](https://forum.ansible.com/u/Saranya_N)\
**Replies:** 8\
**Last updated:** [May 13, 2018, 3:25pm UTC](https://forum.ansible.com/t/loop-through-the-contents-of-include-vars-file-via-a-shell-module/27506 "2018-05-13T15:25:46Z")

</div>

I want to replicate a shell script that loops through the contents of a text.file For i in \`cat text.file\` I tried below and got an error. I'm not getting which logic to use. Kindly advise. - name: Load the variables …

---

## [Unable to Launch Job Template in Ansible Tower](https://forum.ansible.com/t/unable-to-launch-job-template-in-ansible-tower/27494)

<div class="topic-metadata">

**Author:** [@Carlton\_Patterson1](https://forum.ansible.com/u/Carlton_Patterson1)\
**Replies:** 4\
**Last updated:** [May 13, 2018, 2:35pm UTC](https://forum.ansible.com/t/unable-to-launch-job-template-in-ansible-tower/27494 "2018-05-13T14:35:25Z")

</div>

Hello Community, I have created a Job Template to launch a job in Ansible Tower as shown in image. However, when I click on ‘search’ nothing happens. Can someone let me know what the ‘Launch Job’ is searching for? I hav…

---

## [creating new dictionary from existing dictionary](https://forum.ansible.com/t/creating-new-dictionary-from-existing-dictionary/27518)

<div class="topic-metadata">

**Author:** [@ali.khawaja](https://forum.ansible.com/u/ali.khawaja)\
**Replies:** 2\
**Last updated:** [May 13, 2018, 6:47am UTC](https://forum.ansible.com/t/creating-new-dictionary-from-existing-dictionary/27518 "2018-05-13T06:47:14Z")

</div>

Hi Everyone, I am trying to read a dict from a file (list of user ids), and create another dict with key/value pairs (user ids with passwords). But once my script completes, the new dictionary only has the final item. E…

---

## [Ansible - roles and tasks execution handling in playbook](https://forum.ansible.com/t/ansible-roles-and-tasks-execution-handling-in-playbook/27473)

<div class="topic-metadata">

**Author:** [@Ankur\_Gupta](https://forum.ansible.com/u/Ankur_Gupta)\
**Replies:** 3\
**Last updated:** [May 12, 2018, 7:40pm UTC](https://forum.ansible.com/t/ansible-roles-and-tasks-execution-handling-in-playbook/27473 "2018-05-12T19:40:11Z")

</div>

I am working on ansible exception handling tasks and stuck in an ansible tasks execution handling problem where I need your guide to come over. I have 2 system host group system\_a and system\_b and I develop 6 roles and …

---

## [issue with ansible dry-run mode (--check) on package installation tasks (yum and apt modules)](https://forum.ansible.com/t/issue-with-ansible-dry-run-mode-check-on-package-installation-tasks-yum-and-apt-modules/27495)

<div class="topic-metadata">

**Author:** [@js.a](https://forum.ansible.com/u/js.a)\
**Replies:** 5\
**Last updated:** [May 12, 2018, 10:54am UTC](https://forum.ansible.com/t/issue-with-ansible-dry-run-mode-check-on-package-installation-tasks-yum-and-apt-modules/27495 "2018-05-12T10:54:46Z")

</div>

Hello guys. I’m here to bring an issue with Ansible dry-run (–check) mode. I have been facing a curious situation where package installation made using Playbooks and run in a dry-run mode is not working as expected. Usi…

---

## [terminating instances](https://forum.ansible.com/t/terminating-instances/27508)

<div class="topic-metadata">

**Author:** [@David\_Villasmil](https://forum.ansible.com/u/David_Villasmil)\
**Replies:** 4\
**Last updated:** [May 11, 2018, 10:46pm UTC](https://forum.ansible.com/t/terminating-instances/27508 "2018-05-11T22:46:09Z")

</div>

hello all, I run “ec2\_instance\_facts” to get some instance\_ids: ec2\_instance\_facts: region: us-east-1 filters: “tag:Name”: “{{ cluster }}” register: ec2\_res Then i can properly print the instance\_ids only for tho…

---

## [Unable to use 'yum install'](https://forum.ansible.com/t/unable-to-use-yum-install/27507)

<div class="topic-metadata">

**Author:** [@Fabio\_Gomes\_Sakiyama](https://forum.ansible.com/u/Fabio_Gomes_Sakiyama)\
**Replies:** 9\
**Last updated:** [May 11, 2018, 12:28pm UTC](https://forum.ansible.com/t/unable-to-use-yum-install/27507 "2018-05-11T12:28:19Z")

</div>

Hi, I’m trying to install kubelet with Ansible, but I’m struggling to do it. This is my playbook: --- - hosts: all become: yes tasks: - name: install docker yum: name: docker …

---

## [question about loop/with\_items](https://forum.ansible.com/t/question-about-loop-with-items/27509)

<div class="topic-metadata">

**Author:** [@Edmund\_Cheng](https://forum.ansible.com/u/Edmund_Cheng)\
**Replies:** 3\
**Last updated:** [May 11, 2018, 9:24am UTC](https://forum.ansible.com/t/question-about-loop-with-items/27509 "2018-05-11T09:24:51Z")

</div>

hi, say i have in hosts file 2 nodes. \[nodes\] server1 server2 in a playbook, we do some loop for tasks. hosts: nodes with\_items : \[‘apple’,‘banana’\] ansible will run it like in the below order: server1 : appl…

---

## [bigip\_configsync\_action  module in Ansible version 2.5 is not working](https://forum.ansible.com/t/bigip-configsync-action-module-in-ansible-version-2-5-is-not-working/27510)

<div class="topic-metadata">

**Author:** [@Veera\_Kumar](https://forum.ansible.com/u/Veera_Kumar)\
**Replies:** 0\
**Last updated:** [May 11, 2018, 8:14am UTC](https://forum.ansible.com/t/bigip-configsync-action-module-in-ansible-version-2-5-is-not-working/27510 "2018-05-11T08:14:44Z")

</div>

bigip\_configsync\_action module is not working in Ansible 2.5 ISSUE TYPE Since from 2.5 version, Ansible added provider to bigip\_configsync\_action, there is some confusion. bigip\_configsync\_action module not doing the …

---

## [Get basic vmware module working - vmware\_guest\_find](https://forum.ansible.com/t/get-basic-vmware-module-working-vmware-guest-find/27491)

<div class="topic-metadata">

**Author:** [@Edward\_Ahern](https://forum.ansible.com/u/Edward_Ahern)\
**Replies:** 3\
**Last updated:** [May 10, 2018, 4:50pm UTC](https://forum.ansible.com/t/get-basic-vmware-module-working-vmware-guest-find/27491 "2018-05-10T16:50:49Z")

</div>

Hi, I’m having issues with getting basic VMware modules working. For example vmware\_guest\_find. I’m running the below from a RHEL 7 server. Versions installed: \` pyvmomi 6.7.0 ansible 2.5.2 vSphere vCenter 6.0 \` p…

---

## [AWX 1.0.6.5 downgrade to 1.0.5](https://forum.ansible.com/t/awx-1-0-6-5-downgrade-to-1-0-5/27503)

<div class="topic-metadata">

**Author:** [@Ivan\_Tuzhilkin](https://forum.ansible.com/u/Ivan_Tuzhilkin)\
**Replies:** 0\
**Last updated:** [May 10, 2018, 9:54am UTC](https://forum.ansible.com/t/awx-1-0-6-5-downgrade-to-1-0-5/27503 "2018-05-10T09:54:38Z")

</div>

Hello guys, AWX 1.0.6.5 seems very buggy. Is it possible to downgrade to the previous version without old version database dump?

---

## [AWS Kinesis Stream](https://forum.ansible.com/t/aws-kinesis-stream/27498)

<div class="topic-metadata">

**Author:** [@Sanjeewan\_Choudhary](https://forum.ansible.com/u/Sanjeewan_Choudhary)\
**Replies:** 0\
**Last updated:** [May 10, 2018, 7:31am UTC](https://forum.ansible.com/t/aws-kinesis-stream/27498 "2018-05-10T07:31:35Z")

</div>

Hello All, Anyone worked on kinesis stream AWS framework , I trying to log collector agent for Window machine ,anyone has any idea?

---

## [Import excel file values to ansible](https://forum.ansible.com/t/import-excel-file-values-to-ansible/24261)

<div class="topic-metadata">

**Author:** [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Replies:** 7\
**Last updated:** [May 10, 2018, 7:24am UTC](https://forum.ansible.com/t/import-excel-file-values-to-ansible/24261 "2018-05-10T07:24:35Z")

</div>

i have an excel file with 2 columns and multiple rows of data, , basically like a key value pair, i want to import those as it is into win\_Regedit for creating registry entries, how can i do it? i want the column1 row1 t…

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

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