# Ansible Project

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

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

**Page:** 302

---

## [How to create a list from a hash](https://forum.ansible.com/t/how-to-create-a-list-from-a-hash/25874)

<div class="topic-metadata">

**Author:** [@Abey\_Thomas](https://forum.ansible.com/u/Abey_Thomas)\
**Replies:** 2\
**Last updated:** [November 6, 2017, 1:28pm UTC](https://forum.ansible.com/t/how-to-create-a-list-from-a-hash/25874 "2017-11-06T13:28:47Z")

</div>

Hi, I have got this hash ok: \[localhost\] =\> { “msg”: { “123”: “hostname1”, “345”: “hostname2” } } I would like to create a new list from the above hash which contains only the values . hostname1 hostname2 When…

---

## [Ansible Tower Manual Scripts](https://forum.ansible.com/t/ansible-tower-manual-scripts/25938)

<div class="topic-metadata">

**Author:** [@asadrajput.pk](https://forum.ansible.com/u/asadrajput.pk)\
**Replies:** 0\
**Last updated:** [November 6, 2017, 1:18pm UTC](https://forum.ansible.com/t/ansible-tower-manual-scripts/25938 "2017-11-06T13:18:36Z")

</div>

Hey, I wana ask question that. I have created some scripts into the /var/lib/awx/projects this is the manual directory of ansible tower and the scripts are for REST API CALL for openstack cloud to create instances,group,…

---

## [ec2\_group\_facts not using my fact](https://forum.ansible.com/t/ec2-group-facts-not-using-my-fact/25937)

<div class="topic-metadata">

**Author:** [@jayeola](https://forum.ansible.com/u/jayeola)\
**Replies:** 0\
**Last updated:** [November 6, 2017, 12:19pm UTC](https://forum.ansible.com/t/ec2-group-facts-not-using-my-fact/25937 "2017-11-06T12:19:37Z")

</div>

Hey chaps, Is there any reason why “ec2\_group\_facts” is not using my fact? Can ec2\_group\_facts use defined facts? name: Get vpc details ec2\_vpc\_net\_facts: region: “{{new\_region}}” filters: “tag:Name”: “blah\*” re…

---

## [Galaxy web site maintenance 6-Nov-2017 at 6:00 AM Eastern](https://forum.ansible.com/t/galaxy-web-site-maintenance-6-nov-2017-at-6-00-am-eastern/25919)

<div class="topic-metadata">

**Author:** [@chousekn](https://forum.ansible.com/u/chousekn)\
**Replies:** 1\
**Last updated:** [November 6, 2017, 11:46am UTC](https://forum.ansible.com/t/galaxy-web-site-maintenance-6-nov-2017-at-6-00-am-eastern/25919 "2017-11-06T11:46:51Z")

</div>

We’ll be doing some minor maintenance to the Galaxy web site on 6-Nov-2017 between 6:00 AM and 7:00 AM Eastern. Be aware that during this window it is possible that role imports and downloads may be interrupted. We’ll …

---

## [Unable to associate the hosts to a group when using API calls in ansible playbook](https://forum.ansible.com/t/unable-to-associate-the-hosts-to-a-group-when-using-api-calls-in-ansible-playbook/25935)

<div class="topic-metadata">

**Author:** [@Alok\_Patra](https://forum.ansible.com/u/Alok_Patra)\
**Replies:** 0\
**Last updated:** [November 6, 2017, 8:55am UTC](https://forum.ansible.com/t/unable-to-associate-the-hosts-to-a-group-when-using-api-calls-in-ansible-playbook/25935 "2017-11-06T08:55:54Z")

</div>

I am able to create inventories, groups and hosts. However I am unable to associate the hosts to a group. http://docs.ansible.com/ansible-tower/latest/html/towerapi/host\_list.html The ansible documentation for creating…

---

## [Unable to terminate EC2 instance.](https://forum.ansible.com/t/unable-to-terminate-ec2-instance/25934)

<div class="topic-metadata">

**Author:** [@PCHEL](https://forum.ansible.com/u/PCHEL)\
**Replies:** 0\
**Last updated:** [November 6, 2017, 6:34am UTC](https://forum.ansible.com/t/unable-to-terminate-ec2-instance/25934 "2017-11-06T06:34:10Z")

</div>

Hi I am new to Ansible. Can anyone please help me with my script. I get the error when I run the below script. I am able to create the instance however unable to terminate. An exception occurred during task execution. …

---

## [Listing alias record from route53](https://forum.ansible.com/t/listing-alias-record-from-route53/25931)

<div class="topic-metadata">

**Author:** [@Suresh\_Prajapati](https://forum.ansible.com/u/Suresh_Prajapati)\
**Replies:** 0\
**Last updated:** [November 6, 2017, 3:54am UTC](https://forum.ansible.com/t/listing-alias-record-from-route53/25931 "2017-11-06T03:54:41Z")

</div>

Hi, I am writing a route53 module for internal usage. For that, I want to list the alias records from route53. \` name: retrieve details for lb.example.io strategy: debug hosts: localhost tasks: route53: state: …

---

## [pytest  error message](https://forum.ansible.com/t/pytest-error-message/25898)

<div class="topic-metadata">

**Author:** [@Jae\_Kim](https://forum.ansible.com/u/Jae_Kim)\
**Replies:** 3\
**Last updated:** [November 6, 2017, 2:20am UTC](https://forum.ansible.com/t/pytest-error-message/25898 "2017-11-06T02:20:29Z")

</div>

Hi When I run the following command pytest -r a -fulltrace --color yest my\_new\_test\_module.py I get the following error message. ============================= test session starts ============================== platf…

---

## [Ansible Unit Test installation error](https://forum.ansible.com/t/ansible-unit-test-installation-error/25896)

<div class="topic-metadata">

**Author:** [@Jae\_Kim](https://forum.ansible.com/u/Jae_Kim)\
**Replies:** 1\
**Last updated:** [November 6, 2017, 12:50am UTC](https://forum.ansible.com/t/ansible-unit-test-installation-error/25896 "2017-11-06T00:50:18Z")

</div>

When I run the following command pip3 install -r ./test/runner/requirements/units.txt The softwares get installed but in the setup steps I get the following error failed with error code 1 in /tmp/pip-build- /pycrypto …

---

## [ec2\_lc issue - only one volume is being created??](https://forum.ansible.com/t/ec2-lc-issue-only-one-volume-is-being-created/25928)

<div class="topic-metadata">

**Author:** [@Onallion](https://forum.ansible.com/u/Onallion)\
**Replies:** 0\
**Last updated:** [November 5, 2017, 11:40am UTC](https://forum.ansible.com/t/ec2-lc-issue-only-one-volume-is-being-created/25928 "2017-11-05T11:40:48Z")

</div>

Hi guys, Ansible 2.4 I am attempting to use the ec2\_lc module to create a launch configuration. All is working great except for the volumes, only one volume (out of 2) is being created, and for some reason it is also …

---

## [Loading variables into plabook tasks failing](https://forum.ansible.com/t/loading-variables-into-plabook-tasks-failing/25927)

<div class="topic-metadata">

**Author:** [@abdul\_sattar\_Shaikh](https://forum.ansible.com/u/abdul_sattar_Shaikh)\
**Replies:** 4\
**Last updated:** [November 5, 2017, 9:10am UTC](https://forum.ansible.com/t/loading-variables-into-plabook-tasks-failing/25927 "2017-11-05T09:10:50Z")

</div>

Hi All, I am having below playbooks, I intent to include variables and I have got below message as “OK” and “changed” but file not copied over. please review and advise. Main playbook: cat fetchfile.yml

---

## [InsecureRequestWarning: Unverified HTTPS](https://forum.ansible.com/t/insecurerequestwarning-unverified-https/25388)

<div class="topic-metadata">

**Author:** [@barfingcat11](https://forum.ansible.com/u/barfingcat11)\
**Replies:** 3\
**Last updated:** [November 4, 2017, 8:56pm UTC](https://forum.ansible.com/t/insecurerequestwarning-unverified-https/25388 "2017-11-04T20:56:57Z")

</div>

Despite setting cert validation as ignore and false, I still get the warning message. Any ideas? thanks Windows OS: Windows10 64bit 1703 Linux Controller: RHEL 7.4 group\_vars/windows.yml ansible\_user: Administrator a…

---

## [how for variable in groupvar in ansible](https://forum.ansible.com/t/how-for-variable-in-groupvar-in-ansible/25924)

<div class="topic-metadata">

**Author:** [@Ly\_Thanh](https://forum.ansible.com/u/Ly_Thanh)\
**Replies:** 0\
**Last updated:** [November 4, 2017, 1:58pm UTC](https://forum.ansible.com/t/how-for-variable-in-groupvar-in-ansible/25924 "2017-11-04T13:58:00Z")

</div>

Hi Guys, i have file dev in groupvar as below : container: container1: name1 container2: name2 container3: name3 =\> how i can for it in fluentd ?

---

## [How to use a variable inside of a regex string? (search filter)](https://forum.ansible.com/t/how-to-use-a-variable-inside-of-a-regex-string-search-filter/25920)

<div class="topic-metadata">

**Author:** [@coolcps](https://forum.ansible.com/u/coolcps)\
**Replies:** 2\
**Last updated:** [November 4, 2017, 1:23am UTC](https://forum.ansible.com/t/how-to-use-a-variable-inside-of-a-regex-string-search-filter/25920 "2017-11-04T01:23:35Z")

</div>

It looks like this is working, but I get an error. Does anyone know the proper way to do this? Thanks! - name: configure hostname ios\_config: commands: - ip domain-name {{ domain\_name }} when: not ansible\_…

---

## [Question about partial matching in Ansible 2.2](https://forum.ansible.com/t/question-about-partial-matching-in-ansible-2-2/25875)

<div class="topic-metadata">

**Author:** [@Dave](https://forum.ansible.com/u/Dave)\
**Replies:** 1\
**Last updated:** [November 4, 2017, 1:12am UTC](https://forum.ansible.com/t/question-about-partial-matching-in-ansible-2-2/25875 "2017-11-04T01:12:48Z")

</div>

Is it possible to test for conditions based on partial matches? I’m trying to test for variables that match a specific /24 range and I have the following so far: - name: If the IP address is destined for the .1 subnet..…

---

## [using include](https://forum.ansible.com/t/using-include/25923)

<div class="topic-metadata">

**Author:** [@Laks](https://forum.ansible.com/u/Laks)\
**Replies:** 2\
**Last updated:** [November 3, 2017, 9:34pm UTC](https://forum.ansible.com/t/using-include/25923 "2017-11-03T21:34:46Z")

</div>

Using include option I called another playbook based on the when condition. when executed, i see called playbook executing but skipping the tasks from it. Please help. Thanks, Laks

---

## [F5 BigIP V11 & Ansible 2.4](https://forum.ansible.com/t/f5-bigip-v11-ansible-2-4/25917)

<div class="topic-metadata">

**Author:** [@remy.pouchain](https://forum.ansible.com/u/remy.pouchain)\
**Replies:** 0\
**Last updated:** [November 3, 2017, 4:39pm UTC](https://forum.ansible.com/t/f5-bigip-v11-ansible-2-4/25917 "2017-11-03T16:39:33Z")

</div>

Hi, It seems now impossible to use some module on F5 BigIP since they updated f5-common-python. Now only v12 or greater are supported. API Rest reply 404 because credential are not sent to the API to retrieve a token… …

---

## [useradd with ansible](https://forum.ansible.com/t/useradd-with-ansible/25914)

<div class="topic-metadata">

**Author:** [@Mustafa\_Gokhan\_KURT](https://forum.ansible.com/u/Mustafa_Gokhan_KURT)\
**Replies:** 1\
**Last updated:** [November 3, 2017, 4:37pm UTC](https://forum.ansible.com/t/useradd-with-ansible/25914 "2017-11-03T16:37:14Z")

</div>

Hello, I need ansible playbook to create new user on remote server. Remote server blocked direct root login so I must login first application user and later I must run “useradd” command with sudo. I need playbook.yml a…

---

## [use fetch module with wild card or best way to grab different name file from several hosts](https://forum.ansible.com/t/use-fetch-module-with-wild-card-or-best-way-to-grab-different-name-file-from-several-hosts/25903)

<div class="topic-metadata">

**Author:** [@Kent\_Younge](https://forum.ansible.com/u/Kent_Younge)\
**Replies:** 5\
**Last updated:** [November 3, 2017, 4:10pm UTC](https://forum.ansible.com/t/use-fetch-module-with-wild-card-or-best-way-to-grab-different-name-file-from-several-hosts/25903 "2017-11-03T16:10:03Z")

</div>

Hello, I have created a log file using ansible an have named the log file with the host name. I need to fetch that file from all my hosts and put it in a directory on the control server. However, it runs fine but does n…

---

## [How pass an array of dictionaries to my custom module elegantly?](https://forum.ansible.com/t/how-pass-an-array-of-dictionaries-to-my-custom-module-elegantly/25906)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 1\
**Last updated:** [November 3, 2017, 1:24pm UTC](https://forum.ansible.com/t/how-pass-an-array-of-dictionaries-to-my-custom-module-elegantly/25906 "2017-11-03T13:24:02Z")

</div>

I’m not trying to re-invent the “replace” module that Ansible has. I’m trying to write a (my FIRST) custom module to encapsulate the repetitive Linux source build process, namely, run ./configure $CONF\_OPTS run make r…

---

## [How to control \`ignore\_errors\` with a variable](https://forum.ansible.com/t/how-to-control-ignore-errors-with-a-variable/25894)

<div class="topic-metadata">

**Author:** [@Gunther\_Grill](https://forum.ansible.com/u/Gunther_Grill)\
**Replies:** 4\
**Last updated:** [November 3, 2017, 1:20pm UTC](https://forum.ansible.com/t/how-to-control-ignore-errors-with-a-variable/25894 "2017-11-03T13:20:14Z")

</div>

Hi, I already opened an issue for my question but I was advised to come here first. The detailed description is available under https://github.com/ansible/ansible/issues/32384 To sum it up: I cannot manage to make th…

---

## [Using import\_playbook and environment.](https://forum.ansible.com/t/using-import-playbook-and-environment/25912)

<div class="topic-metadata">

**Author:** [@Alex\_Walender](https://forum.ansible.com/u/Alex_Walender)\
**Replies:** 0\
**Last updated:** [November 3, 2017, 12:48pm UTC](https://forum.ansible.com/t/using-import-playbook-and-environment/25912 "2017-11-03T12:48:24Z")

</div>

Imagine following situation: I have a big main.yaml playbook file, where I include roles and import many different other playbooks. I am behind a corporate proxy which I have to include in the main playbook with the en…

---

## [RHEL VM creation from iso](https://forum.ansible.com/t/rhel-vm-creation-from-iso/25911)

<div class="topic-metadata">

**Author:** [@Alastair\_Rogers](https://forum.ansible.com/u/Alastair_Rogers)\
**Replies:** 2\
**Last updated:** [November 3, 2017, 11:56am UTC](https://forum.ansible.com/t/rhel-vm-creation-from-iso/25911 "2017-11-03T11:56:48Z")

</div>

I am currently looking at utilising ansible for our VM creation and initial OS setup. We have VMware vCenter hosting our VM’s and I am comfortable with VM creation with the ansible module vmware\_guest. The difficulty I …

---

## [tags within included\_tasks do not work?](https://forum.ansible.com/t/tags-within-included-tasks-do-not-work/25910)

<div class="topic-metadata">

**Author:** [@coolcps](https://forum.ansible.com/u/coolcps)\
**Replies:** 1\
**Last updated:** [November 3, 2017, 3:59am UTC](https://forum.ansible.com/t/tags-within-included-tasks-do-not-work/25910 "2017-11-03T03:59:54Z")

</div>

In a playbook I have a file of tasks included, like so: - include\_tasks: uplinks.yml And within that task file I have a task:

---

## [Ansible expect module error](https://forum.ansible.com/t/ansible-expect-module-error/25907)

<div class="topic-metadata">

**Author:** [@Richmond\_Fiko](https://forum.ansible.com/u/Richmond_Fiko)\
**Replies:** 0\
**Last updated:** [November 2, 2017, 8:10pm UTC](https://forum.ansible.com/t/ansible-expect-module-error/25907 "2017-11-02T20:10:52Z")

</div>

Hello, I use Ansible 2.2.1.0 I try to use ansible expect module with a command: expect: command: set password of database responses: Admin Password for db\_name: 'admin' A…

---

## [Fetch remote files, add them to local file](https://forum.ansible.com/t/fetch-remote-files-add-them-to-local-file/25904)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 1\
**Last updated:** [November 2, 2017, 7:55pm UTC](https://forum.ansible.com/t/fetch-remote-files-add-them-to-local-file/25904 "2017-11-02T19:55:10Z")

</div>

I have the following playbook but have 2 problems: The contents of the file are garbled. Why is that? How can I clear it up? How can I just grab the contents of the file only? {{file\_contents.results.content}} complain…

---

## [command module with squiggly braces not working.](https://forum.ansible.com/t/command-module-with-squiggly-braces-not-working/25905)

<div class="topic-metadata">

**Author:** [@DG11](https://forum.ansible.com/u/DG11)\
**Replies:** 1\
**Last updated:** [November 2, 2017, 6:52pm UTC](https://forum.ansible.com/t/command-module-with-squiggly-braces-not-working/25905 "2017-11-02T18:52:06Z")

</div>

ec2\_group (as of Ansible 2.4) doesn’t support usage of pl-xxxxx (prefix lists) typically employed by VPC endpoints. So I went down the rabbit hole of doing this via a command module. The command works on the prompt. How…

---

## [Ansible (Problem install PHP)](https://forum.ansible.com/t/ansible-problem-install-php/25891)

<div class="topic-metadata">

**Author:** [@Artur001](https://forum.ansible.com/u/Artur001)\
**Replies:** 8\
**Last updated:** [November 2, 2017, 5:12pm UTC](https://forum.ansible.com/t/ansible-problem-install-php/25891 "2017-11-02T17:12:36Z")

</div>

My main.yml \` Введи- name: add php ppa apt\_repository: repo=‘ppa:ondrej/php’ state=present name: update apt cache apt: update\_cache=yes name: install php requirements for joomla apt: name=php{{ php.version }}-…

---

## [Unable to wildcard a template destination parameter](https://forum.ansible.com/t/unable-to-wildcard-a-template-destination-parameter/25901)

<div class="topic-metadata">

**Author:** [@Tim\_Davidson](https://forum.ansible.com/u/Tim_Davidson)\
**Replies:** 2\
**Last updated:** [November 2, 2017, 4:53pm UTC](https://forum.ansible.com/t/unable-to-wildcard-a-template-destination-parameter/25901 "2017-11-02T16:53:09Z")

</div>

Hello, I’m trying to read some .csv files, then create config files for each of the .csv files, based on a template. Reading the files is not a problem. However, I can’t seem to get the destination parameter to work. I …

---

## [Ansible, Gitlab, Chocolatey & Telegraf - Master Playbook / Windows setup](https://forum.ansible.com/t/ansible-gitlab-chocolatey-telegraf-master-playbook-windows-setup/25895)

<div class="topic-metadata">

**Author:** [@Adam\_Brush](https://forum.ansible.com/u/Adam_Brush)\
**Replies:** 0\
**Last updated:** [November 2, 2017, 9:25am UTC](https://forum.ansible.com/t/ansible-gitlab-chocolatey-telegraf-master-playbook-windows-setup/25895 "2017-11-02T09:25:47Z")

</div>

Hi, I’ve done another noobie guide for a basic Master Playbook setup for a mainly windows based setup. It details: Creating a folder structure (C:\\Ansible\\Repo) Pausinh Download some files from out gitlab using win\_g…

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

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