# Archives

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

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

**Page:** 551

---

## [Beginning Adventures with Docker Module](https://forum.ansible.com/t/beginning-adventures-with-docker-module/22662)

<div class="topic-metadata">

**Author:** [@Joaquin\_Menchaca](https://forum.ansible.com/u/Joaquin_Menchaca)\
**Replies:** 0\
**Last updated:** [September 28, 2016, 2:00am UTC](https://forum.ansible.com/t/beginning-adventures-with-docker-module/22662 "2016-09-28T02:00:26Z")

</div>

I created a vagrant environment to rapidly test code, and a custom inventory.py. But alas, hosts: dockerexp.dev doesn’t work, so screw it, hosts: all. Now I have functional environment, time to do some docker stuff, try…

---

## [Question: with\_sequence and registered vars when creating ec2 instance](https://forum.ansible.com/t/question-with-sequence-and-registered-vars-when-creating-ec2-instance/22661)

<div class="topic-metadata">

**Author:** [@Christopher\_Stobie](https://forum.ansible.com/u/Christopher_Stobie)\
**Replies:** 0\
**Last updated:** [September 28, 2016, 1:08am UTC](https://forum.ansible.com/t/question-with-sequence-and-registered-vars-when-creating-ec2-instance/22661 "2016-09-28T01:08:59Z")

</div>

I have a playbook that creates an ec2 instance and from that creation I want to register the output as a var. From there I would use the registered var to create and attach an ebs volume. However I’m running into the fol…

---

## [Ansible Tower skipping valid tasks without even acknowledging they exist.](https://forum.ansible.com/t/ansible-tower-skipping-valid-tasks-without-even-acknowledging-they-exist/22659)

<div class="topic-metadata">

**Author:** [@Ian\_Dennison](https://forum.ansible.com/u/Ian_Dennison)\
**Replies:** 0\
**Last updated:** [September 27, 2016, 10:35pm UTC](https://forum.ansible.com/t/ansible-tower-skipping-valid-tasks-without-even-acknowledging-they-exist/22659 "2016-09-27T22:35:58Z")

</div>

I am running a playbook that adds a subdirectory on the Ansible Tower host (defined as a group of Servers with one entry) for every userid name in a variables list. I have integrated the variables and inventories from an…

---

## [ansible hang on setup stage](https://forum.ansible.com/t/ansible-hang-on-setup-stage/22657)

<div class="topic-metadata">

**Author:** [@William\_Muriithi](https://forum.ansible.com/u/William_Muriithi)\
**Replies:** 0\
**Last updated:** [September 27, 2016, 9:53pm UTC](https://forum.ansible.com/t/ansible-hang-on-setup-stage/22657 "2016-09-27T21:53:39Z")

</div>

Hello,

---

## [How do I change a vmware VM network after deployment.](https://forum.ansible.com/t/how-do-i-change-a-vmware-vm-network-after-deployment/22656)

<div class="topic-metadata">

**Author:** [@Mike\_Schlottman](https://forum.ansible.com/u/Mike_Schlottman)\
**Replies:** 0\
**Last updated:** [September 27, 2016, 9:09pm UTC](https://forum.ansible.com/t/how-do-i-change-a-vmware-vm-network-after-deployment/22656 "2016-09-27T21:09:12Z")

</div>

I cloned a vmware VM from a template. Now I need to change the network to a different network port group. I tried using vsphere\_guest to change the network, but reconfigure only seems to work for CPU, Memory and CDROM. I…

---

## [os\_server fails with "Error in creating instance (Inner Exception: create() takes at least 4 non-keyword arguments (2 given))"](https://forum.ansible.com/t/os-server-fails-with-error-in-creating-instance-inner-exception-create-takes-at-least-4-non-keyword-arguments-2-given/22649)

<div class="topic-metadata">

**Author:** [@Richard\_Eggert](https://forum.ansible.com/u/Richard_Eggert)\
**Replies:** 5\
**Last updated:** [September 27, 2016, 7:25pm UTC](https://forum.ansible.com/t/os-server-fails-with-error-in-creating-instance-inner-exception-create-takes-at-least-4-non-keyword-arguments-2-given/22649 "2016-09-27T19:25:39Z")

</div>

I managed to get the os\_server\_facts module working, but when I try to use the os\_server module to create a new VM instance, I get the following error: Error in creating instance (Inner Exception: create() takes at leas…

---

## [Service Module ERROR : No JSON Could be decoded](https://forum.ansible.com/t/service-module-error-no-json-could-be-decoded/22655)

<div class="topic-metadata">

**Author:** [@mohan.kaimal](https://forum.ansible.com/u/mohan.kaimal)\
**Replies:** 0\
**Last updated:** [September 27, 2016, 6:11pm UTC](https://forum.ansible.com/t/service-module-error-no-json-could-be-decoded/22655 "2016-09-27T18:11:50Z")

</div>

ansible --version ansible 2.1.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides While running the below playbook , i’m getting JSON object error at the service stop leve…

---

## [Python module import errors on devel, Ubuntu 16.04](https://forum.ansible.com/t/python-module-import-errors-on-devel-ubuntu-16-04/22654)

<div class="topic-metadata">

**Author:** [@viper233](https://forum.ansible.com/u/viper233)\
**Replies:** 0\
**Last updated:** [September 27, 2016, 5:26pm UTC](https://forum.ansible.com/t/python-module-import-errors-on-devel-ubuntu-16-04/22654 "2016-09-27T17:26:22Z")

</div>

I was looking to start work on a new module, start writing tests, after rebase-ing devel I’m now getting an error when trying to run Ansible from source on Ubuntu 16.04. This error has only started occurring in the past …

---

## [aws ec2\_key module permission denied error in ANSIBLE TOWER](https://forum.ansible.com/t/aws-ec2-key-module-permission-denied-error-in-ansible-tower/22653)

<div class="topic-metadata">

**Author:** [@pinky](https://forum.ansible.com/u/pinky)\
**Replies:** 0\
**Last updated:** [September 27, 2016, 4:49pm UTC](https://forum.ansible.com/t/aws-ec2-key-module-permission-denied-error-in-ansible-tower/22653 "2016-09-27T16:49:13Z")

</div>

Hi all, Iam new bee to Ansible tower, When iam running this module in tower it shows me permission denied.My credentials for aws are correct and it autheticates successfully in tower .But When loading this module it sho…

---

## [ansible Error while installation](https://forum.ansible.com/t/ansible-error-while-installation/22575)

<div class="topic-metadata">

**Author:** [@Ramesh](https://forum.ansible.com/u/Ramesh)\
**Replies:** 5\
**Last updated:** [September 27, 2016, 3:12pm UTC](https://forum.ansible.com/t/ansible-error-while-installation/22575 "2016-09-27T15:12:59Z")

</div>

Hi Here, While Im installing the ansible on MacOS X EI Capitan, Im getting below one after installation and doing ansible --version Rameshs-MacBook-Pro:~ Ramesh$ ansible --version ansible 2.1.1.0 config file = conf…

---

## [Ansible 2.1.2 RC4 is ready for testing](https://forum.ansible.com/t/ansible-2-1-2-rc4-is-ready-for-testing/22648)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 3\
**Last updated:** [September 27, 2016, 2:52pm UTC](https://forum.ansible.com/t/ansible-2-1-2-rc4-is-ready-for-testing/22648 "2016-09-27T14:52:52Z")

</div>

Hi all, we’re happy to announce that RC4 for 2.1.2 is now available for testing. This release candidate also adds the following fixes for bugs: Fixed a bug related to creation of retry files (#17456) Fixed a bug in th…

---

## [How to access a certain element of a register variable in a loop](https://forum.ansible.com/t/how-to-access-a-certain-element-of-a-register-variable-in-a-loop/22644)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 5\
**Last updated:** [September 27, 2016, 2:09pm UTC](https://forum.ansible.com/t/how-to-access-a-certain-element-of-a-register-variable-in-a-loop/22644 "2016-09-27T14:09:40Z")

</div>

I discovered the other day that when a register variable is used in a loop, like this \` name: Generate pw’s for users command: “/some\_path/generate\_hashed\_pw.sh -u {{ item }}” register: hashed\_pws with\_items: joe s…

---

## [how to verify all parameters are set and different from space in a csv file ?](https://forum.ansible.com/t/how-to-verify-all-parameters-are-set-and-different-from-space-in-a-csv-file/22651)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 6\
**Last updated:** [September 27, 2016, 12:38pm UTC](https://forum.ansible.com/t/how-to-verify-all-parameters-are-set-and-different-from-space-in-a-csv-file/22651 "2016-09-27T12:38:56Z")

</div>

Hello, I read a csv file with the lookup command with a loop on the items: tasks: set\_fact: “{{ item.name }}”: “{{ lookup(‘csvfile’, ‘{{ item.csvvar }} file=vars/fvaltat.csv delimiter=; col=1’) }}” with\_items: { na…

---

## [Blockinfile module not in the right place?](https://forum.ansible.com/t/blockinfile-module-not-in-the-right-place/22595)

<div class="topic-metadata">

**Author:** [@Clifford\_Trueman](https://forum.ansible.com/u/Clifford_Trueman)\
**Replies:** 1\
**Last updated:** [September 26, 2016, 10:46pm UTC](https://forum.ansible.com/t/blockinfile-module-not-in-the-right-place/22595 "2016-09-26T22:46:54Z")

</div>

So running into a few issues running blockinfile for a few tests. I created a really basic playbook literally form the ansible doc example - name: insert/update eth0 configuration stanza in /etc/network/interfaces …

---

## [Parsing output from CLI](https://forum.ansible.com/t/parsing-output-from-cli/22646)

<div class="topic-metadata">

**Author:** [@Adam](https://forum.ansible.com/u/Adam)\
**Replies:** 1\
**Last updated:** [September 26, 2016, 9:54pm UTC](https://forum.ansible.com/t/parsing-output-from-cli/22646 "2016-09-26T21:54:13Z")

</div>

Hi - I’m at a point in my Ansible development where I think I need to write a module. We use a third party messaging server called SwiftMQ. It’s very similar to RabbitMQ & ActiveMQ. SwiftMQ (SMQ) doesn’t provide an API …

---

## [Ansible 2.1.2 RC3 is ready for testing](https://forum.ansible.com/t/ansible-2-1-2-rc3-is-ready-for-testing/22548)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 2\
**Last updated:** [September 26, 2016, 7:40pm UTC](https://forum.ansible.com/t/ansible-2-1-2-rc3-is-ready-for-testing/22548 "2016-09-26T19:40:19Z")

</div>

Hi all, we’re happy to announce that RC3 for 2.1.2 is now available for testing. This release candidate also adds the following fixes for bugs: Backported a fix for a bug in the \_fixup\_perms module helper code (#17427)…

---

## [Deployment YAML script](https://forum.ansible.com/t/deployment-yaml-script/22647)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 0\
**Last updated:** [September 26, 2016, 7:21pm UTC](https://forum.ansible.com/t/deployment-yaml-script/22647 "2016-09-26T19:21:39Z")

</div>

I am running a Yaml deployment on with Jenkins. I specified the branch (develop) but when I run the YAML I am getting error message . ​The weird stuff is I have already added the key to bitbucket deployment key . any id…

---

## [per host configuration option](https://forum.ansible.com/t/per-host-configuration-option/14550)

<div class="topic-metadata">

**Author:** [@Makimoto\_Marakatti](https://forum.ansible.com/u/Makimoto_Marakatti)\
**Replies:** 19\
**Last updated:** [September 26, 2016, 7:09pm UTC](https://forum.ansible.com/t/per-host-configuration-option/14550 "2016-09-26T19:09:13Z")

</div>

Hi I’ve got a machine that needs to have remote\_tmp set to “$HOME/.ansible/tmp”. But this gives me issues with the rest of the boxes. So the option in the config file says “remote\_tmp = /tmp”. I’ve tried to set the opt…

---

## [Shade not available via yum?](https://forum.ansible.com/t/shade-not-available-via-yum/22628)

<div class="topic-metadata">

**Author:** [@Richard\_Eggert](https://forum.ansible.com/u/Richard_Eggert)\
**Replies:** 14\
**Last updated:** [September 26, 2016, 6:36pm UTC](https://forum.ansible.com/t/shade-not-available-via-yum/22628 "2016-09-26T18:36:05Z")

</div>

I installed Ansible using yum on CentOS 6.8 via a corporate mirror of EPEL. However, when I attempted to use the os\_server module to interact with the OpenStack API, it failed saying that “shade” is required. When I went…

---

## [docker-py version comparison fail](https://forum.ansible.com/t/docker-py-version-comparison-fail/22640)

<div class="topic-metadata">

**Author:** [@Andrew\_Ehrlich](https://forum.ansible.com/u/Andrew_Ehrlich)\
**Replies:** 1\
**Last updated:** [September 26, 2016, 6:13pm UTC](https://forum.ansible.com/t/docker-py-version-comparison-fail/22640 "2016-09-26T18:13:25Z")

</div>

I installed docker-py on my Centos host like this: $ sudo yum install python27-pip and $ sudo pip install docker-py Then when I run an ansible playbook containing a “docker\_container” task, it responds with: FAILED!…

---

## [cron: idempotent trouble - duplicates lines added](https://forum.ansible.com/t/cron-idempotent-trouble-duplicates-lines-added/22645)

<div class="topic-metadata">

**Author:** [@Tom\_Ekberg](https://forum.ansible.com/u/Tom_Ekberg)\
**Replies:** 0\
**Last updated:** [September 26, 2016, 3:48pm UTC](https://forum.ansible.com/t/cron-idempotent-trouble-duplicates-lines-added/22645 "2016-09-26T15:48:37Z")

</div>

I have a playbook that has 2 cron tasks that run back-to-back for the same user: \` This puts MAILTO at the top of the crontab. name: “transfers crontab setup” cron: name=“MAILTO section” minute=“MAILTO = \[email addr…

---

## [Can i create a Tower Label in a yml playbook?](https://forum.ansible.com/t/can-i-create-a-tower-label-in-a-yml-playbook/22643)

<div class="topic-metadata">

**Author:** [@Aitor\_Gomez](https://forum.ansible.com/u/Aitor_Gomez)\
**Replies:** 1\
**Last updated:** [September 26, 2016, 3:40pm UTC](https://forum.ansible.com/t/can-i-create-a-tower-label-in-a-yml-playbook/22643 "2016-09-26T15:40:50Z")

</div>

Can i create a Tower Label in a yml playbook? is posible créate a label in the yml?

---

## [register variable value + string](https://forum.ansible.com/t/register-variable-value-string/22639)

<div class="topic-metadata">

**Author:** [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Replies:** 1\
**Last updated:** [September 26, 2016, 3:13pm UTC](https://forum.ansible.com/t/register-variable-value-string/22639 "2016-09-26T15:13:48Z")

</div>

Does anyone know how I would go about to register values into variable + string (within a loop), so something like: \` register: “{{ item }}”\_LIST with\_items: “{{ LIST.stdout\_lines }}” or register: {{ item }}\_LIST \` …

---

## [Best way of writting inventory file](https://forum.ansible.com/t/best-way-of-writting-inventory-file/22642)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 3\
**Last updated:** [September 26, 2016, 2:41pm UTC](https://forum.ansible.com/t/best-way-of-writting-inventory-file/22642 "2016-09-26T14:41:19Z")

</div>

Hello, I have an inventory file to install for one user many ways, it looks like this: \[USER1\_DEV1\] PARAM=“\[app1’,‘1.0.1’,‘1’\]” \[USER1\_DEV2\] PARAM=“\[‘app1’,‘1.1.0’,‘5’\]” \[USER1\_REC1\] PARAM=“\[‘app1’,‘1.0.4’,‘2’\]” \[…

---

## [Example on bastion Host](https://forum.ansible.com/t/example-on-bastion-host/22641)

<div class="topic-metadata">

**Author:** [@jagadishm.middleware](https://forum.ansible.com/u/jagadishm.middleware)\
**Replies:** 0\
**Last updated:** [September 26, 2016, 7:27am UTC](https://forum.ansible.com/t/example-on-bastion-host/22641 "2016-09-26T07:27:06Z")

</div>

HI, I recently started working on Ansible i would like to have an example on ansible bastion Host. I have a few examples available when i google but they are kind of confusing me. Is there any example out there so that …

---

## [How to customise privilege escalation using sudo](https://forum.ansible.com/t/how-to-customise-privilege-escalation-using-sudo/22638)

<div class="topic-metadata">

**Author:** [@Nigel\_Owen](https://forum.ansible.com/u/Nigel_Owen)\
**Replies:** 0\
**Last updated:** [September 25, 2016, 4:37am UTC](https://forum.ansible.com/t/how-to-customise-privilege-escalation-using-sudo/22638 "2016-09-25T04:37:12Z")

</div>

Hi, I think I need to create my own privilege escalation module for ansible. The problem I am trying to address is that due to security concerns, the process of becoming a privileged user requires the following steps. …

---

## [How to specify variables to be used in roles?](https://forum.ansible.com/t/how-to-specify-variables-to-be-used-in-roles/22623)

<div class="topic-metadata">

**Author:** [@Chethan\_S](https://forum.ansible.com/u/Chethan_S)\
**Replies:** 4\
**Last updated:** [September 24, 2016, 2:28am UTC](https://forum.ansible.com/t/how-to-specify-variables-to-be-used-in-roles/22623 "2016-09-24T02:28:32Z")

</div>

I am in the process of migrating to Ansible roles model and I have the following structure - …/roles/vms/tasks/main.yml \`

---

## [Tmp files still being](https://forum.ansible.com/t/tmp-files-still-being/22636)

<div class="topic-metadata">

**Author:** [@harold\_T](https://forum.ansible.com/u/harold_T)\
**Replies:** 0\
**Last updated:** [September 24, 2016, 2:07am UTC](https://forum.ansible.com/t/tmp-files-still-being/22636 "2016-09-24T02:07:18Z")

</div>

https://github.com/ansible/ansible/issues/17716 I have been post my questions in here. now I found I used official api example, it will also create tmp files and not delete it. http://docs.ansible.com/ansible/developi…

---

## [tmp files still being](https://forum.ansible.com/t/tmp-files-still-being/22635)

<div class="topic-metadata">

**Author:** [@harold\_T](https://forum.ansible.com/u/harold_T)\
**Replies:** 0\
**Last updated:** [September 24, 2016, 1:47am UTC](https://forum.ansible.com/t/tmp-files-still-being/22635 "2016-09-24T01:47:21Z")

</div>

each time I use ansible python api to do sth, it will create tmp files in\` \`\` ~/.ansible/tmp update: I used the office code http://docs.ansible.com/ansible/developing\_api.html and run it, it will appear tmp file to…

---

## [Ansible lookup on file format issue](https://forum.ansible.com/t/ansible-lookup-on-file-format-issue/22633)

<div class="topic-metadata">

**Author:** [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Replies:** 1\
**Last updated:** [September 23, 2016, 8:27pm UTC](https://forum.ansible.com/t/ansible-lookup-on-file-format-issue/22633 "2016-09-23T20:27:04Z")

</div>

I have been struggling to use the lookup for vars feature, specifically tried something like: \` vars: BUCKET\_LIST: “{{ lookup(‘file’, ‘test’) }}” vars: BUCKET\_LIST: “{{ lookup(‘file’, ‘test’) |to\_json }}” \` Where …

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

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