# Archives

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

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

**Page:** 328

---

## [Casting a variable as an integer](https://forum.ansible.com/t/casting-a-variable-as-an-integer/29236)

<div class="topic-metadata">

**Author:** [@Stuart\_Longland](https://forum.ansible.com/u/Stuart_Longland)\
**Replies:** 5\
**Last updated:** [December 12, 2018, 8:30am UTC](https://forum.ansible.com/t/casting-a-variable-as-an-integer/29236 "2018-12-12T08:30:09Z")

</div>

Hi all, I ran into a problem yesterday trying to set up a AWS instance via an Ansible playbook. I'm running Ansible 2.7.1 on Gentoo (AMD64). I have a host variable, \`volume\_size\`, which is the size of the volume in …

---

## [Ansible client host in windows 2016 server](https://forum.ansible.com/t/ansible-client-host-in-windows-2016-server/29237)

<div class="topic-metadata">

**Author:** [@Tharindu\_Weerakoon](https://forum.ansible.com/u/Tharindu_Weerakoon)\
**Replies:** 6\
**Last updated:** [December 11, 2018, 10:39pm UTC](https://forum.ansible.com/t/ansible-client-host-in-windows-2016-server/29237 "2018-12-11T22:39:58Z")

</div>

Dears, Anyone has recommended document of link for configure ansible in win 2016 with selfsign cert. Tharindu

---

## [Ansible log verbosity in ansible.cfg](https://forum.ansible.com/t/ansible-log-verbosity-in-ansible-cfg/29151)

<div class="topic-metadata">

**Author:** [@Jad\_Baz](https://forum.ansible.com/u/Jad_Baz)\
**Replies:** 1\
**Last updated:** [December 11, 2018, 7:17pm UTC](https://forum.ansible.com/t/ansible-log-verbosity-in-ansible-cfg/29151 "2018-12-11T19:17:50Z")

</div>

We can specify a log\_path in ansible.cfg which instructs Ansible to log to a certain file. Is there a way to specify the verbosity of that logging as well? (The default is not verbose). Logging verbosity is not affecte…

---

## [please help: how does the lxc connection plugin work?](https://forum.ansible.com/t/please-help-how-does-the-lxc-connection-plugin-work/28626)

<div class="topic-metadata">

**Author:** [@olapodrido](https://forum.ansible.com/u/olapodrido)\
**Replies:** 1\
**Last updated:** [December 11, 2018, 7:00pm UTC](https://forum.ansible.com/t/please-help-how-does-the-lxc-connection-plugin-work/28626 "2018-12-11T19:00:53Z")

</div>

Hi! Apologies: I am a relatively new with Ansible. Ansible controls several hosts which run LXC containers (no LXD involvement). I can install these containers just fine. But how do I configure them internally, like in…

---

## [Apache config test and send signal to restart apache if syntax check is passed](https://forum.ansible.com/t/apache-config-test-and-send-signal-to-restart-apache-if-syntax-check-is-passed/29240)

<div class="topic-metadata">

**Author:** [@Himanshu\_Maity](https://forum.ansible.com/u/Himanshu_Maity)\
**Replies:** 3\
**Last updated:** [December 11, 2018, 6:55pm UTC](https://forum.ansible.com/t/apache-config-test-and-send-signal-to-restart-apache-if-syntax-check-is-passed/29240 "2018-12-11T18:55:19Z")

</div>

Hi, I’m trying to run two commands in a single line, which will validate the syntax of apache configuration copied from template file and send a signal to reload the apache if it’s passed. Right now, my configuration l…

---

## [having issues with finding AMI](https://forum.ansible.com/t/having-issues-with-finding-ami/29214)

<div class="topic-metadata">

**Author:** [@Frank\_Dias](https://forum.ansible.com/u/Frank_Dias)\
**Replies:** 6\
**Last updated:** [December 11, 2018, 6:21pm UTC](https://forum.ansible.com/t/having-issues-with-finding-ami/29214 "2018-12-11T18:21:15Z")

</div>

ami\_search\_string: “amznamazon-ecs-optimized” ec2\_ami\_find: name: “{{ ami\_search\_string }}” region: “{{ region }}” virtualization\_type: hvm owner: aws-marketplace sort: creationDate sort\_order: descending sort\_en…

---

## [AWX Tower callback - No matching host could be found but tower console is working](https://forum.ansible.com/t/awx-tower-callback-no-matching-host-could-be-found-but-tower-console-is-working/28473)

<div class="topic-metadata">

**Author:** [@devulapalli8](https://forum.ansible.com/u/devulapalli8)\
**Replies:** 5\
**Last updated:** [December 11, 2018, 1:21pm UTC](https://forum.ansible.com/t/awx-tower-callback-no-matching-host-could-be-found-but-tower-console-is-working/28473 "2018-12-11T13:21:35Z")

</div>

I have setup inventory and job template and the call back is returning “No matching host could be found” but actually the tower console I could see host listed in the inventory and even attempted synch and even I could a…

---

## [run tasks based on variable](https://forum.ansible.com/t/run-tasks-based-on-variable/29196)

<div class="topic-metadata">

**Author:** [@Bill\_Nolf](https://forum.ansible.com/u/Bill_Nolf)\
**Replies:** 13\
**Last updated:** [December 11, 2018, 3:20am UTC](https://forum.ansible.com/t/run-tasks-based-on-variable/29196 "2018-12-11T03:20:57Z")

</div>

I have the following vars: vms test1 name: test1 disk\_size: size: 10 size: 20 test2 name: test2 disk\_size: size: 10 I need to be able to set tasks on test1 and then the same set on test2. Is there a way to d…

---

## [dig lookup exception: 'list' object has no attribute 'startswith'](https://forum.ansible.com/t/dig-lookup-exception-list-object-has-no-attribute-startswith/29234)

<div class="topic-metadata">

**Author:** [@rjwagner.dba](https://forum.ansible.com/u/rjwagner.dba)\
**Replies:** 3\
**Last updated:** [December 10, 2018, 6:58pm UTC](https://forum.ansible.com/t/dig-lookup-exception-list-object-has-no-attribute-startswith/29234 "2018-12-10T18:58:58Z")

</div>

Hey all- I’m having more problems w/ the dig lookup. If I statically define a list of hosts to lookup as a variable, it works. But if I return the list of hosts from another script, it fails. Here’s a simple example: \` …

---

## [Security scan of AWX identifies it as RH Tower](https://forum.ansible.com/t/security-scan-of-awx-identifies-it-as-rh-tower/29218)

<div class="topic-metadata">

**Author:** [@dmakovey](https://forum.ansible.com/u/dmakovey)\
**Replies:** 3\
**Last updated:** [December 10, 2018, 4:57pm UTC](https://forum.ansible.com/t/security-scan-of-awx-identifies-it-as-rh-tower/29218 "2018-12-10T16:57:38Z")

</div>

Hi, running AWX we've been subject to regular security scan which identified AWX instance as a RedHat Tower Instance. Which is not bad, except it took AWX instance version (2.1.0) and assumed it was RedHat Tower 2.1.0 …

---

## [Cannot get python to see psycopg2 on OSx](https://forum.ansible.com/t/cannot-get-python-to-see-psycopg2-on-osx/29231)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 3\
**Last updated:** [December 10, 2018, 3:17pm UTC](https://forum.ansible.com/t/cannot-get-python-to-see-psycopg2-on-osx/29231 "2018-12-10T15:17:09Z")

</div>

I’ve been pounding my head on this for a few hours now. Nothing I do can get python to import psycopg2. Consider: \` name: Setup mysql databases hosts: localhost connection: local become: no tags: \[database, post…

---

## [import error: No module named plugins.action.normal](https://forum.ansible.com/t/import-error-no-module-named-plugins-action-normal/29221)

<div class="topic-metadata">

**Author:** [@jnaughton](https://forum.ansible.com/u/jnaughton)\
**Replies:** 2\
**Last updated:** [December 10, 2018, 3:12pm UTC](https://forum.ansible.com/t/import-error-no-module-named-plugins-action-normal/29221 "2018-12-10T15:12:09Z")

</div>

Hi All, When we attempt to use Ansible on a bare metal server running centos 6.5, single python2.7 the “juniper\_junos\_config:” module gives us this error “import error: No module named plugins.action.normal”. This works…

---

## [Help with Variables and command/shell module](https://forum.ansible.com/t/help-with-variables-and-command-shell-module/29233)

<div class="topic-metadata">

**Author:** [@Robert2](https://forum.ansible.com/u/Robert2)\
**Replies:** 2\
**Last updated:** [December 10, 2018, 3:08pm UTC](https://forum.ansible.com/t/help-with-variables-and-command-shell-module/29233 "2018-12-10T15:08:19Z")

</div>

All, I have a playbook that reads in a vars\_file and creates new users and then runs the chage command to force them to change their password on first/next login. Here is the playbook.

---

## [Dynamic Inventory for Windows EC2 Instances](https://forum.ansible.com/t/dynamic-inventory-for-windows-ec2-instances/29232)

<div class="topic-metadata">

**Author:** [@Pawan\_Sawalani](https://forum.ansible.com/u/Pawan_Sawalani)\
**Replies:** 0\
**Last updated:** [December 10, 2018, 12:45pm UTC](https://forum.ansible.com/t/dynamic-inventory-for-windows-ec2-instances/29232 "2018-12-10T12:45:25Z")

</div>

Hi All, I am trying to use EC2 external inventory script (ec2.py/ec2.ini) for AWS instances. All my AWS EC2 instances are Windows hosts. When I run below command: \` ansible ec2 -i /etc/ansible/ec2.py -m win\_ping \` …

---

## [Is anyone using human-readable callback plugin? (human\_log.py)](https://forum.ansible.com/t/is-anyone-using-human-readable-callback-plugin-human-log-py/17791)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 5\
**Last updated:** [December 10, 2018, 10:09am UTC](https://forum.ansible.com/t/is-anyone-using-human-readable-callback-plugin-human-log-py/17791 "2018-12-10T10:09:56Z")

</div>

Using this callback plugin has been great for reading the logs but with a recent update I started getting double output and my logs are beginning to get unmanageable. Is anyone else using this callback plugin and experie…

---

## [playbook with ansible-vault](https://forum.ansible.com/t/playbook-with-ansible-vault/29230)

<div class="topic-metadata">

**Author:** [@Michele\_Salerno](https://forum.ansible.com/u/Michele_Salerno)\
**Replies:** 0\
**Last updated:** [December 9, 2018, 11:25pm UTC](https://forum.ansible.com/t/playbook-with-ansible-vault/29230 "2018-12-09T23:25:07Z")

</div>

I have this file https://github.com/NinuxBasilicata/nnxx-bind-server/blob/master/roles/bind/defaults/main.yml if i paste this https://github.com/NinuxBasilicata/nnxx-bind-server/blob/88ffdda928a425be374bb898827b6679bef6…

---

## [Run a task only on remote host if this hosts a specific database](https://forum.ansible.com/t/run-a-task-only-on-remote-host-if-this-hosts-a-specific-database/29229)

<div class="topic-metadata">

**Author:** [@Christian\_Marquardt](https://forum.ansible.com/u/Christian_Marquardt)\
**Replies:** 1\
**Last updated:** [December 9, 2018, 5:15pm UTC](https://forum.ansible.com/t/run-a-task-only-on-remote-host-if-this-hosts-a-specific-database/29229 "2018-12-09T17:15:06Z")

</div>

Hello, I’m looking for ideas on how I can realize the following: I wan’t to change some database parameters on a specific database. I’ve several ideas but I’m not sure how to realize this. For example: Having local …

---

## [Problems notifying handlers in another role](https://forum.ansible.com/t/problems-notifying-handlers-in-another-role/29227)

<div class="topic-metadata">

**Author:** [@Andy\_Smith](https://forum.ansible.com/u/Andy_Smith)\
**Replies:** 2\
**Last updated:** [December 8, 2018, 5:20pm UTC](https://forum.ansible.com/t/problems-notifying-handlers-in-another-role/29227 "2018-12-08T17:20:07Z")

</div>

Hello, Say I have a playbook a bit like this: - hosts: some\_group roles: - { role: app, } - hosts: all roles: - { role: configure, } That second role "configure" do…

---

## [Adding Virtualbox guest to user's Virtualbox Manager](https://forum.ansible.com/t/adding-virtualbox-guest-to-users-virtualbox-manager/29226)

<div class="topic-metadata">

**Author:** [@Sorin\_Srbu](https://forum.ansible.com/u/Sorin_Srbu)\
**Replies:** 0\
**Last updated:** [December 8, 2018, 2:44pm UTC](https://forum.ansible.com/t/adding-virtualbox-guest-to-users-virtualbox-manager/29226 "2018-12-08T14:44:54Z")

</div>

Hi all, Is it possible for Ansible to add a vm-guest to a user’s Virtualbox Manager list of available virtual machines? I have the vbox and vdi files, and have had Ansible successfully push them to a folder writable by…

---

## [Retrieve InstanceId of the newly created EC2 instance](https://forum.ansible.com/t/retrieve-instanceid-of-the-newly-created-ec2-instance/29224)

<div class="topic-metadata">

**Author:** [@Pawan\_Sawalani](https://forum.ansible.com/u/Pawan_Sawalani)\
**Replies:** 4\
**Last updated:** [December 8, 2018, 2:22pm UTC](https://forum.ansible.com/t/retrieve-instanceid-of-the-newly-created-ec2-instance/29224 "2018-12-08T14:22:29Z")

</div>

Hi All, I am trying to retrieve the Instance ID of the newly created EC2 instance. But I get below error: \` ok: \[localhost\] =\> { “stack\_details.stackoutputs.InstanceId”: “VARIABLE IS NOT DEFINED!” } \` Below is th…

---

## [Build file from two other files](https://forum.ansible.com/t/build-file-from-two-other-files/29225)

<div class="topic-metadata">

**Author:** [@Andy\_Smith](https://forum.ansible.com/u/Andy_Smith)\
**Replies:** 1\
**Last updated:** [December 8, 2018, 1:48pm UTC](https://forum.ansible.com/t/build-file-from-two-other-files/29225 "2018-12-08T13:48:51Z")

</div>

Hi, I feel I must be missing something very obvious here, but I can't find it, so here we go. Let's say I've got a role's tasks/main.yml that includes some other tasks on a loop: - include\_tasks: distribute\_thing.ym…

---

## [Service restart in Windows Operating system  using playbooks](https://forum.ansible.com/t/service-restart-in-windows-operating-system-using-playbooks/29209)

<div class="topic-metadata">

**Author:** [@Suma\_P](https://forum.ansible.com/u/Suma_P)\
**Replies:** 1\
**Last updated:** [December 8, 2018, 10:00am UTC](https://forum.ansible.com/t/service-restart-in-windows-operating-system-using-playbooks/29209 "2018-12-08T10:00:24Z")

</div>

Hi Team , I am trying to restart the spooler service in windows remotely by creating playbooks in RHEL Operating system .its trowing below error.kindly suggest me to resolve this issue. playbook content :

---

## [Creating REST API for Ansible core to invoke playbook execution from external platoform](https://forum.ansible.com/t/creating-rest-api-for-ansible-core-to-invoke-playbook-execution-from-external-platoform/29222)

<div class="topic-metadata">

**Author:** [@Bikram](https://forum.ansible.com/u/Bikram)\
**Replies:** 1\
**Last updated:** [December 8, 2018, 12:18am UTC](https://forum.ansible.com/t/creating-rest-api-for-ansible-core-to-invoke-playbook-execution-from-external-platoform/29222 "2018-12-08T00:18:35Z")

</div>

Dear All, I have some use cases to create a REST API for Ansible core so that I can call the API from other platforms( say, remedy) to run the playbook. I am thinking to build with flash+python. I would appreciate it …

---

## [How to tell ansible to do conditional execution based on status of hosts in invetory file.](https://forum.ansible.com/t/how-to-tell-ansible-to-do-conditional-execution-based-on-status-of-hosts-in-invetory-file/29211)

<div class="topic-metadata">

**Author:** [@onenessboy](https://forum.ansible.com/u/onenessboy)\
**Replies:** 2\
**Last updated:** [December 7, 2018, 10:07pm UTC](https://forum.ansible.com/t/how-to-tell-ansible-to-do-conditional-execution-based-on-status-of-hosts-in-invetory-file/29211 "2018-12-07T22:07:05Z")

</div>

Dear Experts, I have a host file like something below: \` \[servers\] 1.2.3.4 1.2.3.5 1.2.3.6 \` and also i have a script called test like ansible servers -m -shell "docker ps" Now as per my understanding the scrip…

---

## [Ansible-lint new release 4.0.0](https://forum.ansible.com/t/ansible-lint-new-release-4-0-0/29220)

<div class="topic-metadata">

**Author:** [@acrosby](https://forum.ansible.com/u/acrosby)\
**Replies:** 0\
**Last updated:** [December 7, 2018, 6:46pm UTC](https://forum.ansible.com/t/ansible-lint-new-release-4-0-0/29220 "2018-12-07T18:46:11Z")

</div>

On Monday 17 Dec 2018 we plan to release ansible-lint 4.0.0 This is the first release since Ansible became the maintainer, see Oct 22nd mailing list post for details. The changes are summarized in the repository roadma…

---

## [Ansible-lint new release 4.0.0](https://forum.ansible.com/t/ansible-lint-new-release-4-0-0/29219)

<div class="topic-metadata">

**Author:** [@acrosby](https://forum.ansible.com/u/acrosby)\
**Replies:** 0\
**Last updated:** [December 7, 2018, 6:46pm UTC](https://forum.ansible.com/t/ansible-lint-new-release-4-0-0/29219 "2018-12-07T18:46:07Z")

</div>

On Monday 17 Dec 2018 we plan to release ansible-lint 4.0.0 This is the first release since Ansible became the maintainer, see Oct 22nd mailing list post for details. The changes are summarized in the repository roadma…

---

## [SSL termination for docker-compose deploy](https://forum.ansible.com/t/ssl-termination-for-docker-compose-deploy/29217)

<div class="topic-metadata">

**Author:** [@dmakovey](https://forum.ansible.com/u/dmakovey)\
**Replies:** 2\
**Last updated:** [December 7, 2018, 4:49pm UTC](https://forum.ansible.com/t/ssl-termination-for-docker-compose-deploy/29217 "2018-12-07T16:49:53Z")

</div>

Hi, I've found open issue on SSL termination for AWX: https://github.com/ansible/awx/issues/1549 however there seems to be no traction on it. It is hard for me to believe community is running AWX over HTTP (vs HTTPS…

---

## [AWX Proxy Config](https://forum.ansible.com/t/awx-proxy-config/29152)

<div class="topic-metadata">

**Author:** [@Tuco\_Ramirez](https://forum.ansible.com/u/Tuco_Ramirez)\
**Replies:** 2\
**Last updated:** [December 7, 2018, 3:30pm UTC](https://forum.ansible.com/t/awx-proxy-config/29152 "2018-12-07T15:30:38Z")

</div>

Hi I just set up an AWX instance and trying to get ready. It is a Centos 7.5 x64 virtual machine and I 've configured it with a proxy \[1\]. But seems like awx\_task container don’t get Environmental Variables. When I try…

---

## [Ansible variables between playbooks](https://forum.ansible.com/t/ansible-variables-between-playbooks/29216)

<div class="topic-metadata">

**Author:** [@Revanth\_Gopu](https://forum.ansible.com/u/Revanth_Gopu)\
**Replies:** 0\
**Last updated:** [December 7, 2018, 2:08pm UTC](https://forum.ansible.com/t/ansible-variables-between-playbooks/29216 "2018-12-07T14:08:25Z")

</div>

I have a requirement to create directories in UNIX based on group of windows hosts. Plan is to create a playbook1 which runs against windows inventory and set a list/array using set\_stats module and utilize this variable…

---

## [\<127.0.0.1\> using connection plugin network\_cli (was local)](https://forum.ansible.com/t/127-0-0-1-using-connection-plugin-network-cli-was-local/29212)

<div class="topic-metadata">

**Author:** [@Mark\_Zhitomirski](https://forum.ansible.com/u/Mark_Zhitomirski)\
**Replies:** 1\
**Last updated:** [December 7, 2018, 5:04am UTC](https://forum.ansible.com/t/127-0-0-1-using-connection-plugin-network-cli-was-local/29212 "2018-12-07T05:04:38Z")

</div>

Hi! I’ve started writing a new module for managing one Aruba Cloud provider https://github.com/mz0/ansible/blob/329b9c199f/lib/ansible/modules/cloud/aruba\_smart/aruba\_smart\_vm.py and modeled my module on the digital\_o…

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

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