# Ansible Project

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

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

**Page:** 233

---

## [Ansible Script Execution directory change from root path to other path](https://forum.ansible.com/t/ansible-script-execution-directory-change-from-root-path-to-other-path/28664)

<div class="topic-metadata">

**Author:** [@venkatesh\_vanigalla](https://forum.ansible.com/u/venkatesh_vanigalla)\
**Replies:** 1\
**Last updated:** [September 27, 2018, 3:16pm UTC](https://forum.ansible.com/t/ansible-script-execution-directory-change-from-root-path-to-other-path/28664 "2018-09-27T15:16:08Z")

</div>

How to change ansible script execution directory from /root to other fodler?

---

## [Error with win\_ping playbook](https://forum.ansible.com/t/error-with-win-ping-playbook/28656)

<div class="topic-metadata">

**Author:** [@Yann](https://forum.ansible.com/u/Yann)\
**Replies:** 6\
**Last updated:** [September 27, 2018, 1:06pm UTC](https://forum.ansible.com/t/error-with-win-ping-playbook/28656 "2018-09-27T13:06:02Z")

</div>

Hi, I meet the next pb when I run the module win\_ping with playbook. EXEC (via pipeline wrapper) The full traceback is: Au caract?re Ligne:4 : 3^M + & "^@^@^@C^@^@^@:^@^@^@\\^@^@^@U^@^@^@s^@^@^@e^@^@^@r^@^@^@s^@^@^@\\^@^…

---

## [Ansible mail module: how to attach a file with a relative path?](https://forum.ansible.com/t/ansible-mail-module-how-to-attach-a-file-with-a-relative-path/28589)

<div class="topic-metadata">

**Author:** [@Sabrina\_Lautier](https://forum.ansible.com/u/Sabrina_Lautier)\
**Replies:** 2\
**Last updated:** [September 27, 2018, 11:43am UTC](https://forum.ansible.com/t/ansible-mail-module-how-to-attach-a-file-with-a-relative-path/28589 "2018-09-27T11:43:55Z")

</div>

Hi everyone, Is it possible to provide a relative path to a file as attach parameter of the ansible mail module? Directory structure \` ./roles/notify/ files: contains the file to send tasks: send\_email.yml \` Task…

---

## [Unable to authenticate through CredSSP](https://forum.ansible.com/t/unable-to-authenticate-through-credssp/28634)

<div class="topic-metadata">

**Author:** [@Shyam](https://forum.ansible.com/u/Shyam)\
**Replies:** 5\
**Last updated:** [September 27, 2018, 4:19am UTC](https://forum.ansible.com/t/unable-to-authenticate-through-credssp/28634 "2018-09-27T04:19:40Z")

</div>

Hi all, Im unable to connect to windows using the credssp authentication issue. Im getting the following error, x.x.x.x | UNREACHABLE! =\> { “changed”: false, “msg”: “credssp: HTTPSConnectionPool(host=‘x.x.x.x’, port=…

---

## [Ansible Jinja Template Comparison](https://forum.ansible.com/t/ansible-jinja-template-comparison/28595)

<div class="topic-metadata">

**Author:** [@Krishna\_N](https://forum.ansible.com/u/Krishna_N)\
**Replies:** 3\
**Last updated:** [September 26, 2018, 11:20pm UTC](https://forum.ansible.com/t/ansible-jinja-template-comparison/28595 "2018-09-26T23:20:26Z")

</div>

Greetings! How to compare when items are not in jinja template loop? with\_items: "{{ runconfser.stdout\_lines\[0\] }}" when: (item not in {src: 'ntprequired.j2'} and (item!="")) ios\_config: lines: …

---

## [Why space is preserved in comma separated lists?](https://forum.ansible.com/t/why-space-is-preserved-in-comma-separated-lists/28658)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 0\
**Last updated:** [September 26, 2018, 3:29pm UTC](https://forum.ansible.com/t/why-space-is-preserved-in-comma-separated-lists/28658 "2018-09-26T15:29:17Z")

</div>

If I do this: tasks: name: install dependencies for screenshots under i3 apt: package: maim, xclip Ansible fails: fatal: \[localhost\]: FAILED! =\> {“changed”: false, “msg”: “No package matching ’ xclip’ is available…

---

## [certificate: the specified credentials were rejected by the server](https://forum.ansible.com/t/certificate-the-specified-credentials-were-rejected-by-the-server/28640)

<div class="topic-metadata">

**Author:** [@Gary\_Mo](https://forum.ansible.com/u/Gary_Mo)\
**Replies:** 3\
**Last updated:** [September 26, 2018, 8:40am UTC](https://forum.ansible.com/t/certificate-the-specified-credentials-were-rejected-by-the-server/28640 "2018-09-26T08:40:44Z")

</div>

Hi, I’m using ansible on Ubuntu 16.04 LTS and try to mange my win10 server. But met trouble when I using Certificate authentication: \` gary@gary-HP-Pavilion-Notebook:~$ ansible win\_test -m win\_ping 192.168.1.207 | UN…

---

## [Not able to connect windows server due to the Error "module\_stderr": "An error occurred while creating the pipeline.\\r\\n"," while trying with win\_ping](https://forum.ansible.com/t/not-able-to-connect-windows-server-due-to-the-error-module-stderr-an-error-occurred-while-creating-the-pipeline-r-n-while-trying-with-win-ping/28586)

<div class="topic-metadata">

**Author:** [@Usha\_Rani](https://forum.ansible.com/u/Usha_Rani)\
**Replies:** 4\
**Last updated:** [September 25, 2018, 10:16pm UTC](https://forum.ansible.com/t/not-able-to-connect-windows-server-due-to-the-error-module-stderr-an-error-occurred-while-creating-the-pipeline-r-n-while-trying-with-win-ping/28586 "2018-09-25T22:16:15Z")

</div>

Hi, I am trying to do ping test to some windows machine using win\_ping but getting the below error when i run the ping yml. $ansible win\_prod -i /tmp/winhosts.yml -m win\_ping -k \[WARNING\] Ansible is in a world writabl…

---

## [Need to know existing code for COPY module in ansible](https://forum.ansible.com/t/need-to-know-existing-code-for-copy-module-in-ansible/28648)

<div class="topic-metadata">

**Author:** [@Sangamesh\_Sangamesh](https://forum.ansible.com/u/Sangamesh_Sangamesh)\
**Replies:** 1\
**Last updated:** [September 25, 2018, 8:24pm UTC](https://forum.ansible.com/t/need-to-know-existing-code-for-copy-module-in-ansible/28648 "2018-09-25T20:24:02Z")

</div>

Could you please help me ? How can i view code written for existing copy module in ansible. Need to know the location in my installation. Want review the code written for copy . Please can get help on this location : …

---

## [SSh passphrase](https://forum.ansible.com/t/ssh-passphrase/28641)

<div class="topic-metadata">

**Author:** [@Fatima\_Elfakih](https://forum.ansible.com/u/Fatima_Elfakih)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 11:34am UTC](https://forum.ansible.com/t/ssh-passphrase/28641 "2018-09-25T11:34:14Z")

</div>

Hello How I can pass automatically a ssh passphrase for ansible-playbook Thanks

---

## [Azure Extensions](https://forum.ansible.com/t/azure-extensions/28627)

<div class="topic-metadata">

**Author:** [@Calhoun999999](https://forum.ansible.com/u/Calhoun999999)\
**Replies:** 1\
**Last updated:** [September 25, 2018, 11:07am UTC](https://forum.ansible.com/t/azure-extensions/28627 "2018-09-25T11:07:25Z")

</div>

Hi, Does anyone know a good article on how to install Azure extensions such as IaasAntiMalware? There is plenty of information on CustomScriptsExtension, but not much on how to install an existing Azure VM extension. T…

---

## [How can I remove a certificate mapping?](https://forum.ansible.com/t/how-can-i-remove-a-certificate-mapping/28621)

<div class="topic-metadata">

**Author:** [@Gary\_Mo](https://forum.ansible.com/u/Gary_Mo)\
**Replies:** 2\
**Last updated:** [September 25, 2018, 9:06am UTC](https://forum.ansible.com/t/how-can-i-remove-a-certificate-mapping/28621 "2018-09-25T09:06:17Z")

</div>

In these days, I tried to use ansible to manage windows server. But met trouble after I generate a certificate: https://docs.ansible.com/ansible/latest/user\_guide/windows\_winrm.html#generate-a-certificate After mappin…

---

## [Raw module invoking /usr/bin/python](https://forum.ansible.com/t/raw-module-invoking-usr-bin-python/28638)

<div class="topic-metadata">

**Author:** [@Dylan\_Martin3](https://forum.ansible.com/u/Dylan_Martin3)\
**Replies:** 1\
**Last updated:** [September 24, 2018, 7:04pm UTC](https://forum.ansible.com/t/raw-module-invoking-usr-bin-python/28638 "2018-09-24T19:04:27Z")

</div>

I assume I broke a config somewhere because this makes no sense: $ ansible -vvv ‘\*’ -i hosts.isp-east-stage -M raw -a ‘whoami’ -u ubuntu -l X.X.X.X ansible 2.5.1 config file = /home/dmartin/.ansible.cfg configured mo…

---

## [Getting Error while running playbook](https://forum.ansible.com/t/getting-error-while-running-playbook/28609)

<div class="topic-metadata">

**Author:** [@SUMIT\_SAHAY](https://forum.ansible.com/u/SUMIT_SAHAY)\
**Replies:** 1\
**Last updated:** [September 24, 2018, 2:30pm UTC](https://forum.ansible.com/t/getting-error-while-running-playbook/28609 "2018-09-24T14:30:02Z")

</div>

Hi All, I am getting error while running the ansible playbook by using ssh command error is like host key verification failed. Looking forward ro reply. Thanks & Regards Sumit Sahay 7044112109

---

## [Tomcat startup.sh script works from shell but not with ansible](https://forum.ansible.com/t/tomcat-startup-sh-script-works-from-shell-but-not-with-ansible/14530)

<div class="topic-metadata">

**Author:** [@Alain\_Sahli](https://forum.ansible.com/u/Alain_Sahli)\
**Replies:** 17\
**Last updated:** [September 22, 2018, 2:45pm UTC](https://forum.ansible.com/t/tomcat-startup-sh-script-works-from-shell-but-not-with-ansible/14530 "2018-09-22T14:45:28Z")

</div>

Hi! I wrote a simple playbook that downloads, extracts and starts Tomcat. Here are the relevant parts of it: name: Download Tomcat 7.0.42 get\_url: url=http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.42/bin/apach…

---

## [Variable values not being passed to ansible script](https://forum.ansible.com/t/variable-values-not-being-passed-to-ansible-script/28632)

<div class="topic-metadata">

**Author:** [@onenessboy](https://forum.ansible.com/u/onenessboy)\
**Replies:** 4\
**Last updated:** [September 22, 2018, 12:19pm UTC](https://forum.ansible.com/t/variable-values-not-being-passed-to-ansible-script/28632 "2018-09-22T12:19:13Z")

</div>

Hi Friends, Trying to achieve some thing like below with anisble with ansible command line --which will be executed from chatbot ssh into remote box run a script on that remote box using script module with parameters …

---

## [Tags not propagated to dynamically included tasks: Workaround?](https://forum.ansible.com/t/tags-not-propagated-to-dynamically-included-tasks-workaround/28415)

<div class="topic-metadata">

**Author:** [@Frank\_Thommen](https://forum.ansible.com/u/Frank_Thommen)\
**Replies:** 7\
**Last updated:** [September 22, 2018, 9:25am UTC](https://forum.ansible.com/t/tags-not-propagated-to-dynamically-included-tasks-workaround/28415 "2018-09-22T09:25:44Z")

</div>

Dear all, since "recently" (we realized just now), tags applied in role's main.yml task, like: /role/myrole/tasks/main.yml: - name: My Task include\_tasks: "mytask.{{ansible\_osfamily}}.yml" tags: - mytask…

---

## [Ansible cannot connect via SSH / broken pipe problem](https://forum.ansible.com/t/ansible-cannot-connect-via-ssh-broken-pipe-problem/28604)

<div class="topic-metadata">

**Author:** [@Alexey\_Eromenko](https://forum.ansible.com/u/Alexey_Eromenko)\
**Replies:** 8\
**Last updated:** [September 22, 2018, 7:51am UTC](https://forum.ansible.com/t/ansible-cannot-connect-via-ssh-broken-pipe-problem/28604 "2018-09-22T07:51:05Z")

</div>

fatal: \[finland-07\]: UNREACHABLE! =\> {“changed”: false, “msg”: “Failed to connect to the host via ssh: mux\_client\_hello\_exchange: write packet: Broken pipe\\r\\n”, “unreachable”: true} fatal: \[finland-08\]: UNREACHABLE! =\> …

---

## [Ansible oVirt module](https://forum.ansible.com/t/ansible-ovirt-module/28631)

<div class="topic-metadata">

**Author:** [@Leo\_David](https://forum.ansible.com/u/Leo_David)\
**Replies:** 0\
**Last updated:** [September 22, 2018, 7:27am UTC](https://forum.ansible.com/t/ansible-ovirt-module/28631 "2018-09-22T07:27:11Z")

</div>

Hello everyone, I am newbie in ansible, I now as I met it I kind of can’t do anything without it anymore :). I have this problem at the moment, and cannot figure out how to address it. I would need to spinup multiple …

---

## [template error while templating string](https://forum.ansible.com/t/template-error-while-templating-string/28628)

<div class="topic-metadata">

**Author:** [@Narahari\_n\_Savitha](https://forum.ansible.com/u/Narahari_n_Savitha)\
**Replies:** 1\
**Last updated:** [September 21, 2018, 3:25pm UTC](https://forum.ansible.com/t/template-error-while-templating-string/28628 "2018-09-21T15:25:56Z")

</div>

Hello: Here is the command I am trying to run ansible adhoc ansible -o APP\_SERVERS\_GROUP\[0\] -i ~/HOSTS/v2/DATA\_LAB/DIT/DIT1\_DEV/DIT1\_\_LOCAL\_CURR/ -m shell -a “{{ curl -sk localhost:8080/Log4JControl/version.jsp | trim …

---

## [How to make ansible-playbook quiet](https://forum.ansible.com/t/how-to-make-ansible-playbook-quiet/28622)

<div class="topic-metadata">

**Author:** [@Narahari\_n\_Savitha](https://forum.ansible.com/u/Narahari_n_Savitha)\
**Replies:** 2\
**Last updated:** [September 21, 2018, 12:29pm UTC](https://forum.ansible.com/t/how-to-make-ansible-playbook-quiet/28622 "2018-09-21T12:29:14Z")

</div>

Thank you in advance for your time and attention. In ansible-playbook command, how do I stop the \*\*\*\*\*\* lines from showing up ? I really want very minimal output. -N

---

## [ansible adhoc and run\_once how to ?](https://forum.ansible.com/t/ansible-adhoc-and-run-once-how-to/28623)

<div class="topic-metadata">

**Author:** [@Narahari\_n\_Savitha](https://forum.ansible.com/u/Narahari_n_Savitha)\
**Replies:** 2\
**Last updated:** [September 21, 2018, 12:28pm UTC](https://forum.ansible.com/t/ansible-adhoc-and-run-once-how-to/28623 "2018-09-21T12:28:37Z")

</div>

Thank you in advance for your time and help. In ansible adhoc command how do I specify run\_once ? I can do that in ansible playbook but adhoc I dont now how to do that. Any suggestions is very helpful. -Narahari

---

## [Custom module and paths](https://forum.ansible.com/t/custom-module-and-paths/28624)

<div class="topic-metadata">

**Author:** [@szymon.bienkowski](https://forum.ansible.com/u/szymon.bienkowski)\
**Replies:** 0\
**Last updated:** [September 21, 2018, 10:31am UTC](https://forum.ansible.com/t/custom-module-and-paths/28624 "2018-09-21T10:31:32Z")

</div>

Hi, I created a custom module for one role that receives path to some files and directories (either relative to the role or to the root playbook). How can I get an absolute path to them, so that they can be opened insi…

---

## [How to syntax check list of tasks](https://forum.ansible.com/t/how-to-syntax-check-list-of-tasks/28608)

<div class="topic-metadata">

**Author:** [@furstenheim](https://forum.ansible.com/u/furstenheim)\
**Replies:** 3\
**Last updated:** [September 21, 2018, 6:25am UTC](https://forum.ansible.com/t/how-to-syntax-check-list-of-tasks/28608 "2018-09-21T06:25:04Z")

</div>

This might be in the docs, but I cannot find it. I have the following files: first-playbook.yml second-playbook.yml common-tasks.yml common-tasks.yml is a list of tasks that is used in first-playbook.yml and second-p…

---

## [Unable to copy the files using the network path.](https://forum.ansible.com/t/unable-to-copy-the-files-using-the-network-path/28616)

<div class="topic-metadata">

**Author:** [@Shyam](https://forum.ansible.com/u/Shyam)\
**Replies:** 2\
**Last updated:** [September 21, 2018, 4:39am UTC](https://forum.ansible.com/t/unable-to-copy-the-files-using-the-network-path/28616 "2018-09-21T04:39:53Z")

</div>

Hello, Im unable to copy the files from the windows host to network path. Initially I tried to copy the files using NTLM authentication method and got the error as “Access denied”. After using the Kerberos authenticatio…

---

## [WinRM Connection Error](https://forum.ansible.com/t/winrm-connection-error/28283)

<div class="topic-metadata">

**Author:** [@Scott\_Garcia](https://forum.ansible.com/u/Scott_Garcia)\
**Replies:** 12\
**Last updated:** [September 20, 2018, 6:22pm UTC](https://forum.ansible.com/t/winrm-connection-error/28283 "2018-09-20T18:22:40Z")

</div>

Trying to ping a windows machine, and I’m running into an ambiguous error from one of the python modules. Any suggestion on how to fix this?

---

## [Using junos\_config or netconf\_config for configuration management on Juniper devices](https://forum.ansible.com/t/using-junos-config-or-netconf-config-for-configuration-management-on-juniper-devices/28613)

<div class="topic-metadata">

**Author:** [@chandrasekhar\_vajpay](https://forum.ansible.com/u/chandrasekhar_vajpay)\
**Replies:** 0\
**Last updated:** [September 20, 2018, 3:53pm UTC](https://forum.ansible.com/t/using-junos-config-or-netconf-config-for-configuration-management-on-juniper-devices/28613 "2018-09-20T15:53:16Z")

</div>

Hi, I am trying to use ansible for configuration management on JUNOS devices. Getting below error and need help in resolving. ansible-playbook 2.5.4 config file = /etc/ansible/ansible.cfg configured module search pat…

---

## [Module for collecting logs from CISCO devices](https://forum.ansible.com/t/module-for-collecting-logs-from-cisco-devices/28612)

<div class="topic-metadata">

**Author:** [@Bilal\_ahmed](https://forum.ansible.com/u/Bilal_ahmed)\
**Replies:** 0\
**Last updated:** [September 20, 2018, 1:54pm UTC](https://forum.ansible.com/t/module-for-collecting-logs-from-cisco-devices/28612 "2018-09-20T13:54:35Z")

</div>

Hi guys, Is there any module that collects specific logs (interface or Protocol i.e OSPF, BGP etc up/down) from Cisco Devices? I need to monitor my network using Ansible, any suggestions? BR, Bilal AHMED.

---

## [How to force deployment via ansible playbook with ECS modules?](https://forum.ansible.com/t/how-to-force-deployment-via-ansible-playbook-with-ecs-modules/28611)

<div class="topic-metadata">

**Author:** [@ljubon](https://forum.ansible.com/u/ljubon)\
**Replies:** 0\
**Last updated:** [September 20, 2018, 11:03am UTC](https://forum.ansible.com/t/how-to-force-deployment-via-ansible-playbook-with-ecs-modules/28611 "2018-09-20T11:03:12Z")

</div>

Hello, I would like to check if it’s possible to force deployment via ansible playbook with ECS modules? example: cluster: test-cluster services: test-service region: us-east-2 I know it can be done via AWS CLI, but…

---

## [New vm's not created when connection vars are defined](https://forum.ansible.com/t/new-vms-not-created-when-connection-vars-are-defined/28610)

<div class="topic-metadata">

**Author:** [@Ruben1](https://forum.ansible.com/u/Ruben1)\
**Replies:** 0\
**Last updated:** [September 20, 2018, 9:39am UTC](https://forum.ansible.com/t/new-vms-not-created-when-connection-vars-are-defined/28610 "2018-09-20T09:39:58Z")

</div>

I use Ansible to create instances (vm’s) on Google cloud. When I define the instances to create in my inventory file and put in the connection details in there, for later use, the instances are not created. Ansible assum…

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

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