# Ansible Project

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

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

**Page:** 179

---

## [Error when try to install/configure SQL Server](https://forum.ansible.com/t/error-when-try-to-install-configure-sql-server/30805)

<div class="topic-metadata">

**Author:** [@tao\_sun](https://forum.ansible.com/u/tao_sun)\
**Replies:** 0\
**Last updated:** [July 17, 2019, 9:08pm UTC](https://forum.ansible.com/t/error-when-try-to-install-configure-sql-server/30805 "2019-07-17T21:08:55Z")

</div>

Enter code here... I use the following code to install Sql Server. The installation is fine except setting the login as “mix-mode”. I am having trouble to find any information on this except one person Convert property…

---

## [Debian 10 Playbook error](https://forum.ansible.com/t/debian-10-playbook-error/30801)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 6\
**Last updated:** [July 17, 2019, 7:10pm UTC](https://forum.ansible.com/t/debian-10-playbook-error/30801 "2019-07-17T19:10:36Z")

</div>

I am trying to set up a new Debian 10 build server, and the first step is gaining the ability to ssh into the device from outside my local network. For whatever reason, this is proving to be difficult and I haven’t the s…

---

## [Building docs locally requires Python \>= 3.5 and straight.plugin](https://forum.ansible.com/t/building-docs-locally-requires-python-3-5-and-straight-plugin/30804)

<div class="topic-metadata">

**Author:** [@acozine1](https://forum.ansible.com/u/acozine1)\
**Replies:** 0\
**Last updated:** [July 17, 2019, 5:09pm UTC](https://forum.ansible.com/t/building-docs-locally-requires-python-3-5-and-straight-plugin/30804 "2019-07-17T17:09:42Z")

</div>

Hi folks, This applies to you if you build the Ansible documentation on the devel branch locally, with “make webdocs” or “make htmlsingle”. We’ve merged a PR that consolidates the build code and requires Python 3. As a…

---

## [Passing variable in EC2 Inventory Plugin](https://forum.ansible.com/t/passing-variable-in-ec2-inventory-plugin/30800)

<div class="topic-metadata">

**Author:** [@prasanth\_s](https://forum.ansible.com/u/prasanth_s)\
**Replies:** 0\
**Last updated:** [July 17, 2019, 1:07pm UTC](https://forum.ansible.com/t/passing-variable-in-ec2-inventory-plugin/30800 "2019-07-17T13:07:01Z")

</div>

Hello Team, I am using the EC2 Inventory plugin to build a dynamic inventory for ansible to run. The inventory is built based on certain ec2 instance tags mentioned in the filters section of the plugin config so that I …

---

## [yum downgrade \<RPM\> is not working in Ansible Command module](https://forum.ansible.com/t/yum-downgrade-rpm-is-not-working-in-ansible-command-module/30798)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 14\
**Last updated:** [July 17, 2019, 9:30am UTC](https://forum.ansible.com/t/yum-downgrade-rpm-is-not-working-in-ansible-command-module/30798 "2019-07-17T09:30:20Z")

</div>

I am using Ansible command module to downgrade the package (assuming higher version is already installed and repo has both lower and higher version). I dont want to use Anisble yum module due to some constraints. I am …

---

## [enable\_plugin option in Ansible yum module does not work.](https://forum.ansible.com/t/enable-plugin-option-in-ansible-yum-module-does-not-work/30799)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 0\
**Last updated:** [July 17, 2019, 6:13am UTC](https://forum.ansible.com/t/enable-plugin-option-in-ansible-yum-module-does-not-work/30799 "2019-07-17T06:13:59Z")

</div>

I tried enable\_plugin option in Ansible yum module with yum-versionlock plugin for common use case of upgrade/downgrade. But it does not work. How enable\_plugin is supposed to be used , which all plugin we can provide h…

---

## [firewall playbook using when module](https://forum.ansible.com/t/firewall-playbook-using-when-module/30797)

<div class="topic-metadata">

**Author:** [@Annam\_Rafi1](https://forum.ansible.com/u/Annam_Rafi1)\
**Replies:** 1\
**Last updated:** [July 17, 2019, 5:51am UTC](https://forum.ansible.com/t/firewall-playbook-using-when-module/30797 "2019-07-17T05:51:00Z")

</div>

I am trying to create a playbook to check if the firewall is running, if so add the rsyslog port. If the firewall is not running, id like to skip the port adding step. Please share some docs. I can’t seem to find any. So…

---

## [Testing Ansible roles with Molecule on OpenShift?](https://forum.ansible.com/t/testing-ansible-roles-with-molecule-on-openshift/30795)

<div class="topic-metadata">

**Author:** [@afeller](https://forum.ansible.com/u/afeller)\
**Replies:** 0\
**Last updated:** [July 16, 2019, 10:25pm UTC](https://forum.ansible.com/t/testing-ansible-roles-with-molecule-on-openshift/30795 "2019-07-16T22:25:34Z")

</div>

I’ve spent a few hours digging around for solid documentation on the molecule site or examples of people doing this, however I’ve come up with nothing definitive. OpenShift documentation rightly advocates to limit privil…

---

## [Ansible vs sshd config](https://forum.ansible.com/t/ansible-vs-sshd-config/30791)

<div class="topic-metadata">

**Author:** [@Ermanno\_Travaglino](https://forum.ansible.com/u/Ermanno_Travaglino)\
**Replies:** 1\
**Last updated:** [July 16, 2019, 6:54pm UTC](https://forum.ansible.com/t/ansible-vs-sshd-config/30791 "2019-07-16T18:54:13Z")

</div>

Hi there, I’m using Ansible to manage target servers with following /etc/ssh/sshd\_config configuration: " … PasswordAuthentication no … ChallengeResponseAuthentication yes … " I have the root password of target …

---

## [regex\_replace in Ansible 2.8.0](https://forum.ansible.com/t/regex-replace-in-ansible-2-8-0/30794)

<div class="topic-metadata">

**Author:** [@Sam5](https://forum.ansible.com/u/Sam5)\
**Replies:** 0\
**Last updated:** [July 16, 2019, 6:25pm UTC](https://forum.ansible.com/t/regex-replace-in-ansible-2-8-0/30794 "2019-07-16T18:25:01Z")

</div>

Using Ansible 2.8.0 on Centos 7 with Python 2.7.5 This regex\_replace hangs when there is no match. Any idea why this would hang? tasks: set\_fact: departStatusDownloadPattern: " (?sm).?\<TD.?Depart Status.?\<\\/TD\>\\s\\s …

---

## [How to log something in a custom module ?](https://forum.ansible.com/t/how-to-log-something-in-a-custom-module/30786)

<div class="topic-metadata">

**Author:** [@Hackcurly](https://forum.ansible.com/u/Hackcurly)\
**Replies:** 2\
**Last updated:** [July 16, 2019, 2:02pm UTC](https://forum.ansible.com/t/how-to-log-something-in-a-custom-module/30786 "2019-07-16T14:02:34Z")

</div>

Hi, I would like to know how to log some variable or other useful information directly in the “Ansible log” displayed when using “-vvvv”. I tried Display(), but it seems to be not in the same “context”. So what do you…

---

## [handling specific scenarios in package module](https://forum.ansible.com/t/handling-specific-scenarios-in-package-module/30720)

<div class="topic-metadata">

**Author:** [@Bubunia\_Patra](https://forum.ansible.com/u/Bubunia_Patra)\
**Replies:** 1\
**Last updated:** [July 16, 2019, 1:02pm UTC](https://forum.ansible.com/t/handling-specific-scenarios-in-package-module/30720 "2019-07-16T13:02:20Z")

</div>

Hi all, I am using package module to install packages in the system. But I need to handle a specific case for example some ubuntu kernel requires some specific command to be run for installing the package. https://docs…

---

## [set\_fact in with\_dict append loop only keeps last item](https://forum.ansible.com/t/set-fact-in-with-dict-append-loop-only-keeps-last-item/30790)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 2\
**Last updated:** [July 16, 2019, 9:06am UTC](https://forum.ansible.com/t/set-fact-in-with-dict-append-loop-only-keeps-last-item/30790 "2019-07-16T09:06:22Z")

</div>

Hi, set\_fact in with\_dict append loop only keeps last item . Is there any way to keep the whole list in the set\_fact. name: Print records set\_fact: imp\_records: “/home/ansible/{{ item.key }}/{{ item.value.version.sp…

---

## [Ansible-galaxy with http/s proxy](https://forum.ansible.com/t/ansible-galaxy-with-http-s-proxy/19132)

<div class="topic-metadata">

**Author:** [@Emilio\_Del\_Plato](https://forum.ansible.com/u/Emilio_Del_Plato)\
**Replies:** 10\
**Last updated:** [July 16, 2019, 8:28am UTC](https://forum.ansible.com/t/ansible-galaxy-with-http-s-proxy/19132 "2019-07-16T08:28:55Z")

</div>

Apologies if this has been covered somewhere and I missed it. Is it possible to have ansible-galaxy (CLI) connect using a proxy? we have our primary ansible box walled off and it needs to use a proxy to connect to the w…

---

## [introduce exception in inventory with all option](https://forum.ansible.com/t/introduce-exception-in-inventory-with-all-option/30747)

<div class="topic-metadata">

**Author:** [@Marcos\_Gonzalez](https://forum.ansible.com/u/Marcos_Gonzalez)\
**Replies:** 2\
**Last updated:** [July 15, 2019, 8:05pm UTC](https://forum.ansible.com/t/introduce-exception-in-inventory-with-all-option/30747 "2019-07-15T20:05:23Z")

</div>

Hi all Im checking to use dynamic inventory but Im having a problem when execute any tasks with all option because with dynamic inventory exists some servers that never connects for external reasons. Exist any form to i…

---

## [Provision Hyper-V virtual machines thru Ansible](https://forum.ansible.com/t/provision-hyper-v-virtual-machines-thru-ansible/30773)

<div class="topic-metadata">

**Author:** [@Neeraj\_Shah](https://forum.ansible.com/u/Neeraj_Shah)\
**Replies:** 2\
**Last updated:** [July 15, 2019, 3:20pm UTC](https://forum.ansible.com/t/provision-hyper-v-virtual-machines-thru-ansible/30773 "2019-07-15T15:20:24Z")

</div>

Hello All, I am newbie to Ansible. Can someone pls point me to resources or post some playbook code that deploys VM’s on a Hyper-V 2012 or 2016 server ? Alternatively, lets say if i have a golden image of a VM created …

---

## [evaluating a variable value as boolean](https://forum.ansible.com/t/evaluating-a-variable-value-as-boolean/30754)

<div class="topic-metadata">

**Author:** [@Shashank\_Dutt\_Jha](https://forum.ansible.com/u/Shashank_Dutt_Jha)\
**Replies:** 2\
**Last updated:** [July 15, 2019, 3:16pm UTC](https://forum.ansible.com/t/evaluating-a-variable-value-as-boolean/30754 "2019-07-15T15:16:56Z")

</div>

I have defined variable happened: true When am trying to use this variable in task in conditional when clause it failed when: {{happened}} | bool == true it gives error. what is the correct syntax to use it?

---

## [Ansible NTP](https://forum.ansible.com/t/ansible-ntp/30785)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 1\
**Last updated:** [July 15, 2019, 2:34pm UTC](https://forum.ansible.com/t/ansible-ntp/30785 "2019-07-15T14:34:03Z")

</div>

I have compiled a configuration for NTP for my Linux Servers (RedHat, SLES, Debian, Ubuntu). When I run my playbook I get an error only for Debian. See below: main.yaml

---

## [connect to AWS instance as root doesn't fail](https://forum.ansible.com/t/connect-to-aws-instance-as-root-doesnt-fail/30760)

<div class="topic-metadata">

**Author:** [@william.dossett](https://forum.ansible.com/u/william.dossett)\
**Replies:** 5\
**Last updated:** [July 15, 2019, 1:50pm UTC](https://forum.ansible.com/t/connect-to-aws-instance-as-root-doesnt-fail/30760 "2019-07-15T13:50:00Z")

</div>

Hi, I tagged this onto the end of another question and didn’t get any answers… so am trying to figure it out myself, but the more I look at it the more I don’t understand. AWS Linux instances do not allow connecting vi…

---

## [jinja2 templating error : template error while templating string: unexpected char '@'](https://forum.ansible.com/t/jinja2-templating-error-template-error-while-templating-string-unexpected-char/30770)

<div class="topic-metadata">

**Author:** [@JiElPe-Fr381](https://forum.ansible.com/u/JiElPe-Fr381)\
**Replies:** 2\
**Last updated:** [July 15, 2019, 1:32pm UTC](https://forum.ansible.com/t/jinja2-templating-error-template-error-while-templating-string-unexpected-char/30770 "2019-07-15T13:32:05Z")

</div>

Dear all, I have defined a var which contains some special characters (actually, a password in a vault). Let’s assume the vault contains : \` myPasswd: foo@bar \` There is no problem when creating the encrypted file. …

---

## [Getting different error when trying reference with ref number of list and exact string name](https://forum.ansible.com/t/getting-different-error-when-trying-reference-with-ref-number-of-list-and-exact-string-name/30782)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 0\
**Last updated:** [July 15, 2019, 11:28am UTC](https://forum.ansible.com/t/getting-different-error-when-trying-reference-with-ref-number-of-list-and-exact-string-name/30782 "2019-07-15T11:28:54Z")

</div>

iam getting the proper value if i use the Reference number of list in my input file (3 is entry for EIL\_adaptor). Now if i try “ABC” instead of 3 it gives error tasks: name: Set file as variable include\_vars: file…

---

## [file path in "--extra-vars" prepending with "@"](https://forum.ansible.com/t/file-path-in-extra-vars-prepending-with/30781)

<div class="topic-metadata">

**Author:** [@kdt](https://forum.ansible.com/u/kdt)\
**Replies:** 0\
**Last updated:** [July 15, 2019, 10:01am UTC](https://forum.ansible.com/t/file-path-in-extra-vars-prepending-with/30781 "2019-07-15T10:01:21Z")

</div>

If file name is passed to some variable through command line “–extra-vars” argument it is to be prepended with “@”. Does the same apply also to file paths (absolute, relative)?

---

## [using mail module with Windows roles](https://forum.ansible.com/t/using-mail-module-with-windows-roles/30779)

<div class="topic-metadata">

**Author:** [@Sam2](https://forum.ansible.com/u/Sam2)\
**Replies:** 0\
**Last updated:** [July 15, 2019, 8:46am UTC](https://forum.ansible.com/t/using-mail-module-with-windows-roles/30779 "2019-07-15T08:46:56Z")

</div>

Hi all, I am facing an issue where I have written playbook with roles to configure and install Windows machines, the problem is when I try to send a notification email inside a task of a role, then the mail module will …

---

## [Modify/update existing resources with ansible?](https://forum.ansible.com/t/modify-update-existing-resources-with-ansible/30775)

<div class="topic-metadata">

**Author:** [@Angel\_Rengifo\_Cancin](https://forum.ansible.com/u/Angel_Rengifo_Cancin)\
**Replies:** 2\
**Last updated:** [July 14, 2019, 11:59pm UTC](https://forum.ansible.com/t/modify-update-existing-resources-with-ansible/30775 "2019-07-14T23:59:23Z")

</div>

Hello guys: I have some questions regarding existing resources management: can ansible change their attributes after creation? For instance, I wasn’t able to change the network settings for an existing VM on VMware. Al…

---

## [Is the "assemble" module documentation incorrect?](https://forum.ansible.com/t/is-the-assemble-module-documentation-incorrect/30777)

<div class="topic-metadata">

**Author:** [@Picante](https://forum.ansible.com/u/Picante)\
**Replies:** 1\
**Last updated:** [July 14, 2019, 10:46pm UTC](https://forum.ansible.com/t/is-the-assemble-module-documentation-incorrect/30777 "2019-07-14T22:46:52Z")

</div>

Hi, Please keep in mind I’m new to ansible. I tried to use the assemble module on a windows target box via WinRM. The following documentation indicates that this is support on windows. (“This module is also supported …

---

## [Include tasks based on OS distribution](https://forum.ansible.com/t/include-tasks-based-on-os-distribution/30768)

<div class="topic-metadata">

**Author:** [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Replies:** 2\
**Last updated:** [July 13, 2019, 10:08am UTC](https://forum.ansible.com/t/include-tasks-based-on-os-distribution/30768 "2019-07-13T10:08:18Z")

</div>

Hi, I have some roles that are specific for some OS family and I’m using the include keyword to include a file when ansible\_os\_family matches what I want. The problem with this approach is that when is not the family I…

---

## [run the shell script interactively in ansible playbook](https://forum.ansible.com/t/run-the-shell-script-interactively-in-ansible-playbook/30774)

<div class="topic-metadata">

**Author:** [@Sunil\_Kathait](https://forum.ansible.com/u/Sunil_Kathait)\
**Replies:** 1\
**Last updated:** [July 13, 2019, 1:15am UTC](https://forum.ansible.com/t/run-the-shell-script-interactively-in-ansible-playbook/30774 "2019-07-13T01:15:46Z")

</div>

I can run the script with the command line argument on the linux server it works fine. for e.g.: ./install.sh -n -I the above command is able to install the script on the server. When I am trying to do via ansible (v…

---

## [checking firewall form](https://forum.ansible.com/t/checking-firewall-form/30772)

<div class="topic-metadata">

**Author:** [@Annam\_Rafi1](https://forum.ansible.com/u/Annam_Rafi1)\
**Replies:** 2\
**Last updated:** [July 12, 2019, 6:04pm UTC](https://forum.ansible.com/t/checking-firewall-form/30772 "2019-07-12T18:04:59Z")

</div>

Hi, I want to check to see if the firewall is running, if its running I want to add the syslog port. If the firewall is not on, i would like to skip the step. I know i can use the when module but Im stumbling. Can you …

---

## [assert vs fail](https://forum.ansible.com/t/assert-vs-fail/30771)

<div class="topic-metadata">

**Author:** [@S\_C\_Rigler](https://forum.ansible.com/u/S_C_Rigler)\
**Replies:** 2\
**Last updated:** [July 12, 2019, 4:10pm UTC](https://forum.ansible.com/t/assert-vs-fail/30771 "2019-07-12T16:10:39Z")

</div>

Is there any advantage to using the assert module vs the fail module to bail out of a play if an expected condition isn’t met?

---

## [over riding the var defined in include var file is making all other variables undefined](https://forum.ansible.com/t/over-riding-the-var-defined-in-include-var-file-is-making-all-other-variables-undefined/30764)

<div class="topic-metadata">

**Author:** [@Shashank\_Dutt\_Jha](https://forum.ansible.com/u/Shashank_Dutt_Jha)\
**Replies:** 1\
**Last updated:** [July 12, 2019, 4:08pm UTC](https://forum.ansible.com/t/over-riding-the-var-defined-in-include-var-file-is-making-all-other-variables-undefined/30764 "2019-07-12T16:08:40Z")

</div>

I have included var file using var\_files: file It has a variable city. state among others Then I redefine the city variable in a json file and run the playbook --extra-vars “@a.json” Now when I access any variable …

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

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