# Archives

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

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

**Page:** 488

---

## [Ansible Module: win\_scheduled\_task  missing startup trigger](https://forum.ansible.com/t/ansible-module-win-scheduled-task-missing-startup-trigger/24440)

<div class="topic-metadata">

**Author:** [@JasonV](https://forum.ansible.com/u/JasonV)\
**Replies:** 1\
**Last updated:** [May 16, 2017, 7:22am UTC](https://forum.ansible.com/t/ansible-module-win-scheduled-task-missing-startup-trigger/24440 "2017-05-16T07:22:14Z")

</div>

Hi, I’m pushing a Task Scheduler to a Win2012 server with the ‘win\_scheduled\_task’ module. The task successfully applies however I would like to change the trigger to begin on startup. I don’t see an option with the mod…

---

## [Number of nodes](https://forum.ansible.com/t/number-of-nodes/24489)

<div class="topic-metadata">

**Author:** [@H\_i\_Nguy\_n\_Duy](https://forum.ansible.com/u/H_i_Nguy_n_Duy)\
**Replies:** 0\
**Last updated:** [May 16, 2017, 1:07am UTC](https://forum.ansible.com/t/number-of-nodes/24489 "2017-05-16T01:07:54Z")

</div>

Does Ansible recommend the number of nodes when executing a Playbook is best? (examples: 100 nodes or smaller or bigger?) Thanks

---

## [Provisioning a given number of cloud machines](https://forum.ansible.com/t/provisioning-a-given-number-of-cloud-machines/24447)

<div class="topic-metadata">

**Author:** [@Ivan\_Ponomarev](https://forum.ansible.com/u/Ivan_Ponomarev)\
**Replies:** 1\
**Last updated:** [May 15, 2017, 11:32pm UTC](https://forum.ansible.com/t/provisioning-a-given-number-of-cloud-machines/24447 "2017-05-15T23:32:27Z")

</div>

Hello, I’m new to Ansible, I’m using DigitalOcean cloud, but my question concerns general Ansible scripting. We have an application that requires, say, 40 servers during Saturday and Sunday and only 20 servers during we…

---

## [Using ansible as a hardening tool](https://forum.ansible.com/t/using-ansible-as-a-hardening-tool/24486)

<div class="topic-metadata">

**Author:** [@Bob\_Nian](https://forum.ansible.com/u/Bob_Nian)\
**Replies:** 0\
**Last updated:** [May 15, 2017, 4:40pm UTC](https://forum.ansible.com/t/using-ansible-as-a-hardening-tool/24486 "2017-05-15T16:40:00Z")

</div>

Is there anyone out there that have used ansible as a hardening tool to harden hypervisors like ESXi, KVM and Windows Server? If so, is there any playbook available or tutorial to use ansible to harden hypervisors? After…

---

## [Request for Comments on ideas for a new Ansible Inventory \`2.0'](https://forum.ansible.com/t/request-for-comments-on-ideas-for-a-new-ansible-inventory-2-0/23477)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 5\
**Last updated:** [May 15, 2017, 3:35pm UTC](https://forum.ansible.com/t/request-for-comments-on-ideas-for-a-new-ansible-inventory-2-0/23477 "2017-05-15T15:35:08Z")

</div>

Dear All, I have been brainstorming for a while, on what should or could be done in redesigning a new Ansible Inventory. I did write up my ideas, in three blog posts, scattered over the last three months, which you can …

---

## [cannot run win\_ping. receiving "ssl: the specified credentials were rejected by the server"](https://forum.ansible.com/t/cannot-run-win-ping-receiving-ssl-the-specified-credentials-were-rejected-by-the-server/24484)

<div class="topic-metadata">

**Author:** [@Leo\_Y](https://forum.ansible.com/u/Leo_Y)\
**Replies:** 1\
**Last updated:** [May 15, 2017, 1:23pm UTC](https://forum.ansible.com/t/cannot-run-win-ping-receiving-ssl-the-specified-credentials-were-rejected-by-the-server/24484 "2017-05-15T13:23:11Z")

</div>

Hello, I try to setup a simple Ansible inventory for Windows server using basic authentication. Both my machines are in Azure. Windows server is not in domain and has a user who is a member in Administrators and Remote …

---

## [Multiple host files with host vars - what is the precedence?](https://forum.ansible.com/t/multiple-host-files-with-host-vars-what-is-the-precedence/24469)

<div class="topic-metadata">

**Author:** [@Dan\_Bateman](https://forum.ansible.com/u/Dan_Bateman)\
**Replies:** 2\
**Last updated:** [May 15, 2017, 8:04am UTC](https://forum.ansible.com/t/multiple-host-files-with-host-vars-what-is-the-precedence/24469 "2017-05-15T08:04:04Z")

</div>

I have a setup where I have multiple inventory files in a directory and my ansible.cfg points to that inventory directory rather than a file. Also using ec2.py for aws dynamic inventory which is inside the inventory dire…

---

## [ANSIBLE: Adding VMware ESX server to Vcenter Failing though Ansible vmware\_host module: Certificate Error](https://forum.ansible.com/t/ansible-adding-vmware-esx-server-to-vcenter-failing-though-ansible-vmware-host-module-certificate-error/24482)

<div class="topic-metadata">

**Author:** [@Victor1](https://forum.ansible.com/u/Victor1)\
**Replies:** 3\
**Last updated:** [May 15, 2017, 1:06am UTC](https://forum.ansible.com/t/ansible-adding-vmware-esx-server-to-vcenter-failing-though-ansible-vmware-host-module-certificate-error/24482 "2017-05-15T01:06:26Z")

</div>

| 0down votefavorite | I am trying to add an ESX host to a vcenter server using Ansible code and vmware\_host module. It’s failing in Certification validation. is there any workaround for this ? \<br\>---\<br\>-…

---

## [Ansible 2.0 VMWare modules](https://forum.ansible.com/t/ansible-2-0-vmware-modules/20202)

<div class="topic-metadata">

**Author:** [@Larry\_Smith1](https://forum.ansible.com/u/Larry_Smith1)\
**Replies:** 35\
**Last updated:** [May 14, 2017, 8:05pm UTC](https://forum.ansible.com/t/ansible-2-0-vmware-modules/20202 "2017-05-14T20:05:31Z")

</div>

Just getting started messing with these new 2.0 VMWare modules and seem to be stuck on an SSL error. Anyone know how to get around this? Any info would be much appreciated. fatal: \[localhost → localhost\]: FAILED! =\> {“a…

---

## [\[WARNING\]: Consider using 'become', 'become\_method', and 'become\_user' rather than running sudo](https://forum.ansible.com/t/warning-consider-using-become-become-method-and-become-user-rather-than-running-sudo/24483)

<div class="topic-metadata">

**Author:** [@devopsaws.santhosh](https://forum.ansible.com/u/devopsaws.santhosh)\
**Replies:** 0\
**Last updated:** [May 14, 2017, 7:29pm UTC](https://forum.ansible.com/t/warning-consider-using-become-become-method-and-become-user-rather-than-running-sudo/24483 "2017-05-14T19:29:16Z")

</div>

when im trying to install jenkins using ansible everything is working fine jenkins is also working but need to know how the message warning remove when i run ansible playbook i’m menstioned under hosts become: true be…

---

## [SSH connection to host failed..](https://forum.ansible.com/t/ssh-connection-to-host-failed/20918)

<div class="topic-metadata">

**Author:** [@Andrzej\_K](https://forum.ansible.com/u/Andrzej_K)\
**Replies:** 3\
**Last updated:** [May 14, 2017, 3:21pm UTC](https://forum.ansible.com/t/ssh-connection-to-host-failed/20918 "2017-05-14T15:21:42Z")

</div>

Hello Guys, Can someone of you help me with this strange case? I have host running CentOS 6.7 x86\_64. My ansible management host is CentOS 7.2 x86\_64, ansible version 1.9.4. When I try to run playbook against my host I’…

---

## [Ping my virtual machine through Ansible](https://forum.ansible.com/t/ping-my-virtual-machine-through-ansible/24480)

<div class="topic-metadata">

**Author:** [@Bob\_Nian](https://forum.ansible.com/u/Bob_Nian)\
**Replies:** 2\
**Last updated:** [May 14, 2017, 7:39am UTC](https://forum.ansible.com/t/ping-my-virtual-machine-through-ansible/24480 "2017-05-14T07:39:21Z")

</div>

Been wondering, since I’m new to Ansible, I am trying to ping my Virtual Machine which is running on a Bare-Metal ESXI 6.5 using Ansible’s ’ ansible ping -m \<vm’s IP\>’ but it seems unsuccessful even though I am able to p…

---

## [Use cases for set\_fact instead of defining vars](https://forum.ansible.com/t/use-cases-for-set-fact-instead-of-defining-vars/24481)

<div class="topic-metadata">

**Author:** [@Listing](https://forum.ansible.com/u/Listing)\
**Replies:** 0\
**Last updated:** [May 13, 2017, 8:42pm UTC](https://forum.ansible.com/t/use-cases-for-set-fact-instead-of-defining-vars/24481 "2017-05-13T20:42:49Z")

</div>

Hi, You have set\_fact and the ability to set vars, but when should one use set\_fact? In the ansible-doc I see the following example, but when setting ‘one\_fact’, what is the benefit instead of defining a var? Wouldn’t i…

---

## [group variable in with\_items](https://forum.ansible.com/t/group-variable-in-with-items/24471)

<div class="topic-metadata">

**Author:** [@Ansible\_Novice](https://forum.ansible.com/u/Ansible_Novice)\
**Replies:** 1\
**Last updated:** [May 13, 2017, 8:36pm UTC](https://forum.ansible.com/t/group-variable-in-with-items/24471 "2017-05-13T20:36:02Z")

</div>

Hello, I am new to ansible. Trying to understand a piece of ansible using debug. name: Evaluate oo\_all\_hosts add\_host: name: “{{ item }}” groups: oo\_all\_hosts ansible\_ssh\_user: “{{ g\_ssh\_user | default(omit) }}” …

---

## [\[Question\] Do dynamic inventories work with static inventories + group\_vars](https://forum.ansible.com/t/question-do-dynamic-inventories-work-with-static-inventories-group-vars/24479)

<div class="topic-metadata">

**Author:** [@j.barrett\_Strausser](https://forum.ansible.com/u/j.barrett_Strausser)\
**Replies:** 1\
**Last updated:** [May 13, 2017, 5:28pm UTC](https://forum.ansible.com/t/question-do-dynamic-inventories-work-with-static-inventories-group-vars/24479 "2017-05-13T17:28:41Z")

</div>

I have a static inventory file similar to \[production:children\] elasticsearch \[elasticsearch\] I have a dynamic inventory file that follows the guidance at https://www.jeffgeerling.com/blog/creating-custom-dynamic-i…

---

## [Problem returning IP address from custom fact](https://forum.ansible.com/t/problem-returning-ip-address-from-custom-fact/24478)

<div class="topic-metadata">

**Author:** [@dbenson2492](https://forum.ansible.com/u/dbenson2492)\
**Replies:** 1\
**Last updated:** [May 13, 2017, 1:34pm UTC](https://forum.ansible.com/t/problem-returning-ip-address-from-custom-fact/24478 "2017-05-13T13:34:52Z")

</div>

I see this problem when running a custom fact that is trying to return an IP address string. Ansible reports an empty string, but I see the correct output when I run the fact manually on the target. Running Ansible 2.2…

---

## [installing ansbile - ImportError: No module named ansible.constants](https://forum.ansible.com/t/installing-ansbile-importerror-no-module-named-ansible-constants/24474)

<div class="topic-metadata">

**Author:** [@madhan0618](https://forum.ansible.com/u/madhan0618)\
**Replies:** 4\
**Last updated:** [May 12, 2017, 6:17pm UTC](https://forum.ansible.com/t/installing-ansbile-importerror-no-module-named-ansible-constants/24474 "2017-05-12T18:17:40Z")

</div>

I downloaded the ansible latest from https://releases.ansible.com/ansible/ untarred and ran ansible, getting the below error Traceback (most recent call last): File “./ansible”, line 43, in import ansible.constants…

---

## [Ansible report](https://forum.ansible.com/t/ansible-report/24476)

<div class="topic-metadata">

**Author:** [@Emmanuel\_BOCQUET](https://forum.ansible.com/u/Emmanuel_BOCQUET)\
**Replies:** 0\
**Last updated:** [May 12, 2017, 6:12pm UTC](https://forum.ansible.com/t/ansible-report/24476 "2017-05-12T18:12:34Z")

</div>

Hi, I wrote a script to generate a report (web) from individual ansible run. The script is especially useful for individual run on a large number of servers. No dependency, no database, no web server are necessary. ht…

---

## [Ansible report](https://forum.ansible.com/t/ansible-report/24475)

<div class="topic-metadata">

**Author:** [@Emmanuel\_BOCQUET](https://forum.ansible.com/u/Emmanuel_BOCQUET)\
**Replies:** 0\
**Last updated:** [May 12, 2017, 5:48pm UTC](https://forum.ansible.com/t/ansible-report/24475 "2017-05-12T17:48:52Z")

</div>

Hi, I wrote a script to generate a report (web) from individual ansible run. The script is especially useful for individual run on a large number of servers. No dependency, no database, no web server are necessary. ht…

---

## [copy src lookup](https://forum.ansible.com/t/copy-src-lookup/24463)

<div class="topic-metadata">

**Author:** [@Michael\_Stroder](https://forum.ansible.com/u/Michael_Stroder)\
**Replies:** 1\
**Last updated:** [May 12, 2017, 4:18pm UTC](https://forum.ansible.com/t/copy-src-lookup/24463 "2017-05-12T16:18:49Z")

</div>

HI! Is it possible to lookup the pathname of a local file on the ansible controller used in a copy task for src: \*before\* performing the copy task? Ciao, Michael.

---

## [I am using ansible 2.2 and new to this. I  need to know the current jinja version on my ansible and command to update it to 2.7 as i need to use the "map" which is avilable in 2.7 only](https://forum.ansible.com/t/i-am-using-ansible-2-2-and-new-to-this-i-need-to-know-the-current-jinja-version-on-my-ansible-and-command-to-update-it-to-2-7-as-i-need-to-use-the-map-which-is-avilable-in-2-7-only/24472)

<div class="topic-metadata">

**Author:** [@nishant\_bawane](https://forum.ansible.com/u/nishant_bawane)\
**Replies:** 2\
**Last updated:** [May 12, 2017, 3:45pm UTC](https://forum.ansible.com/t/i-am-using-ansible-2-2-and-new-to-this-i-need-to-know-the-current-jinja-version-on-my-ansible-and-command-to-update-it-to-2-7-as-i-need-to-use-the-map-which-is-avilable-in-2-7-only/24472 "2017-05-12T15:45:33Z")

</div>

I am using ansible 2.2 and new to this. I need to know the current jinja version on my ansible and command to update it to 2.7 as i need to use the “map” which is avilable in 2.7 only

---

## [install the sshpass program](https://forum.ansible.com/t/install-the-sshpass-program/24473)

<div class="topic-metadata">

**Author:** [@madhan0618](https://forum.ansible.com/u/madhan0618)\
**Replies:** 3\
**Last updated:** [May 12, 2017, 3:19pm UTC](https://forum.ansible.com/t/install-the-sshpass-program/24473 "2017-05-12T15:19:18Z")

</div>

I am trying to run my ansible playbook and get the below error FAILED! =\> {“failed”: true, “msg”: “to use the ’ ssh’ connection type with passwords, you must install the sshpass program”} my server from where i am run…

---

## [EC2 dynamic inv and group\_vars not working.](https://forum.ansible.com/t/ec2-dynamic-inv-and-group-vars-not-working/24444)

<div class="topic-metadata">

**Author:** [@Leszek\_Niewiadomski](https://forum.ansible.com/u/Leszek_Niewiadomski)\
**Replies:** 1\
**Last updated:** [May 12, 2017, 2:35pm UTC](https://forum.ansible.com/t/ec2-dynamic-inv-and-group-vars-not-working/24444 "2017-05-12T14:35:47Z")

</div>

Hello. I’ve got problem with dynamic inventory and group\_vars working in ansible: Directory layout \` inventories scale ec2.py ec2.ini hosts group\_vars - link to …/…/group\_vars group\_vars roles playbook.yml ansible.cf…

---

## ["hash\_behaviour = merge" issue](https://forum.ansible.com/t/hash-behaviour-merge-issue/24376)

<div class="topic-metadata">

**Author:** [@Tim\_Clark](https://forum.ansible.com/u/Tim_Clark)\
**Replies:** 5\
**Last updated:** [May 12, 2017, 2:13pm UTC](https://forum.ansible.com/t/hash-behaviour-merge-issue/24376 "2017-05-12T14:13:00Z")

</div>

Hi, I would like to build up a variable from defaults, group\_vars and host\_vars - but hash\_behaviour doesn’t seem to be working as I’d expect it to. The plan is to have a default config (in this case haproxy) and then …

---

## [Please help with json\_query filter](https://forum.ansible.com/t/please-help-with-json-query-filter/24461)

<div class="topic-metadata">

**Author:** [@VenomMsk](https://forum.ansible.com/u/VenomMsk)\
**Replies:** 2\
**Last updated:** [May 12, 2017, 11:34am UTC](https://forum.ansible.com/t/please-help-with-json-query-filter/24461 "2017-05-12T11:34:19Z")

</div>

Hi everybody! I have a JSON structure like this: raw\_list= \[ { content: \[ { name: name1, prop: val1}, { name: name2, prop: val2} \]}, { content: \[ { name: name3, prop: val3} \]} \] and I need to get from this arr…

---

## [loop\_control with with\_together](https://forum.ansible.com/t/loop-control-with-with-together/24462)

<div class="topic-metadata">

**Author:** [@VenomMsk](https://forum.ansible.com/u/VenomMsk)\
**Replies:** 1\
**Last updated:** [May 12, 2017, 9:10am UTC](https://forum.ansible.com/t/loop-control-with-with-together/24462 "2017-05-12T09:10:24Z")

</div>

Hi, I have two sets of data: set1 = \[ 1, 2 \] set2 = \[ \[‘a’,‘b’,‘c’\], \[‘d’,‘e’\] \] For every element from set1 I need to perform a task with parameters from set2. So I need to perform tasks with following parameters: t…

---

## [Adding a repo file before doing a yum install](https://forum.ansible.com/t/adding-a-repo-file-before-doing-a-yum-install/24437)

<div class="topic-metadata">

**Author:** [@Nicholas\_Sheridan](https://forum.ansible.com/u/Nicholas_Sheridan)\
**Replies:** 2\
**Last updated:** [May 12, 2017, 8:07am UTC](https://forum.ansible.com/t/adding-a-repo-file-before-doing-a-yum-install/24437 "2017-05-12T08:07:29Z")

</div>

Hi forum newbie alert I want to do this: sudo vi /etc/yum.repos.d/kibana.repo \[kibana-4.4\] name=Kibana repository for 4.4.x packages baseurl=http://packages.elastic.co/kibana/4.4/centos gpgcheck=1 gpgkey=http://pa…

---

## [setting variables inside a loop](https://forum.ansible.com/t/setting-variables-inside-a-loop/24415)

<div class="topic-metadata">

**Author:** [@Pshem\_Kowalczyk](https://forum.ansible.com/u/Pshem_Kowalczyk)\
**Replies:** 2\
**Last updated:** [May 12, 2017, 3:30am UTC](https://forum.ansible.com/t/setting-variables-inside-a-loop/24415 "2017-05-12T03:30:27Z")

</div>

Hi, I think I’m missing something obvious, so please point me in the right direction (ansible 2.3). name: load and run services include\_role: name: “resource\_{{ item.resource }}” vars: resource: “{{ item }}” with…

---

## [Ansible - Account Verification](https://forum.ansible.com/t/ansible-account-verification/24468)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 0\
**Last updated:** [May 12, 2017, 2:46am UTC](https://forum.ansible.com/t/ansible-account-verification/24468 "2017-05-12T02:46:52Z")

</div>

You just need a module that gets the info you want, \`setup\` is the 'default fact gathering module' but its not really designed for audits. The \`getent\` module returns system db information, like users, but might not g…

---

## [The best way to change MySQL root password without copying a file text](https://forum.ansible.com/t/the-best-way-to-change-mysql-root-password-without-copying-a-file-text/24464)

<div class="topic-metadata">

**Author:** [@Tadeu\_Bernacchi](https://forum.ansible.com/u/Tadeu_Bernacchi)\
**Replies:** 1\
**Last updated:** [May 12, 2017, 1:44am UTC](https://forum.ansible.com/t/the-best-way-to-change-mysql-root-password-without-copying-a-file-text/24464 "2017-05-12T01:44:48Z")

</div>

Hello guys, I’m new at Ansible and i was playing around with it and i was setting a galera-cluster with MariaDB, everything went well, but when i tried to set mysql\_secure\_installation using my playbook with Ansible i h…

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

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