# Ansible Project

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

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

**Page:** 280

---

## [ansible-playbook still doesn't report error if the inventory file doesn't exist](https://forum.ansible.com/t/ansible-playbook-still-doesnt-report-error-if-the-inventory-file-doesnt-exist/26798)

<div class="topic-metadata">

**Author:** [@Alexej\_Pissarev](https://forum.ansible.com/u/Alexej_Pissarev)\
**Replies:** 1\
**Last updated:** [February 20, 2018, 2:47pm UTC](https://forum.ansible.com/t/ansible-playbook-still-doesnt-report-error-if-the-inventory-file-doesnt-exist/26798 "2018-02-20T14:47:27Z")

</div>

In the issue #15035 described the desired behaviour of ansible-playbook in case if an inventory file is missing. According to the status of this issue it has beein implemented in the version 2.4. Also I find the approp…

---

## [import\_tasks and import\_playbook in a single .yml file](https://forum.ansible.com/t/import-tasks-and-import-playbook-in-a-single-yml-file/26766)

<div class="topic-metadata">

**Author:** [@ktesr123456](https://forum.ansible.com/u/ktesr123456)\
**Replies:** 3\
**Last updated:** [February 20, 2018, 2:44pm UTC](https://forum.ansible.com/t/import-tasks-and-import-playbook-in-a-single-yml-file/26766 "2018-02-20T14:44:22Z")

</div>

Team, Can i have import\_tasks and import\_playbook in one .yml file, i have a sequence of tasks to be executed first and then a playbook and then a task. Please share if we have any example of that kind. Thanks.

---

## [Why file fail when directory exists?](https://forum.ansible.com/t/why-file-fail-when-directory-exists/26754)

<div class="topic-metadata">

**Author:** [@LeamHall](https://forum.ansible.com/u/LeamHall)\
**Replies:** 1\
**Last updated:** [February 20, 2018, 12:00pm UTC](https://forum.ansible.com/t/why-file-fail-when-directory-exists/26754 "2018-02-20T12:00:38Z")

</div>

I’m creating a mount point for an ISO image, and a later task puts the mount point in fstab. Why is the file module erroring after the ISO is mounted? The directory exists so the task shouldn’t try to recreate it.

---

## [AWS credentials not working with cross account role](https://forum.ansible.com/t/aws-credentials-not-working-with-cross-account-role/26800)

<div class="topic-metadata">

**Author:** [@Craig\_Wilson](https://forum.ansible.com/u/Craig_Wilson)\
**Replies:** 1\
**Last updated:** [February 20, 2018, 11:06am UTC](https://forum.ansible.com/t/aws-credentials-not-working-with-cross-account-role/26800 "2018-02-20T11:06:29Z")

</div>

Hello I’ve been trying to get my team at work to adopt better credential management but I’m struggling to get ansible working with the aws cli credentials file. My credentials file seems to work just fine with aws cli a…

---

## [\[Ansible 2.4\] include\_tasks and import\_tasks picking the first specified file in a ternary condition](https://forum.ansible.com/t/ansible-2-4-include-tasks-and-import-tasks-picking-the-first-specified-file-in-a-ternary-condition/26788)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 3\
**Last updated:** [February 20, 2018, 9:37am UTC](https://forum.ansible.com/t/ansible-2-4-include-tasks-and-import-tasks-picking-the-first-specified-file-in-a-ternary-condition/26788 "2018-02-20T09:37:51Z")

</div>

Hi, I was trying out a few sample playbooks to understand the difference between static n dynamic imports, and i am stuck at a point where i am not sure what am i doing wrong. hosts.info \` \[docker\] docker1 ansible\_h…

---

## [KDC has no support for encryption type](https://forum.ansible.com/t/kdc-has-no-support-for-encryption-type/26783)

<div class="topic-metadata">

**Author:** [@MKPhil](https://forum.ansible.com/u/MKPhil)\
**Replies:** 2\
**Last updated:** [February 20, 2018, 9:22am UTC](https://forum.ansible.com/t/kdc-has-no-support-for-encryption-type/26783 "2018-02-20T09:22:45Z")

</div>

When connecting from Ansible 2.3.0.0 to Windows 2008 (not R2) running PowerShell 3.0 I’m getting: hostname.domain.corp | UNREACHABLE! =\> { "changed": false, "msg": "kerberos: (('Unspecified GSS failure. Minor code may p…

---

## [win\_part and win\_volume.](https://forum.ansible.com/t/win-part-and-win-volume/26796)

<div class="topic-metadata">

**Author:** [@Varun\_Chopra](https://forum.ansible.com/u/Varun_Chopra)\
**Replies:** 2\
**Last updated:** [February 20, 2018, 8:22am UTC](https://forum.ansible.com/t/win-part-and-win-volume/26796 "2018-02-20T08:22:54Z")

</div>

Is there a plan to implement modules for cmdlets like \*-Partition, \*-Volume? Or I guess they’re already there and I’m missing something. o\_O

---

## [Getting error while creating group or host](https://forum.ansible.com/t/getting-error-while-creating-group-or-host/26795)

<div class="topic-metadata">

**Author:** [@Samurdhi\_Senanayake](https://forum.ansible.com/u/Samurdhi_Senanayake)\
**Replies:** 0\
**Last updated:** [February 20, 2018, 4:35am UTC](https://forum.ansible.com/t/getting-error-while-creating-group-or-host/26795 "2018-02-20T04:35:30Z")

</div>

I have installed ansible tower on CentOS 7. I am getting error message while I am creating host or group. Please advice. Ansible Version :ansible 2.4.0.0 CentOS : CentOS Linux release 7.4.1708 (Core) Error message whe…

---

## [Release schedule for 2.4.4 and beyond](https://forum.ansible.com/t/release-schedule-for-2-4-4-and-beyond/26794)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [February 19, 2018, 9:35pm UTC](https://forum.ansible.com/t/release-schedule-for-2-4-4-and-beyond/26794 "2018-02-19T21:35:35Z")

</div>

Greetings all, I just wanted to say a brief word about my intention as the 2.4.x Ansible Release Manager forgetting 2.4.4 out the door and any further 2.4.x releases after that. Release Schedule for 2.4.4

---

## [Need help about Ansible block syntax](https://forum.ansible.com/t/need-help-about-ansible-block-syntax/26614)

<div class="topic-metadata">

**Author:** [@JiElPe-Fr38](https://forum.ansible.com/u/JiElPe-Fr38)\
**Replies:** 4\
**Last updated:** [February 19, 2018, 9:19pm UTC](https://forum.ansible.com/t/need-help-about-ansible-block-syntax/26614 "2018-02-19T21:19:44Z")

</div>

Dear all, I am quite new to Ansible and try to “make a tour”… I am using ansible 2.4.2.0 with cygwin64 on Win7. I am currently make a personal training and find that I could use a block to “enclose” (ok, perhaps wrong…

---

## [Ansible Failover of SQL Database](https://forum.ansible.com/t/ansible-failover-of-sql-database/26791)

<div class="topic-metadata">

**Author:** [@Darren\_Rucker](https://forum.ansible.com/u/Darren_Rucker)\
**Replies:** 0\
**Last updated:** [February 19, 2018, 8:04pm UTC](https://forum.ansible.com/t/ansible-failover-of-sql-database/26791 "2018-02-19T20:04:17Z")

</div>

Hi folks. I am pretty new to Ansible though have been assigned a project to failover a Microsoft SQL database from a primary data center to a DR site. What I an uncertain of is how to structure that’s below in Ansible an…

---

## [Seeking testers for a (radically) performance-improving Ansible plug-in](https://forum.ansible.com/t/seeking-testers-for-a-radically-performance-improving-ansible-plug-in/26763)

<div class="topic-metadata">

**Author:** [@dw1](https://forum.ansible.com/u/dw1)\
**Replies:** 3\
**Last updated:** [February 19, 2018, 6:36pm UTC](https://forum.ansible.com/t/seeking-testers-for-a-radically-performance-improving-ansible-plug-in/26763 "2018-02-19T18:36:34Z")

</div>

Hi guys, I’ve been working occasionally on a new connection method for Ansible that drastically improves its efficiency, even when compared to pipelining and SSH multiplexing. The typical speedups can be impressive - in…

---

## [Installed documentation](https://forum.ansible.com/t/installed-documentation/26767)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 4\
**Last updated:** [February 19, 2018, 6:28pm UTC](https://forum.ansible.com/t/installed-documentation/26767 "2018-02-19T18:28:34Z")

</div>

For everyone who’s about to reply, “docs.ansible.com”, please don’t… I’m asking about docs actually installed and available on the local system, with no Internet connectivity. ansible-doc has lots of great info for modu…

---

## [Looking for Ansible AWX usability interview participants](https://forum.ansible.com/t/looking-for-ansible-awx-usability-interview-participants/26790)

<div class="topic-metadata">

**Author:** [@jmitchel](https://forum.ansible.com/u/jmitchel)\
**Replies:** 0\
**Last updated:** [February 19, 2018, 6:17pm UTC](https://forum.ansible.com/t/looking-for-ansible-awx-usability-interview-participants/26790 "2018-02-19T18:17:39Z")

</div>

I’ve been working with a grad student team to get them set up running AWX, and they have been excited and eager about this usability project they are working on! The AWX engineering team will be reviewing the results of …

---

## [Extracting an IP address from a shell command's return using a regex](https://forum.ansible.com/t/extracting-an-ip-address-from-a-shell-commands-return-using-a-regex/26780)

<div class="topic-metadata">

**Author:** [@J-P\_Methot](https://forum.ansible.com/u/J-P_Methot)\
**Replies:** 2\
**Last updated:** [February 19, 2018, 5:46pm UTC](https://forum.ansible.com/t/extracting-an-ip-address-from-a-shell-commands-return-using-a-regex/26780 "2018-02-19T17:46:27Z")

</div>

Hi, I’ve been stuck on this issue for a few days and I’m still unable to make it work, even though it should be doable. Essentially, I’m doing a shell command which gives me the following return (please don’t suggest to…

---

## [Dynamic Inventory Using CSV of Excel File ...](https://forum.ansible.com/t/dynamic-inventory-using-csv-of-excel-file/26764)

<div class="topic-metadata">

**Author:** [@Hemant\_Kulkarni](https://forum.ansible.com/u/Hemant_Kulkarni)\
**Replies:** 1\
**Last updated:** [February 19, 2018, 4:30pm UTC](https://forum.ansible.com/t/dynamic-inventory-using-csv-of-excel-file/26764 "2018-02-19T16:30:39Z")

</div>

Hello All, is there any way so that I can use CSV or excel file as Dynamic Inventory in Ansiable … if yes can you please let me know how I do that … Regards…HeM

---

## [Issue with replace module not working with first block insert](https://forum.ansible.com/t/issue-with-replace-module-not-working-with-first-block-insert/26789)

<div class="topic-metadata">

**Author:** [@Dave](https://forum.ansible.com/u/Dave)\
**Replies:** 0\
**Last updated:** [February 19, 2018, 4:17pm UTC](https://forum.ansible.com/t/issue-with-replace-module-not-working-with-first-block-insert/26789 "2018-02-19T16:17:06Z")

</div>

My Ansible playbook has an issue where the replace module is not working with my first ‘blockinfile’ insert. It works fine with all the subsequent inserts. Is this a known issue?

---

## [How to save whole ansible\_facts to file](https://forum.ansible.com/t/how-to-save-whole-ansible-facts-to-file/26771)

<div class="topic-metadata">

**Author:** [@YvanM](https://forum.ansible.com/u/YvanM)\
**Replies:** 5\
**Last updated:** [February 19, 2018, 4:13pm UTC](https://forum.ansible.com/t/how-to-save-whole-ansible-facts-to-file/26771 "2018-02-19T16:13:21Z")

</div>

Hi, Running Ansible 2.4, I am trying to save all Ansible facts to a file, with a task like this: \` name: save all facts to host specific file copy: content: “{{ ansible\_facts }}” dest: “/some/directory/{{ ansible\_…

---

## [XML module xpath issues - "does not reference a node" error](https://forum.ansible.com/t/xml-module-xpath-issues-does-not-reference-a-node-error/26785)

<div class="topic-metadata">

**Author:** [@ADB101](https://forum.ansible.com/u/ADB101)\
**Replies:** 2\
**Last updated:** [February 19, 2018, 3:44pm UTC](https://forum.ansible.com/t/xml-module-xpath-issues-does-not-reference-a-node-error/26785 "2018-02-19T15:44:37Z")

</div>

Hi All. I am having issues getting the “xml” module to accept what I believe to be valid xpaths, it just returns “does not reference a node”. I have used an online xpath checker (https://www.freeformatter.com/xpath-test…

---

## [retrieve config from One Access devices](https://forum.ansible.com/t/retrieve-config-from-one-access-devices/26787)

<div class="topic-metadata">

**Author:** [@DOkuwa](https://forum.ansible.com/u/DOkuwa)\
**Replies:** 0\
**Last updated:** [February 19, 2018, 2:08pm UTC](https://forum.ansible.com/t/retrieve-config-from-one-access-devices/26787 "2018-02-19T14:08:04Z")

</div>

hello, Is it possible for config to be backed up or retrieved from One Access device similar to cisco as the module is not available on Ansible like the Juno ( Juniper) or ios( Cisco) Thanks Daley

---

## [Is it possible to associate a host to a variable?](https://forum.ansible.com/t/is-it-possible-to-associate-a-host-to-a-variable/26757)

<div class="topic-metadata">

**Author:** [@Edson\_D\_Agostini](https://forum.ansible.com/u/Edson_D_Agostini)\
**Replies:** 1\
**Last updated:** [February 19, 2018, 7:39am UTC](https://forum.ansible.com/t/is-it-possible-to-associate-a-host-to-a-variable/26757 "2018-02-19T07:39:46Z")

</div>

Greetings, Would you please let me know if there is a way of associating a host with a variable. In other words, I have in one test inventory file something like his: nodenameA nodeNumber=1 nodenameB nodeNumber=2 no…

---

## [source bucket cannot be found](https://forum.ansible.com/t/source-bucket-cannot-be-found/26778)

<div class="topic-metadata">

**Author:** [@edwinkamal](https://forum.ansible.com/u/edwinkamal)\
**Replies:** 0\
**Last updated:** [February 19, 2018, 6:19am UTC](https://forum.ansible.com/t/source-bucket-cannot-be-found/26778 "2018-02-19T06:19:03Z")

</div>

Hi When I try to access s3 bucket and download files using ansible script, I get the error “Souce Bucket cannot be found” Note: Recently my access key is deleted and I have renewed the key and put in boto file on my an…

---

## [docker\_login and GCR](https://forum.ansible.com/t/docker-login-and-gcr/22459)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 3\
**Last updated:** [February 18, 2018, 9:04pm UTC](https://forum.ansible.com/t/docker-login-and-gcr/22459 "2018-02-18T21:04:08Z")

</div>

is anyone using docker\_login with Google Cloud Registry? I am attempting to do so by defining variable for auth token: \` gcloud\_token\_file: gcp\_sa\_account.json gcloud\_token: “{{ lookup(‘file’, gcloud\_token\_file) }}” …

---

## [unable to ping windows machine using ansible](https://forum.ansible.com/t/unable-to-ping-windows-machine-using-ansible/26776)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 2\
**Last updated:** [February 18, 2018, 7:09pm UTC](https://forum.ansible.com/t/unable-to-ping-windows-machine-using-ansible/26776 "2018-02-18T19:09:12Z")

</div>

Below is the configuration and its corresponding error, \[windows\] 192.168.1.102 \[windows:vars\] ansible\_ssh\_user=smodak ansible\_ssh\_pass=\*\*\*\*\*\* ansible\_ssh\_port=5986 ansible\_connection=winrm ansible\_winrm\_server\_cert\_val…

---

## [Managing /etc/resolv.conf with Ansible](https://forum.ansible.com/t/managing-etc-resolv-conf-with-ansible/24032)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 3\
**Last updated:** [February 18, 2018, 10:30am UTC](https://forum.ansible.com/t/managing-etc-resolv-conf-with-ansible/24032 "2018-02-18T10:30:10Z")

</div>

Hello, we would like to manage the /etc/resolv.conf on our RHEL 7 hosts with ansible. But currently the file is generated by NetworkManager. \[root@rhel-t2 ~\]# cat /etc/resolv.conf # Generated by NetworkManager search s…

---

## [safely provisioning windows VMs from templates](https://forum.ansible.com/t/safely-provisioning-windows-vms-from-templates/26774)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 0\
**Last updated:** [February 18, 2018, 2:06am UTC](https://forum.ansible.com/t/safely-provisioning-windows-vms-from-templates/26774 "2018-02-18T02:06:21Z")

</div>

How is this done? with linux, the template has no password or ssh host keys, just public ssh keys. ansible does the rest. whats the standard practice with windows? install windows instances by hand, and put their indivi…

---

## [Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع](https://forum.ansible.com/t/us-congress-hearing-of-maan-alsaan-money-laundry/26772)

<div class="topic-metadata">

**Author:** [@mike\_a1](https://forum.ansible.com/u/mike_a1)\
**Replies:** 0\
**Last updated:** [February 17, 2018, 5:59pm UTC](https://forum.ansible.com/t/us-congress-hearing-of-maan-alsaan-money-laundry/26772 "2018-02-17T17:59:29Z")

</div>

موقع اليوتيوب الذي عرض فيديوهات جلسة استماع الكونجرس الأمريكي لمتابعة نشاطات غسل الأموال ونشاطات السعودي معن عبدالواحد الصانع مالك مستشفى وشركة سعد ومدارس سعد بالمنطقة الشرقية بالسعودية ورئيس مجلس ادارة بنك اوال البحر…

---

## [skip some task with prompt in ansible](https://forum.ansible.com/t/skip-some-task-with-prompt-in-ansible/26769)

<div class="topic-metadata">

**Author:** [@David\_Fazeli](https://forum.ansible.com/u/David_Fazeli)\
**Replies:** 1\
**Last updated:** [February 17, 2018, 9:04am UTC](https://forum.ansible.com/t/skip-some-task-with-prompt-in-ansible/26769 "2018-02-17T09:04:29Z")

</div>

please explain me. How can I access to answer one prompt on another server? my hosts: \[dbs\] db1 db2 db3 I have one role and mytasks/main.yml is: - pause: prompt: "Do you want to install mysql (yes/no)?" register…

---

## [Ansible and PowerShell 6 (Core)](https://forum.ansible.com/t/ansible-and-powershell-6-core/26734)

<div class="topic-metadata">

**Author:** [@lovi](https://forum.ansible.com/u/lovi)\
**Replies:** 4\
**Last updated:** [February 17, 2018, 6:04am UTC](https://forum.ansible.com/t/ansible-and-powershell-6-core/26734 "2018-02-17T06:04:28Z")

</div>

Hello, I would like to know if it’s possible to get ansible working with powershell version 6 core : pwsh.exe on remote host with winrm ? And if not is there a planning for this feature ? Regards,

---

## [Docker pull an image for ansible module](https://forum.ansible.com/t/docker-pull-an-image-for-ansible-module/26770)

<div class="topic-metadata">

**Author:** [@Dark\_Night](https://forum.ansible.com/u/Dark_Night)\
**Replies:** 0\
**Last updated:** [February 17, 2018, 5:05am UTC](https://forum.ansible.com/t/docker-pull-an-image-for-ansible-module/26770 "2018-02-17T05:05:08Z")

</div>

Let me out from this one

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

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