# Archives

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

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

**Page:** 595

---

## [Is there a json module yet?](https://forum.ansible.com/t/is-there-a-json-module-yet/21334)

<div class="topic-metadata">

**Author:** [@Will\_LaSeur](https://forum.ansible.com/u/Will_LaSeur)\
**Replies:** 3\
**Last updated:** [May 5, 2016, 5:12pm UTC](https://forum.ansible.com/t/is-there-a-json-module-yet/21334 "2016-05-05T17:12:30Z")

</div>

I’m looking for a quick way to update a json file without needing to template the file. I want to be able to change the values each time a job is being run based on user input. I tried this: http://www.geekytidbits.com/…

---

## [Check mode for Windows modules](https://forum.ansible.com/t/check-mode-for-windows-modules/21355)

<div class="topic-metadata">

**Author:** [@hodgese](https://forum.ansible.com/u/hodgese)\
**Replies:** 2\
**Last updated:** [May 5, 2016, 3:15pm UTC](https://forum.ansible.com/t/check-mode-for-windows-modules/21355 "2016-05-05T15:15:55Z")

</div>

Is there a way to implement check mode in a custom Windows module? I didn’t see anything in the documentation about it, and none of the several core modules I checked contained an example. Thanks, Eric

---

## [Problem with mysql core modules when host and/or port are non default](https://forum.ansible.com/t/problem-with-mysql-core-modules-when-host-and-or-port-are-non-default/21364)

<div class="topic-metadata">

**Author:** [@Jurgen\_Haas2](https://forum.ansible.com/u/Jurgen_Haas2)\
**Replies:** 0\
**Last updated:** [May 5, 2016, 3:07pm UTC](https://forum.ansible.com/t/problem-with-mysql-core-modules-when-host-and-or-port-are-non-default/21364 "2016-05-05T15:07:58Z")

</div>

According to the docs, Ansible started to support the config file (default: ~/.my.cnf) when connecting to the MySQL database and it reads the username and password from that file to be used when the arguments for login\_u…

---

## [Feedback on ansible playbook linter tool](https://forum.ansible.com/t/feedback-on-ansible-playbook-linter-tool/21362)

<div class="topic-metadata">

**Author:** [@Anshu\_Choubey](https://forum.ansible.com/u/Anshu_Choubey)\
**Replies:** 0\
**Last updated:** [May 5, 2016, 1:14pm UTC](https://forum.ansible.com/t/feedback-on-ansible-playbook-linter-tool/21362 "2016-05-05T13:14:26Z")

</div>

Hi, Lately I’ve been working on a tool to lint ansible playbook for logicall pitfalls. Though in novice stage, the tool can be found here. I could really use some feedback/suggestion on the tool. So, please take a look …

---

## [Feedback/suggestion on an ansible-playbook linter](https://forum.ansible.com/t/feedback-suggestion-on-an-ansible-playbook-linter/21361)

<div class="topic-metadata">

**Author:** [@Anshu\_Choubey](https://forum.ansible.com/u/Anshu_Choubey)\
**Replies:** 0\
**Last updated:** [May 5, 2016, 12:58pm UTC](https://forum.ansible.com/t/feedback-suggestion-on-an-ansible-playbook-linter/21361 "2016-05-05T12:58:32Z")

</div>

Hi, I’ve been lately working on creating a tool that would check ansible playbooks for logical pitfalls or inconsistencies. Though in a very novice stage, the tool/library can be found here. I could really use some feed…

---

## [Use Ansible to discover/document an environment](https://forum.ansible.com/t/use-ansible-to-discover-document-an-environment/19686)

<div class="topic-metadata">

**Author:** [@Jon\_Dison](https://forum.ansible.com/u/Jon_Dison)\
**Replies:** 5\
**Last updated:** [May 5, 2016, 6:04am UTC](https://forum.ansible.com/t/use-ansible-to-discover-document-an-environment/19686 "2016-05-05T06:04:18Z")

</div>

I’m wondering if anyone has any existing playbooks and/or scripts to go through an environment and document the findings. Basically a way to transform the results from the setup module into a useful CSV would be a good …

---

## [Unable to install nodejs from nodesource apt repo with apt module](https://forum.ansible.com/t/unable-to-install-nodejs-from-nodesource-apt-repo-with-apt-module/21354)

<div class="topic-metadata">

**Author:** [@james4](https://forum.ansible.com/u/james4)\
**Replies:** 1\
**Last updated:** [May 4, 2016, 9:54pm UTC](https://forum.ansible.com/t/unable-to-install-nodejs-from-nodesource-apt-repo-with-apt-module/21354 "2016-05-04T21:54:34Z")

</div>

Anyone by chance know why this is no longer working on ansible 2.0.0.2? The apt repo definition is deb https://deb.nodesource.com/node\_4.x trusty main - name: install packages apt: name: "{{item}}" state: pre…

---

## [GIThub, Jenkins and Ansible](https://forum.ansible.com/t/github-jenkins-and-ansible/21325)

<div class="topic-metadata">

**Author:** [@abidewan7](https://forum.ansible.com/u/abidewan7)\
**Replies:** 2\
**Last updated:** [May 4, 2016, 9:54pm UTC](https://forum.ansible.com/t/github-jenkins-and-ansible/21325 "2016-05-04T21:54:23Z")

</div>

Hi Guys, I’m looking for a step by step process to configure GitHub, Jenkins (CI) and Ansible (CD) so that a code from local machine to → Github → Jenkins (CI) → Ansible (CD) → local or EC2 can be deployed. Also lookin…

---

## [Multi-dimensional group\_vars ?](https://forum.ansible.com/t/multi-dimensional-group-vars/21352)

<div class="topic-metadata">

**Author:** [@Renaud\_Guerin](https://forum.ansible.com/u/Renaud_Guerin)\
**Replies:** 1\
**Last updated:** [May 4, 2016, 4:37pm UTC](https://forum.ansible.com/t/multi-dimensional-group-vars/21352 "2016-05-04T16:37:52Z")

</div>

Hi, I have a variable “elasticsearch\_heap\_size” that can take 4 different values depending on 2 dimensions: the host being an Elasticsearch master or data node whether it’s in production or development. At the moment…

---

## [Same host in inventory twice with two different ports, not working](https://forum.ansible.com/t/same-host-in-inventory-twice-with-two-different-ports-not-working/21293)

<div class="topic-metadata">

**Author:** [@John\_Gateley](https://forum.ansible.com/u/John_Gateley)\
**Replies:** 3\
**Last updated:** [May 4, 2016, 3:07pm UTC](https://forum.ansible.com/t/same-host-in-inventory-twice-with-two-different-ports-not-working/21293 "2016-05-04T15:07:41Z")

</div>

Hello, I have an inventory file with the same host twice, once using ssh on port 22, once using ssh on port 12345. This is inventory file bad.hosts2: \[host1\] foo.example.com:22 ansible\_connection=ssh ansible\_ssh\_user=…

---

## [dynamic inventory - hostname or ip address](https://forum.ansible.com/t/dynamic-inventory-hostname-or-ip-address/21309)

<div class="topic-metadata">

**Author:** [@Bill\_WANG](https://forum.ansible.com/u/Bill_WANG)\
**Replies:** 2\
**Last updated:** [May 4, 2016, 12:34pm UTC](https://forum.ansible.com/t/dynamic-inventory-hostname-or-ip-address/21309 "2016-05-04T12:34:36Z")

</div>

Hi all, I got dynamic inventory for ec2 instances via ansible. But the host in export are all IP addresses. In ec2.ini vpc\_destination\_variable = private\_ip\_address Sample of dynamic inventory output: \` “tag\_Name\_a…

---

## [StartProcess doesn't work with raw](https://forum.ansible.com/t/startprocess-doesnt-work-with-raw/21338)

<div class="topic-metadata">

**Author:** [@jacob](https://forum.ansible.com/u/jacob)\
**Replies:** 2\
**Last updated:** [May 4, 2016, 10:30am UTC](https://forum.ansible.com/t/startprocess-doesnt-work-with-raw/21338 "2016-05-04T10:30:40Z")

</div>

I recently started using Ansible to control Windows and I’m have some trouble with the StartProcess command. On a regular Powershell terminal I can open a new shell with this command: StartProcess powershell However t…

---

## [No Kerberos Credentials available and unspecified GSS Error: Ansible Tower](https://forum.ansible.com/t/no-kerberos-credentials-available-and-unspecified-gss-error-ansible-tower/21349)

<div class="topic-metadata">

**Author:** [@Chethan\_S](https://forum.ansible.com/u/Chethan_S)\
**Replies:** 1\
**Last updated:** [May 4, 2016, 10:21am UTC](https://forum.ansible.com/t/no-kerberos-credentials-available-and-unspecified-gss-error-ansible-tower/21349 "2016-05-04T10:21:37Z")

</div>

I have setup my Ansible Tower and Windows Kerberos / Active Directory authentication as specified here. It is the same procedure explained in the official documentation too. For information here is what I did - Install…

---

## [Ansible Error while running Anible-playbook](https://forum.ansible.com/t/ansible-error-while-running-anible-playbook/21351)

<div class="topic-metadata">

**Author:** [@pvlrjr](https://forum.ansible.com/u/pvlrjr)\
**Replies:** 0\
**Last updated:** [May 4, 2016, 9:07am UTC](https://forum.ansible.com/t/ansible-error-while-running-anible-playbook/21351 "2016-05-04T09:07:27Z")

</div>

Hi All, We are using ansible version 2.0.1.0. While running ansible-playbook we are getting Modules Related and SSH related errors. For your reference please find below logs. Password less authentication is also there …

---

## [Ansible ping module query.](https://forum.ansible.com/t/ansible-ping-module-query/21350)

<div class="topic-metadata">

**Author:** [@Joy\_Dsouza](https://forum.ansible.com/u/Joy_Dsouza)\
**Replies:** 0\
**Last updated:** [May 4, 2016, 5:49am UTC](https://forum.ansible.com/t/ansible-ping-module-query/21350 "2016-05-04T05:49:27Z")

</div>

Hello, I am new to Ansible. I have a list of server ip’s and I am using ping module to check if the servers are reachable or not. When I pass the password it works fine, However when I pass the private key it works fo…

---

## [Yum packages being skipped using Ansible 2.0.2.0](https://forum.ansible.com/t/yum-packages-being-skipped-using-ansible-2-0-2-0/21348)

<div class="topic-metadata">

**Author:** [@Larry\_Smith1](https://forum.ansible.com/u/Larry_Smith1)\
**Replies:** 2\
**Last updated:** [May 4, 2016, 2:49am UTC](https://forum.ansible.com/t/yum-packages-being-skipped-using-ansible-2-0-2-0/21348 "2016-05-04T02:49:13Z")

</div>

So I am seeing something rather strange when using Ansible 2.0.2.0…If I execute a play with the following tasks the second one is skipped. However if I run the same play using Ansible 2.0.1.0 it runs as expected. Anyone …

---

## [Ansible marathon module](https://forum.ansible.com/t/ansible-marathon-module/19764)

<div class="topic-metadata">

**Author:** [@Ahmad\_Aabed](https://forum.ansible.com/u/Ahmad_Aabed)\
**Replies:** 3\
**Last updated:** [May 3, 2016, 10:14pm UTC](https://forum.ansible.com/t/ansible-marathon-module/19764 "2016-05-03T22:14:51Z")

</div>

Hello, I think it will be nice to have a module to provision mesos machines using marathon I don't know if there is someone working on it now,but if not i'd like to work on it

---

## [The async task did not return valid JSON: Extra data ...](https://forum.ansible.com/t/the-async-task-did-not-return-valid-json-extra-data/19988)

<div class="topic-metadata">

**Author:** [@Nuriel\_Shem-Tov](https://forum.ansible.com/u/Nuriel_Shem-Tov)\
**Replies:** 2\
**Last updated:** [May 3, 2016, 8:59pm UTC](https://forum.ansible.com/t/the-async-task-did-not-return-valid-json-extra-data/19988 "2016-05-03T20:59:34Z")

</div>

Hi! I am running the following playbook: \`

---

## [What's the state on roles and with\_items?](https://forum.ansible.com/t/whats-the-state-on-roles-and-with-items/21347)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [May 3, 2016, 8:16pm UTC](https://forum.ansible.com/t/whats-the-state-on-roles-and-with-items/21347 "2016-05-03T20:16:04Z")

</div>

Hi all, apparently roles allowed using with\_items some time ago: https://github.com/ansible/ansible/issues/12623 https://github.com/ansible/ansible-examples/blob/master/language\_features/roletest2.yml I read 2.1 will…

---

## [ansible.cfg overrides](https://forum.ansible.com/t/ansible-cfg-overrides/21345)

<div class="topic-metadata">

**Author:** [@Dusan\_Matejka](https://forum.ansible.com/u/Dusan_Matejka)\
**Replies:** 2\
**Last updated:** [May 3, 2016, 8:15pm UTC](https://forum.ansible.com/t/ansible-cfg-overrides/21345 "2016-05-03T20:15:15Z")

</div>

Hello, We are using multiple ansible playbook repositories in our company. While we want to make some configuration directives local only for a specific repository, there are some which need to be defined for every curr…

---

## [Register variables in tasks that use with\_items?](https://forum.ansible.com/t/register-variables-in-tasks-that-use-with-items/21346)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [May 3, 2016, 8:11pm UTC](https://forum.ansible.com/t/register-variables-in-tasks-that-use-with-items/21346 "2016-05-03T20:11:03Z")

</div>

Hi all, say I want to create a file for two users. I create a list containing the users and create a task with a loop using with\_items: userlist: - foo - bar To avoid trouble I want to check if the target folde…

---

## [Settings for ansible\_shell\_type in inventory file not work](https://forum.ansible.com/t/settings-for-ansible-shell-type-in-inventory-file-not-work/21227)

<div class="topic-metadata">

**Author:** [@WD\_Wang](https://forum.ansible.com/u/WD_Wang)\
**Replies:** 1\
**Last updated:** [May 3, 2016, 7:45pm UTC](https://forum.ansible.com/t/settings-for-ansible-shell-type-in-inventory-file-not-work/21227 "2016-05-03T19:45:02Z")

</div>

hi, I can use the command below to send some files to remote: $ ansible -e ‘ansible\_shell\_type=sh’ -i hosts -m synchronize -a “src=node\_modules/ dest=/tmp/node\_modules/” dev host1 | SUCCESS =\> { “changed”: false, “c…

---

## [Configuring module\_utils path?](https://forum.ansible.com/t/configuring-module-utils-path/21344)

<div class="topic-metadata">

**Author:** [@Jonathan\_Rowlands](https://forum.ansible.com/u/Jonathan_Rowlands)\
**Replies:** 2\
**Last updated:** [May 3, 2016, 6:25pm UTC](https://forum.ansible.com/t/configuring-module-utils-path/21344 "2016-05-03T18:25:42Z")

</div>

Is there a way to configure the module\_utils path for supporting code like the way ANSIBLE\_LIBRARY works with modules?

---

## [Bug in with\_nested and registered variables?](https://forum.ansible.com/t/bug-in-with-nested-and-registered-variables/21343)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [May 3, 2016, 5:11pm UTC](https://forum.ansible.com/t/bug-in-with-nested-and-registered-variables/21343 "2016-05-03T17:11:36Z")

</div>

Hi, Earlier today on irc I heard that the snippet below not working might be a bug. Being new to Ansible and not wanting to waste the developers time I'd appreciate a confirmation that this is indeed a bug before filing…

---

## [Using playbook to start, stop or restart a service](https://forum.ansible.com/t/using-playbook-to-start-stop-or-restart-a-service/21324)

<div class="topic-metadata">

**Author:** [@Rick\_O\_Shea](https://forum.ansible.com/u/Rick_O_Shea)\
**Replies:** 3\
**Last updated:** [May 3, 2016, 3:36pm UTC](https://forum.ansible.com/t/using-playbook-to-start-stop-or-restart-a-service/21324 "2016-05-03T15:36:26Z")

</div>

We have host groups whose service states we wish to automate. name manage service service: name=foo state={{state}} As near as we can tell this is the only way to automate a playbook to start, stop, restart, enable, …

---

## [How can I figure out which version of Ansible an ansible-modules-core merge request first appears in?](https://forum.ansible.com/t/how-can-i-figure-out-which-version-of-ansible-an-ansible-modules-core-merge-request-first-appears-in/21337)

<div class="topic-metadata">

**Author:** [@Kit\_Sunde](https://forum.ansible.com/u/Kit_Sunde)\
**Replies:** 1\
**Last updated:** [May 3, 2016, 3:13pm UTC](https://forum.ansible.com/t/how-can-i-figure-out-which-version-of-ansible-an-ansible-modules-core-merge-request-first-appears-in/21337 "2016-05-03T15:13:24Z")

</div>

This pull request: https://github.com/ansible/ansible-modules-core/pull/2673 supposedly adds MySQL 5.7 support on mysql\_user. The last note says it’s been merged into the 2.0 stable and the devel branch, but it’s not cle…

---

## [New Modules Report, 03-May-2016](https://forum.ansible.com/t/new-modules-report-03-may-2016/21341)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 0\
**Last updated:** [May 3, 2016, 1:53pm UTC](https://forum.ansible.com/t/new-modules-report-03-may-2016/21341 "2016-05-03T13:53:10Z")

</div>

There are currently 150 modules waiting for inclusion in Ansible Extras. One of them might be useful to you! New modules this week: New module - elastic\_beanstalk - re-submit https://github.com/ansible/ansible-module…

---

## [synchronize between two remote servers: you can pull but you cannot push?](https://forum.ansible.com/t/synchronize-between-two-remote-servers-you-can-pull-but-you-cannot-push/21330)

<div class="topic-metadata">

**Author:** [@Joe\_Louthan](https://forum.ansible.com/u/Joe_Louthan)\
**Replies:** 2\
**Last updated:** [May 3, 2016, 1:41pm UTC](https://forum.ansible.com/t/synchronize-between-two-remote-servers-you-can-pull-but-you-cannot-push/21330 "2016-05-03T13:41:15Z")

</div>

So pulling in synchronize between two remote servers works like a champ: \`

---

## [Is there a Docker Compose -like solution for Ansible?](https://forum.ansible.com/t/is-there-a-docker-compose-like-solution-for-ansible/21340)

<div class="topic-metadata">

**Author:** [@Bence\_Takacs](https://forum.ansible.com/u/Bence_Takacs)\
**Replies:** 1\
**Last updated:** [May 3, 2016, 12:51pm UTC](https://forum.ansible.com/t/is-there-a-docker-compose-like-solution-for-ansible/21340 "2016-05-03T12:51:08Z")

</div>

Hi We are mostly using ansible for creating/managing our TEST environments. One environment can contain the different types of services/nodes like: web/application server(s) windows services DBs JMS queues etc The e…

---

## [Synchronize module with ansible-pull](https://forum.ansible.com/t/synchronize-module-with-ansible-pull/21339)

<div class="topic-metadata">

**Author:** [@Karibou\_Hunter](https://forum.ansible.com/u/Karibou_Hunter)\
**Replies:** 0\
**Last updated:** [May 3, 2016, 10:44am UTC](https://forum.ansible.com/t/synchronize-module-with-ansible-pull/21339 "2016-05-03T10:44:27Z")

</div>

Hi all, I have an error with this task : \` name: sync app directory synchronize: mode: pull src: rsync://192.168.1.1/home/user/files\_www/ dest: “/var/www/example.com/” become: false \` running ansible-pull -vvv…

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

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