# Latest

**URL:** https://forum.ansible.com/latest.md?page=484

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

**Page:** 485

---

## [win\_hostname module missing](https://forum.ansible.com/t/win-hostname-module-missing/29646)

<div class="topic-metadata">

**Author:** [@Sergey\_Vinogradov](https://forum.ansible.com/u/Sergey_Vinogradov)\
**Replies:** 1\
**Last updated:** [February 11, 2019, 11:18am UTC](https://forum.ansible.com/t/win-hostname-module-missing/29646 "2019-02-11T11:18:28Z")

</div>

Hi, I try to use examles for hostname change on windows machine, but it looks like the win\_hostname is missing https://docs.ansible.com/ansible/latest/modules/win\_hostname\_module.html#win-hostname-module Is this modul…

---

## [Email Module Failure on Ansible](https://forum.ansible.com/t/email-module-failure-on-ansible/29627)

<div class="topic-metadata">

**Author:** [@CK\_LZEM7](https://forum.ansible.com/u/CK_LZEM7)\
**Replies:** 4\
**Last updated:** [February 11, 2019, 7:35am UTC](https://forum.ansible.com/t/email-module-failure-on-ansible/29627 "2019-02-11T07:35:36Z")

</div>

I have set up an ansible tower using the following docker image \*\*ybalt/ansible-tower:\*\*\*\*latest\*\* After setting up I have upgraded the applications inside the container by \*\*apt-get upgrade\*\* After that following a…

---

## [jinja2 template - {% else %} not honored](https://forum.ansible.com/t/jinja2-template-else-not-honored/29645)

<div class="topic-metadata">

**Author:** [@Ashok1](https://forum.ansible.com/u/Ashok1)\
**Replies:** 1\
**Last updated:** [February 11, 2019, 7:20am UTC](https://forum.ansible.com/t/jinja2-template-else-not-honored/29645 "2019-02-11T07:20:26Z")

</div>

I have the following data structure: client\_groups: apache: ‘10.5.10.111’ ‘10.2.10.112’ ‘10.5.10.11’ mail: ‘1.2.3.4’ ‘5.6.7.8’ database: ‘10.9.8.7’ client\_destinations: apache: var: ‘$syslogtag’ contains:…

---

## [Ansible - Juniper Command output - SpanningTree](https://forum.ansible.com/t/ansible-juniper-command-output-spanningtree/29643)

<div class="topic-metadata">

**Author:** [@DM11](https://forum.ansible.com/u/DM11)\
**Replies:** 0\
**Last updated:** [February 9, 2019, 3:03pm UTC](https://forum.ansible.com/t/ansible-juniper-command-output-spanningtree/29643 "2019-02-09T15:03:11Z")

</div>

Can someone send me a YAML for collecting the output of the following Juniper EX command: user@switch\> show spanning-tree interface I am looking to see what ports are in a BLOCK BACKUP state ge-0/0/2.0 128:515 128:515…

---

## [Azure VM's behind Public LoadBalancer](https://forum.ansible.com/t/azure-vms-behind-public-loadbalancer/29509)

<div class="topic-metadata">

**Author:** [@Michael\_Cruz](https://forum.ansible.com/u/Michael_Cruz)\
**Replies:** 1\
**Last updated:** [February 8, 2019, 5:06pm UTC](https://forum.ansible.com/t/azure-vms-behind-public-loadbalancer/29509 "2019-02-08T17:06:45Z")

</div>

Hello All, I have Windows VM’s in Azure behind a Public LoadBalancer the VM’s are set up to use a Network Security Group to keep traffic limited to our office. My inventory.yml is set up by name:port where the last digi…

---

## [Import certificates to aws certificate manager](https://forum.ansible.com/t/import-certificates-to-aws-certificate-manager/29640)

<div class="topic-metadata">

**Author:** [@sridhara\_sri](https://forum.ansible.com/u/sridhara_sri)\
**Replies:** 2\
**Last updated:** [February 8, 2019, 5:05pm UTC](https://forum.ansible.com/t/import-certificates-to-aws-certificate-manager/29640 "2019-02-08T17:05:16Z")

</div>

Hi how to import certificate into aws certificate manager and get the arn number… am writing the sample ansible code to launch an ELB and add SSL to the launched ELB using arn… or need suggestion to enable SSL on newly…

---

## [Ansible Tower - Unable To Remove Host From Inventory During A Scoped Job Template Run](https://forum.ansible.com/t/ansible-tower-unable-to-remove-host-from-inventory-during-a-scoped-job-template-run/29632)

<div class="topic-metadata">

**Author:** [@mlturnbow1s](https://forum.ansible.com/u/mlturnbow1s)\
**Replies:** 2\
**Last updated:** [February 8, 2019, 2:08pm UTC](https://forum.ansible.com/t/ansible-tower-unable-to-remove-host-from-inventory-during-a-scoped-job-template-run/29632 "2019-02-08T14:08:40Z")

</div>

Rundown of issue: I have a test inventory. I have a job template that has limit as prompt on launch so that I can scope to a single node/host. I can run the job against a single host in the test inventory by using the …

---

## [varible hosts](https://forum.ansible.com/t/varible-hosts/29639)

<div class="topic-metadata">

**Author:** [@rupesh\_alasundkar](https://forum.ansible.com/u/rupesh_alasundkar)\
**Replies:** 0\
**Last updated:** [February 8, 2019, 10:39am UTC](https://forum.ansible.com/t/varible-hosts/29639 "2019-02-08T10:39:55Z")

</div>

\[1\] peer{{ peer\_number }}.peers and \[2\]peer{{ peer\_number }}.peers.cluster{{ cluster }} are my 2 hosts. NOTE: {{ peer\_number }} and {{ cluster }} is there any way i can use these both and can use in hosts: position??? m…

---

## [Ansible to adopt molecule and ansible-lint projects.](https://forum.ansible.com/t/ansible-to-adopt-molecule-and-ansible-lint-projects/28657)

<div class="topic-metadata">

**Author:** [@tima](https://forum.ansible.com/u/tima)\
**Replies:** 3\
**Last updated:** [February 8, 2019, 3:21am UTC](https://forum.ansible.com/t/ansible-to-adopt-molecule-and-ansible-lint-projects/28657 "2019-02-08T03:21:17Z")

</div>

To support the continued growth of Ansible we are expanding Ansible Galaxy to include new functionality and tooling. A goal of this expansion is to provide a minimum viable level of quality checks for content on Ansible …

---

## [This topic needs a title](https://forum.ansible.com/t/this-topic-needs-a-title/29638)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [February 8, 2019, 1:50am UTC](https://forum.ansible.com/t/this-topic-needs-a-title/29638 "2019-02-08T01:50:21Z")

</div>

Hi all- we're happy to announce that the general release of Ansible 2.7.7 and Ansible 2.6.13 are now available! How do you get it?

---

## [Proper use of linear module (not linear strategy)](https://forum.ansible.com/t/proper-use-of-linear-module-not-linear-strategy/29637)

<div class="topic-metadata">

**Author:** [@John\_Nelson](https://forum.ansible.com/u/John_Nelson)\
**Replies:** 2\
**Last updated:** [February 7, 2019, 6:30pm UTC](https://forum.ansible.com/t/proper-use-of-linear-module-not-linear-strategy/29637 "2019-02-07T18:30:08Z")

</div>

The documentation for the ‘linear’ module is incomplete. It has no examples and no real explanation of the process flow. The explanation that it has does not make sense to me. Can someone give me a good example of using…

---

## [Ansible and PCI DSS Compliance](https://forum.ansible.com/t/ansible-and-pci-dss-compliance/22932)

<div class="topic-metadata">

**Author:** [@Simon\_Young](https://forum.ansible.com/u/Simon_Young)\
**Replies:** 4\
**Last updated:** [February 7, 2019, 11:33am UTC](https://forum.ansible.com/t/ansible-and-pci-dss-compliance/22932 "2019-02-07T11:33:24Z")

</div>

Hi, We have a Cardholder Data Environment which is in scope for PCI compliance, and we intend to manage the environment using Ansible. I’ve read a few articles which suggest that using Ansible is a Good Thing for PCI c…

---

## [MIT kerberos management module](https://forum.ansible.com/t/mit-kerberos-management-module/29636)

<div class="topic-metadata">

**Author:** [@Fraser\_Campbell](https://forum.ansible.com/u/Fraser_Campbell)\
**Replies:** 0\
**Last updated:** [February 7, 2019, 1:13am UTC](https://forum.ansible.com/t/mit-kerberos-management-module/29636 "2019-02-07T01:13:41Z")

</div>

Is anyone aware of a module for ongoing management of MIT kerberos realms? We would like basic operations such as generating keytabs and creating principals. So far I’m only finding modules for setting up the basic MIT …

---

## [Ansible with k8s-module example](https://forum.ansible.com/t/ansible-with-k8s-module-example/29635)

<div class="topic-metadata">

**Author:** [@Kylix\_Kumar](https://forum.ansible.com/u/Kylix_Kumar)\
**Replies:** 3\
**Last updated:** [February 7, 2019, 1:04am UTC](https://forum.ansible.com/t/ansible-with-k8s-module-example/29635 "2019-02-07T01:04:45Z")

</div>

Hi All, Ansible k8s module ( https://docs.ansible.com/ansible/latest/modules/k8s\_module.html#k8s-module ) have many environments like : api\_key ---- K8S\_AUTH\_API\_KEY environment variable. cert\_file — K8S\_AUTH\_CERT\_FIL…

---

## [Ansible but with Python instead of YAML](https://forum.ansible.com/t/ansible-but-with-python-instead-of-yaml/29590)

<div class="topic-metadata">

**Author:** [@Thomas\_Guttler](https://forum.ansible.com/u/Thomas_Guttler)\
**Replies:** 9\
**Last updated:** [February 6, 2019, 8:58pm UTC](https://forum.ansible.com/t/ansible-but-with-python-instead-of-yaml/29590 "2019-02-06T20:58:59Z")

</div>

I am using a different config management tool up to now (not ansible). I think about switching to ansible. But I don’t like YAML. I like Python. Is it doable to use Python syntax instead of YAML? Is it feasible to d…

---

## [authorized\_keys module](https://forum.ansible.com/t/authorized-keys-module/29634)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 2\
**Last updated:** [February 6, 2019, 7:58pm UTC](https://forum.ansible.com/t/authorized-keys-module/29634 "2019-02-06T19:58:24Z")

</div>

Hi all, I’m trying to add pubkeys to several users and I’m getting an error message. Here’s the playbook:

---

## [Ansible syntax check fail in gitlab-ci](https://forum.ansible.com/t/ansible-syntax-check-fail-in-gitlab-ci/29633)

<div class="topic-metadata">

**Author:** [@Remi\_Desgrange](https://forum.ansible.com/u/Remi_Desgrange)\
**Replies:** 0\
**Last updated:** [February 6, 2019, 4:50pm UTC](https://forum.ansible.com/t/ansible-syntax-check-fail-in-gitlab-ci/29633 "2019-02-06T16:50:49Z")

</div>

Hi, I have a working playbook. It works on my machine, but also in CI. But running “ansible-playbook -i hosts.yml site.yml --syntax-check” in a gitlab-ci with a docker container (image: williamyeh/ansible:ubuntu16.04) d…

---

## [Unable to run 'expect' module](https://forum.ansible.com/t/unable-to-run-expect-module/29630)

<div class="topic-metadata">

**Author:** [@Alain\_Desilets](https://forum.ansible.com/u/Alain_Desilets)\
**Replies:** 5\
**Last updated:** [February 6, 2019, 3:58pm UTC](https://forum.ansible.com/t/unable-to-run-expect-module/29630 "2019-02-06T15:58:40Z")

</div>

I am trying to run a playbook (see end of the post), which invokes the ‘expect’ module. But when I run it, I get error: \` TASK \[Run anaconda installation script\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[127.0…

---

## [Learning Ansible, tutorials and trainnings](https://forum.ansible.com/t/learning-ansible-tutorials-and-trainnings/29621)

<div class="topic-metadata">

**Author:** [@Krisztian\_Toth](https://forum.ansible.com/u/Krisztian_Toth)\
**Replies:** 3\
**Last updated:** [February 6, 2019, 3:37pm UTC](https://forum.ansible.com/t/learning-ansible-tutorials-and-trainnings/29621 "2019-02-06T15:37:49Z")

</div>

Hi everyone, I was wondering if you could recommend some free or paid training in form of a lab or video tutorial to learn using Ansible. Additionally, the same with vCenter, ESXi configuration with Ansible. Thanks, …

---

## [Getting region on localhost](https://forum.ansible.com/t/getting-region-on-localhost/29631)

<div class="topic-metadata">

**Author:** [@Wes\_Tibbitts](https://forum.ansible.com/u/Wes_Tibbitts)\
**Replies:** 0\
**Last updated:** [February 6, 2019, 3:09pm UTC](https://forum.ansible.com/t/getting-region-on-localhost/29631 "2019-02-06T15:09:51Z")

</div>

I’m running a small playbook that runs commands to create AWS infrastructure from the localhost. I want to use the localhosts region as the default, but using instance metadata to get the AZ and then parsing the region j…

---

## [Delete hosts from Dynamic Inventory in AWX](https://forum.ansible.com/t/delete-hosts-from-dynamic-inventory-in-awx/29628)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 1\
**Last updated:** [February 6, 2019, 3:00pm UTC](https://forum.ansible.com/t/delete-hosts-from-dynamic-inventory-in-awx/29628 "2019-02-06T15:00:29Z")

</div>

Can someone please suggest if there is a way to delete specific hosts after the Dynamic Inventory for VMWare completes updating the list of hosts? I want to create a separate job template where the playbook will target …

---

## [hii, i got this error while executing the playbook for installing a package using variable module.](https://forum.ansible.com/t/hii-i-got-this-error-while-executing-the-playbook-for-installing-a-package-using-variable-module/29476)

<div class="topic-metadata">

**Author:** [@haripte209](https://forum.ansible.com/u/haripte209)\
**Replies:** 1\
**Last updated:** [February 6, 2019, 1:44pm UTC](https://forum.ansible.com/t/hii-i-got-this-error-while-executing-the-playbook-for-installing-a-package-using-variable-module/29476 "2019-02-06T13:44:43Z")

</div>

TASK \[install a package\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[172.31.37.218\]: FAILED! =\> {“changed”: false, “msg”: “Failure talking…

---

## [Generate resgiter from dict var](https://forum.ansible.com/t/generate-resgiter-from-dict-var/29629)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 0\
**Last updated:** [February 6, 2019, 11:53am UTC](https://forum.ansible.com/t/generate-resgiter-from-dict-var/29629 "2019-02-06T11:53:58Z")

</div>

Hi , I need create register from variable. My variable is: my\_rules: name: ‘AllowSSH’ protocol: Tcp destination\_port\_range: 22 access: Allow priority: 100 direction: Inbound name: ‘AllowHTTPS’ protocol: Tcp d…

---

## [Email Module Failure on Ansible](https://forum.ansible.com/t/email-module-failure-on-ansible/29626)

<div class="topic-metadata">

**Author:** [@CK\_LZEM7](https://forum.ansible.com/u/CK_LZEM7)\
**Replies:** 0\
**Last updated:** [February 6, 2019, 4:33am UTC](https://forum.ansible.com/t/email-module-failure-on-ansible/29626 "2019-02-06T04:33:36Z")

</div>

I have set up an ansible tower using the following docker image \*\*ybalt/ansible-tower:\*\*\*\*latest\*\* After setting up I have upgraded the applications inside the container by \*\*apt-get upgrade\*\* After that following a…

---

## [Create new Inventory --- add extra vars by default](https://forum.ansible.com/t/create-new-inventory-add-extra-vars-by-default/29625)

<div class="topic-metadata">

**Author:** [@Sindhuja\_Koneru](https://forum.ansible.com/u/Sindhuja_Koneru)\
**Replies:** 3\
**Last updated:** [February 6, 2019, 2:16am UTC](https://forum.ansible.com/t/create-new-inventory-add-extra-vars-by-default/29625 "2019-02-06T02:16:37Z")

</div>

Hi, Is below possible in Ansible, please guide? When creating a new Ansible inventory, is it possible to make any config settings in tower such that it auto populates EXTRA VARS. Idea is that user should not update th…

---

## [how to invoke an ansible module which accepts a variable set of parameters](https://forum.ansible.com/t/how-to-invoke-an-ansible-module-which-accepts-a-variable-set-of-parameters/29624)

<div class="topic-metadata">

**Author:** [@Chris7444](https://forum.ansible.com/u/Chris7444)\
**Replies:** 0\
**Last updated:** [February 5, 2019, 9:56pm UTC](https://forum.ansible.com/t/how-to-invoke-an-ansible-module-which-accepts-a-variable-set-of-parameters/29624 "2019-02-05T21:56:35Z")

</div>

Hi I want to invoke a module wich accepts an attribute osCustomAttributes which takes a variable set of properties (sorry if the wording is not the correct one for yaml) Example below. All the names under osCustomAttri…

---

## [Ansible-pull for windows](https://forum.ansible.com/t/ansible-pull-for-windows/29623)

<div class="topic-metadata">

**Author:** [@Subhi\_Andrews](https://forum.ansible.com/u/Subhi_Andrews)\
**Replies:** 0\
**Last updated:** [February 5, 2019, 9:56pm UTC](https://forum.ansible.com/t/ansible-pull-for-windows/29623 "2019-02-05T21:56:29Z")

</div>

Are there any plans to bring ansible-pull to windows? Thanks, Subhi.

---

## [i really dont know how to fix this error](https://forum.ansible.com/t/i-really-dont-know-how-to-fix-this-error/29622)

<div class="topic-metadata">

**Author:** [@Luis\_Renato\_Gazolla](https://forum.ansible.com/u/Luis_Renato_Gazolla)\
**Replies:** 1\
**Last updated:** [February 5, 2019, 7:45pm UTC](https://forum.ansible.com/t/i-really-dont-know-how-to-fix-this-error/29622 "2019-02-05T19:45:06Z")

</div>

i got this error when i try to set permissions in a folders in many servers using ansible "FAILED! =\> {“changed”: false, “module\_stderr”: “Shared connection to 10.0.0.12 closed.\\r\\n”, “module\_stdout”: “Traceback (most r…

---

## [ansible hosts and user](https://forum.ansible.com/t/ansible-hosts-and-user/29619)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 1\
**Last updated:** [February 5, 2019, 1:51pm UTC](https://forum.ansible.com/t/ansible-hosts-and-user/29619 "2019-02-05T13:51:28Z")

</div>

Hy, How to make that when one executes a playbook with a host parameter, ansible only recovers part of the host name as user. Example: ansible-playbook playbook.yml -l “hostuser1” i want ansible to dynamically use us…

---

## [Ansible service not work](https://forum.ansible.com/t/ansible-service-not-work/29611)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 3\
**Last updated:** [February 5, 2019, 1:51pm UTC](https://forum.ansible.com/t/ansible-service-not-work/29611 "2019-02-05T13:51:02Z")

</div>

Hy, I want start one service with next command in ansible : - name: Start service httpd, if not started service: name: httpd state: started This task not work even with line command become: yes ! on the othe…

[Previous page](https://forum.ansible.com/latest.md?page=483)

[Next page](https://forum.ansible.com/latest.md?page=485)
