# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=313

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

**Page:** 314

---

## [\[WARNING\]: Could not match supplied host pattern ansible 2.7.6](https://forum.ansible.com/t/warning-could-not-match-supplied-host-pattern-ansible-2-7-6/29653)

<div class="topic-metadata">

**Author:** [@aidewuado](https://forum.ansible.com/u/aidewuado)\
**Replies:** 2\
**Last updated:** [February 11, 2019, 7:03pm UTC](https://forum.ansible.com/t/warning-could-not-match-supplied-host-pattern-ansible-2-7-6/29653 "2019-02-11T19:03:56Z")

</div>

Hello community, I am trying to generate a playbook using roles, but at the moment of executing the playbook it does not recognize the inventory hosts and does not execute the ROL My structure: my inventorie .yml: …

---

## [ansible service not work but command work](https://forum.ansible.com/t/ansible-service-not-work-but-command-work/29641)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 9\
**Last updated:** [February 11, 2019, 5:09pm UTC](https://forum.ansible.com/t/ansible-service-not-work-but-command-work/29641 "2019-02-11T17:09:27Z")

</div>

Hi, When i use service in ansible same this task : name: “stop nginx” service: name: nginx state: stopped Same with “become: yes” and “pattern: my\_pattern\_file” but with line “command: sudo systemctl stop nginx” …

---

## [Show all services target host](https://forum.ansible.com/t/show-all-services-target-host/29647)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 4\
**Last updated:** [February 11, 2019, 4:26pm UTC](https://forum.ansible.com/t/show-all-services-target-host/29647 "2019-02-11T16:26:46Z")

</div>

Hi, In localhost, i can write next command in prompt : ansible localhost -m service -a “name=nginx state=started” But how show all services in target host exemple : ansible target\_host -m service -a all it’s not wor…

---

## [AWX 3.0.1](https://forum.ansible.com/t/awx-3-0-1/29649)

<div class="topic-metadata">

**Author:** [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Replies:** 0\
**Last updated:** [February 11, 2019, 3:28pm UTC](https://forum.ansible.com/t/awx-3-0-1/29649 "2019-02-11T15:28:33Z")

</div>

Hello everyone. Today we are happy to announce the release of AWX 3.0.1. Below are some highlights of what are included in this release: Support arbitrary become plugins Exposed execution node & virtual env path to the…

---

## [Creating API endpoints with AWX](https://forum.ansible.com/t/creating-api-endpoints-with-awx/27668)

<div class="topic-metadata">

**Author:** [@dufusk](https://forum.ansible.com/u/dufusk)\
**Replies:** 5\
**Last updated:** [February 11, 2019, 2:16pm UTC](https://forum.ansible.com/t/creating-api-endpoints-with-awx/27668 "2019-02-11T14:16:44Z")

</div>

I’m posting this here because searching for this topic on google always returns the Ansible Tower API reference guide, and that’s not what i’m looking for. We are using AWX for quite a few projects, one of them being au…

---

## [groups\_vars not working \[inventory\]](https://forum.ansible.com/t/groups-vars-not-working-inventory/29284)

<div class="topic-metadata">

**Author:** [@aidewuado](https://forum.ansible.com/u/aidewuado)\
**Replies:** 7\
**Last updated:** [February 11, 2019, 1:22pm UTC](https://forum.ansible.com/t/groups-vars-not-working-inventory/29284 "2019-02-11T13:22:13Z")

</div>

Hello, im trying to using a groups vars out side of inventory, but not working my file struct: work this form: eco-sql-dev.ini \` \[win-mssql\] lab-sql1.DOMAIN.cl \[win-mssql:vars\] ansible\_user=svc-ansible-dev@DO…

---

## [using groups\_vars in INVENTORY](https://forum.ansible.com/t/using-groups-vars-in-inventory/29321)

<div class="topic-metadata">

**Author:** [@aidewuado](https://forum.ansible.com/u/aidewuado)\
**Replies:** 6\
**Last updated:** [February 11, 2019, 1:20pm UTC](https://forum.ansible.com/t/using-groups-vars-in-inventory/29321 "2019-02-11T13:20:16Z")

</div>

Hello comunity I’m trying to set up “group\_vars” in inventory, but for some reason it does not work. I’ve tried with .ini and .yml files, in both I get the same error: \` ERROR! failed to combine variables, expected d…

---

## [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…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=312)

[Next page](https://forum.ansible.com/c/archives/31.md?page=314)
