# Ansible Project

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

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

**Page:** 242

---

## [Accessing Ansible magic variables in python](https://forum.ansible.com/t/accessing-ansible-magic-variables-in-python/28292)

<div class="topic-metadata">

**Author:** [@Sayed\_Anisul](https://forum.ansible.com/u/Sayed_Anisul)\
**Replies:** 1\
**Last updated:** [August 8, 2018, 10:20am UTC](https://forum.ansible.com/t/accessing-ansible-magic-variables-in-python/28292 "2018-08-08T10:20:40Z")

</div>

Hello How can I access Ansible magic variables like {{ playbook\_dir }} in the python source code ? can someone please help with a code snippet? Thank you

---

## [Speeding up very large playbooks](https://forum.ansible.com/t/speeding-up-very-large-playbooks/28273)

<div class="topic-metadata">

**Author:** [@Pshem\_Kowalczyk](https://forum.ansible.com/u/Pshem_Kowalczyk)\
**Replies:** 7\
**Last updated:** [August 8, 2018, 8:14am UTC](https://forum.ansible.com/t/speeding-up-very-large-playbooks/28273 "2018-08-08T08:14:17Z")

</div>

Hi, We have a scenario where we pre-generate a lot of configuration on the controller host (targets are generally network devices, so not capable of running python). Typical generation process involves pulling data fro…

---

## [Question: Python module/API support in Ansible on HPE NonStop](https://forum.ansible.com/t/question-python-module-api-support-in-ansible-on-hpe-nonstop/28289)

<div class="topic-metadata">

**Author:** [@Moon\_Dragon](https://forum.ansible.com/u/Moon_Dragon)\
**Replies:** 0\
**Last updated:** [August 8, 2018, 7:27am UTC](https://forum.ansible.com/t/question-python-module-api-support-in-ansible-on-hpe-nonstop/28289 "2018-08-08T07:27:04Z")

</div>

SUMMARY We use Ansible from Debian to HPE NonStop. HPE NonStop have some Python restrictions noted later. The goal is to find out if any of the unsupported Python modules/APIs are used by Ansible. COMPONENT NAME Python…

---

## [Parallel Tasks Execution in Ansible](https://forum.ansible.com/t/parallel-tasks-execution-in-ansible/28276)

<div class="topic-metadata">

**Author:** [@Saurabh](https://forum.ansible.com/u/Saurabh)\
**Replies:** 6\
**Last updated:** [August 8, 2018, 5:26am UTC](https://forum.ansible.com/t/parallel-tasks-execution-in-ansible/28276 "2018-08-08T05:26:21Z")

</div>

Hi, I would like to execute parallel tasks ? Below Example include: a.yml include: b.yml a.yml runs and b.yml should also run, b.yml shouldn’t wait for completion of a.yml. is there any way to run parallel t…

---

## [Code to attach an EBS volume during provisioning with CMK](https://forum.ansible.com/t/code-to-attach-an-ebs-volume-during-provisioning-with-cmk/28286)

<div class="topic-metadata">

**Author:** [@nicholas.noor](https://forum.ansible.com/u/nicholas.noor)\
**Replies:** 1\
**Last updated:** [August 8, 2018, 12:20am UTC](https://forum.ansible.com/t/code-to-attach-an-ebs-volume-during-provisioning-with-cmk/28286 "2018-08-08T00:20:33Z")

</div>

Has anyone provisioned an EC2 instance and EBS volumes using CMK?

---

## [Playbook formatting question](https://forum.ansible.com/t/playbook-formatting-question/28285)

<div class="topic-metadata">

**Author:** [@Syed\_Jafar](https://forum.ansible.com/u/Syed_Jafar)\
**Replies:** 1\
**Last updated:** [August 7, 2018, 8:55pm UTC](https://forum.ansible.com/t/playbook-formatting-question/28285 "2018-08-07T20:55:37Z")

</div>

Can someone please let me know what is wrong with my playbook (below) formatting. I get the following error message when I run the playbook. ERROR! ‘copy’ is not a valid attribute for a Play The error appears to have b…

---

## [Ansible for all instance in AWS environment](https://forum.ansible.com/t/ansible-for-all-instance-in-aws-environment/28275)

<div class="topic-metadata">

**Author:** [@Ashish\_Gauli](https://forum.ansible.com/u/Ashish_Gauli)\
**Replies:** 2\
**Last updated:** [August 7, 2018, 5:19pm UTC](https://forum.ansible.com/t/ansible-for-all-instance-in-aws-environment/28275 "2018-08-07T17:19:55Z")

</div>

I need to configure all AWS instances using ansible (for example install datadog agent), but I do not have key-pairs for each of those instances. Is there a way I can enable ansible-ssh without keypair?

---

## [Collect Azure VM facts](https://forum.ansible.com/t/collect-azure-vm-facts/28270)

<div class="topic-metadata">

**Author:** [@Matin\_Nayob](https://forum.ansible.com/u/Matin_Nayob)\
**Replies:** 2\
**Last updated:** [August 7, 2018, 1:44pm UTC](https://forum.ansible.com/t/collect-azure-vm-facts/28270 "2018-08-07T13:44:29Z")

</div>

Hi there, Is there a way to gather facts about the state of an Azure VM? There exist fact gathering modules for other Azure resources (such as a azure\_rm\_virtualmachineimage\_facts) but there doesn’t seem to be any for …

---

## [Win\_update](https://forum.ansible.com/t/win-update/28256)

<div class="topic-metadata">

**Author:** [@Izzy](https://forum.ansible.com/u/Izzy)\
**Replies:** 1\
**Last updated:** [August 7, 2018, 11:40am UTC](https://forum.ansible.com/t/win-update/28256 "2018-08-07T11:40:51Z")

</div>

Is anyone using win\_update for their windows servers on vmware to patch them Or working for them? For the life of me, I can’t make them install available updates. I’m just curious how others are handling it if at all. FY…

---

## [Issue when backup cisco NXOS " fatal: \[\*\*\*\*\*\*\*\*\*\*\*\*\*\]: FAILED! =\> {"msg": "nothing to repeat"}"](https://forum.ansible.com/t/issue-when-backup-cisco-nxos-fatal-failed-msg-nothing-to-repeat/27959)

<div class="topic-metadata">

**Author:** [@Ahmed\_Aljawad](https://forum.ansible.com/u/Ahmed_Aljawad)\
**Replies:** 2\
**Last updated:** [August 7, 2018, 10:29am UTC](https://forum.ansible.com/t/issue-when-backup-cisco-nxos-fatal-failed-msg-nothing-to-repeat/27959 "2018-08-07T10:29:46Z")

</div>

\[nwadmin@ddcmgtnwbkp ~\]$ cat AutoBackup.yml

---

## [how to get the playbook directory in the python source](https://forum.ansible.com/t/how-to-get-the-playbook-directory-in-the-python-source/28278)

<div class="topic-metadata">

**Author:** [@Sayed\_Anisul](https://forum.ansible.com/u/Sayed_Anisul)\
**Replies:** 0\
**Last updated:** [August 7, 2018, 8:56am UTC](https://forum.ansible.com/t/how-to-get-the-playbook-directory-in-the-python-source/28278 "2018-08-07T08:56:02Z")

</div>

Hello, Ansible has a variable “{{ playbook\_dir }}” that gives the playbook directory path. Currently, I am doing in this way to get the playbook directory in the hive(python source code) task, but is there any other wa…

---

## [ansible autofs mount](https://forum.ansible.com/t/ansible-autofs-mount/28272)

<div class="topic-metadata">

**Author:** [@Prasanth\_G](https://forum.ansible.com/u/Prasanth_G)\
**Replies:** 3\
**Last updated:** [August 7, 2018, 7:05am UTC](https://forum.ansible.com/t/ansible-autofs-mount/28272 "2018-08-07T07:05:19Z")

</div>

Dear All. I am working on a project where we have a scenario in which we have to mount an NFS file system when each time system boots up ( we spin up using AWS/GITLAB CI/CD approach) so each time when i run the piplelin…

---

## [dynamic inventory from another ansbile?](https://forum.ansible.com/t/dynamic-inventory-from-another-ansbile/28269)

<div class="topic-metadata">

**Author:** [@erichymowitz](https://forum.ansible.com/u/erichymowitz)\
**Replies:** 6\
**Last updated:** [August 6, 2018, 6:11pm UTC](https://forum.ansible.com/t/dynamic-inventory-from-another-ansbile/28269 "2018-08-06T18:11:47Z")

</div>

I have two ansible servers, call them ansible-a and ansible-b . ansible-a is my “primary” most-often-used ansible server for most of my hosts including ansible-b. However, there is a segregated network that ansible-a can…

---

## [running ptython script in role](https://forum.ansible.com/t/running-ptython-script-in-role/28252)

<div class="topic-metadata">

**Author:** [@christian.tremel](https://forum.ansible.com/u/christian.tremel)\
**Replies:** 18\
**Last updated:** [August 6, 2018, 3:53pm UTC](https://forum.ansible.com/t/running-ptython-script-in-role/28252 "2018-08-06T15:53:58Z")

</div>

i want to run a python script in a role. currently the script is in the tasks directory but i also tried the file dir which also is not working. where i have to put this script so it can be found at runtime? \` local\_a…

---

## [Remove CA in Bundle CA via Playbook](https://forum.ansible.com/t/remove-ca-in-bundle-ca-via-playbook/28268)

<div class="topic-metadata">

**Author:** [@Vincent\_Descargues](https://forum.ansible.com/u/Vincent_Descargues)\
**Replies:** 1\
**Last updated:** [August 6, 2018, 3:39pm UTC](https://forum.ansible.com/t/remove-ca-in-bundle-ca-via-playbook/28268 "2018-08-06T15:39:43Z")

</div>

That’s my problem, it’s pretty simple, I think. I wish I could delete a CA in a CA Bundle with one command For example : My CA bundle : 1° CA 2° CA 3° CA 4° CA And I just want to delete the 2nd certificate Curren…

---

## [Trouble with ec2\_vpc\_vgw](https://forum.ansible.com/t/trouble-with-ec2-vpc-vgw/28254)

<div class="topic-metadata">

**Author:** [@ttwalto](https://forum.ansible.com/u/ttwalto)\
**Replies:** 3\
**Last updated:** [August 6, 2018, 2:29pm UTC](https://forum.ansible.com/t/trouble-with-ec2-vpc-vgw/28254 "2018-08-06T14:29:18Z")

</div>

I am trying to run ec2\_vpc\_vgw just to attach a vpc to a vgw (virtual private gateway). The vgw and vpc both already exist. I don’t need to create them. Here’s what I run: name: attach vpc to virtual private gateway e…

---

## [Help me to install ansible - end up with "Oops!  An error occured while running setup"](https://forum.ansible.com/t/help-me-to-install-ansible-end-up-with-oops-an-error-occured-while-running-setup/23304)

<div class="topic-metadata">

**Author:** [@bentech4u](https://forum.ansible.com/u/bentech4u)\
**Replies:** 4\
**Last updated:** [August 6, 2018, 2:10pm UTC](https://forum.ansible.com/t/help-me-to-install-ansible-end-up-with-oops-an-error-occured-while-running-setup/23304 "2018-08-06T14:10:26Z")

</div>

HI i am very new to ansible and i want to setup a POC env for my company. i was following http://docs.ansible.com/ansible-tower/latest/html/quickinstall/install\_script.html and while running seup, i am getting “\[error\]…

---

## [win\_shell task failing with ansible error: Get-AnsibleParam: Missing required argument: \_raw\_params](https://forum.ansible.com/t/win-shell-task-failing-with-ansible-error-get-ansibleparam-missing-required-argument-raw-params/28259)

<div class="topic-metadata">

**Author:** [@Ali\_Khawaja](https://forum.ansible.com/u/Ali_Khawaja)\
**Replies:** 1\
**Last updated:** [August 6, 2018, 10:42am UTC](https://forum.ansible.com/t/win-shell-task-failing-with-ansible-error-get-ansibleparam-missing-required-argument-raw-params/28259 "2018-08-06T10:42:44Z")

</div>

Ansible version: 2.6.1 (and I tried with 2.7.0 development branch as well) I have a simple win\_shell task though which I am trying to execute powershell script which is sitting on the remote system. I have verified the …

---

## [Tower installation question](https://forum.ansible.com/t/tower-installation-question/28253)

<div class="topic-metadata">

**Author:** [@taylorjs69](https://forum.ansible.com/u/taylorjs69)\
**Replies:** 1\
**Last updated:** [August 6, 2018, 8:27am UTC](https://forum.ansible.com/t/tower-installation-question/28253 "2018-08-06T08:27:36Z")

</div>

I have a RJEL 7 server that I’m getting ready to install Tower on, but I have created a second disk that I would like the database installed on. Is this possible?

---

## [how to get a complete git log using ansible to do git pull](https://forum.ansible.com/t/how-to-get-a-complete-git-log-using-ansible-to-do-git-pull/28267)

<div class="topic-metadata">

**Author:** [@Eric\_Chang](https://forum.ansible.com/u/Eric_Chang)\
**Replies:** 0\
**Last updated:** [August 6, 2018, 7:58am UTC](https://forum.ansible.com/t/how-to-get-a-complete-git-log-using-ansible-to-do-git-pull/28267 "2018-08-06T07:58:25Z")

</div>

I wrote a easy playbook to been called when devops do a git push with webhook. if Devs do a git push , webhook will notify my ansible server to run a script which run anisble-playbook myplaybook -i inventory\_name -vvv |…

---

## [How to solve unattended Ansible provisioning of nodes on CentOS 7.x from within automated script](https://forum.ansible.com/t/how-to-solve-unattended-ansible-provisioning-of-nodes-on-centos-7-x-from-within-automated-script/28264)

<div class="topic-metadata">

**Author:** [@Romar\_Mro](https://forum.ansible.com/u/Romar_Mro)\
**Replies:** 1\
**Last updated:** [August 6, 2018, 6:54am UTC](https://forum.ansible.com/t/how-to-solve-unattended-ansible-provisioning-of-nodes-on-centos-7-x-from-within-automated-script/28264 "2018-08-06T06:54:20Z")

</div>

Hi I have an automated script launched from an Azure ARM template. It runs on a master node and invokes Ansible to deploy configurations on nodes. The question is how to make Ansible function unattended i.e. w/o ssh bl…

---

## [can we encrypt a string (password) using ansible vault.](https://forum.ansible.com/t/can-we-encrypt-a-string-password-using-ansible-vault/28265)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 2\
**Last updated:** [August 6, 2018, 5:20am UTC](https://forum.ansible.com/t/can-we-encrypt-a-string-password-using-ansible-vault/28265 "2018-08-06T05:20:35Z")

</div>

Hi, can we encrypt a string (password) using ansible vault. I have a file which contains the usernames and passwords. Could we encrypt the username and password inside the file rather then encrypting the file with ansi…

---

## [How can Integrate Ansible Tower with Active Directory](https://forum.ansible.com/t/how-can-integrate-ansible-tower-with-active-directory/25520)

<div class="topic-metadata">

**Author:** [@Nuwan\_Vithanage](https://forum.ansible.com/u/Nuwan_Vithanage)\
**Replies:** 1\
**Last updated:** [August 6, 2018, 2:55am UTC](https://forum.ansible.com/t/how-can-integrate-ansible-tower-with-active-directory/25520 "2018-08-06T02:55:05Z")

</div>

HOW CAN I INTEGRATING ANSIBLE TOWER WITH LDAP / ACTIVE DIRECTORY Version Tower 3.1.5

---

## [ERROR! No inventory was parsed, please check your configuration and options.](https://forum.ansible.com/t/error-no-inventory-was-parsed-please-check-your-configuration-and-options/27886)

<div class="topic-metadata">

**Author:** [@Dhinesh](https://forum.ansible.com/u/Dhinesh)\
**Replies:** 1\
**Last updated:** [August 5, 2018, 8:06pm UTC](https://forum.ansible.com/t/error-no-inventory-was-parsed-please-check-your-configuration-and-options/27886 "2018-08-05T20:06:52Z")

</div>

HI, I have made a AWX setup and when I tried to make a inventory sync with my AWS Credentials , I am getting the error as mentioned below , 2018-06-27 13:42:06,710 INFO awx.main.commands.inventory\_import Updating inven…

---

## [Looping over include\_tasks serializes execution across the host batch](https://forum.ansible.com/t/looping-over-include-tasks-serializes-execution-across-the-host-batch/28176)

<div class="topic-metadata">

**Author:** [@ALF](https://forum.ansible.com/u/ALF)\
**Replies:** 3\
**Last updated:** [August 5, 2018, 10:03am UTC](https://forum.ansible.com/t/looping-over-include-tasks-serializes-execution-across-the-host-batch/28176 "2018-08-05T10:03:47Z")

</div>

Hi, I wrote a role where I execute a task file for every interface of each target machine. Unfortunately, when reaching the loop the engine allows only one target at a time to execute the included tasks and stall the o…

---

## [how to get the name of current running playbook](https://forum.ansible.com/t/how-to-get-the-name-of-current-running-playbook/28249)

<div class="topic-metadata">

**Author:** [@Han\_Lu](https://forum.ansible.com/u/Han_Lu)\
**Replies:** 3\
**Last updated:** [August 5, 2018, 9:37am UTC](https://forum.ansible.com/t/how-to-get-the-name-of-current-running-playbook/28249 "2018-08-05T09:37:12Z")

</div>

I want to get the playbook name I performed. ie:ansible-playbook -i hosts test.yaml test.yaml is the playbook name I want to get. Is there a variable hold the value of “test.yaml” ? use case: name: run test cases if…

---

## [how split csvfile for each row for  single column](https://forum.ansible.com/t/how-split-csvfile-for-each-row-for-single-column/28258)

<div class="topic-metadata">

**Author:** [@Atul\_Sharma](https://forum.ansible.com/u/Atul_Sharma)\
**Replies:** 2\
**Last updated:** [August 4, 2018, 5:44pm UTC](https://forum.ansible.com/t/how-split-csvfile-for-each-row-for-single-column/28258 "2018-08-04T17:44:12Z")

</div>

I dont find way to use row with column , in csvfile module it is splitting only for single row it is not included rest of the lines in csvfile to split please share how to can do achieve this? following playbook …

---

## [Ansible adhoc command/playbook is not displaying output for the passed argument](https://forum.ansible.com/t/ansible-adhoc-command-playbook-is-not-displaying-output-for-the-passed-argument/27859)

<div class="topic-metadata">

**Author:** [@Ajay1](https://forum.ansible.com/u/Ajay1)\
**Replies:** 2\
**Last updated:** [August 3, 2018, 11:51pm UTC](https://forum.ansible.com/t/ansible-adhoc-command-playbook-is-not-displaying-output-for-the-passed-argument/27859 "2018-08-03T23:51:33Z")

</div>

Hi, I am just getting started with ansible and came across this issue. Ansible doesn’t print the output of the passed argument to the screen when using raw module for both adhoc command and playbook. Here is what I see, …

---

## [wait\_for JoinDomain, does it exist?](https://forum.ansible.com/t/wait-for-joindomain-does-it-exist/28242)

<div class="topic-metadata">

**Author:** [@Sylvain\_Martel](https://forum.ansible.com/u/Sylvain_Martel)\
**Replies:** 7\
**Last updated:** [August 3, 2018, 11:32pm UTC](https://forum.ansible.com/t/wait-for-joindomain-does-it-exist/28242 "2018-08-03T23:32:06Z")

</div>

Hi, Is there a way in Ansible to have it wait for a windows server to have finished joining his domain before moving on? I use vmware\_guest joindomain feature but the problem is that it pass the control back to ansible…

---

## [Install R packages via Ansible](https://forum.ansible.com/t/install-r-packages-via-ansible/28247)

<div class="topic-metadata">

**Author:** [@Saurabh](https://forum.ansible.com/u/Saurabh)\
**Replies:** 5\
**Last updated:** [August 3, 2018, 5:39pm UTC](https://forum.ansible.com/t/install-r-packages-via-ansible/28247 "2018-08-03T17:39:32Z")

</div>

Hi All, How to install R packages through Ansible ? I want to install quantmod and ggplot packages. Any Suggestion ?

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

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