# Ansible Project

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

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

**Page:** 251

---

## [vmware-guest fail to deploying vm to vcenter](https://forum.ansible.com/t/vmware-guest-fail-to-deploying-vm-to-vcenter/27928)

<div class="topic-metadata">

**Author:** [@Umesh\_Gowda](https://forum.ansible.com/u/Umesh_Gowda)\
**Replies:** 0\
**Last updated:** [July 2, 2018, 9:54am UTC](https://forum.ansible.com/t/vmware-guest-fail-to-deploying-vm-to-vcenter/27928 "2018-07-02T09:54:04Z")

</div>

hi All, Getting error below. Does it mandatory to mention the resource pool?. I am able to deploy vms without any issue if i enter the ESXI host name. If i enter the cluster name I am getting following below error. { …

---

## [Problem Add MSA account to domain group using: win\_domain\_user model](https://forum.ansible.com/t/problem-add-msa-account-to-domain-group-using-win-domain-user-model/27925)

<div class="topic-metadata">

**Author:** [@lior\_hollander](https://forum.ansible.com/u/lior_hollander)\
**Replies:** 0\
**Last updated:** [July 1, 2018, 9:01am UTC](https://forum.ansible.com/t/problem-add-msa-account-to-domain-group-using-win-domain-user-model/27925 "2018-07-01T09:01:46Z")

</div>

Hey, can anybody tell me how can i add an MSA to a windows domain group? i tried with win\_domain\_user model but got the below error: “The password does not meet the length, complexity, or history requirement of the do…

---

## [Re-using set\_fact variable in other role](https://forum.ansible.com/t/re-using-set-fact-variable-in-other-role/27902)

<div class="topic-metadata">

**Author:** [@Paolo\_P](https://forum.ansible.com/u/Paolo_P)\
**Replies:** 2\
**Last updated:** [June 30, 2018, 10:37am UTC](https://forum.ansible.com/t/re-using-set-fact-variable-in-other-role/27902 "2018-06-30T10:37:03Z")

</div>

Hello, I need to execute a role with a conditional based on a variable set on a different host/group. The variable is set doing a query on host db1 and a set\_fact : hosts: db1 tasks: name: Check for DB shell: psql …

---

## [How to use the task output as a listvar for another task](https://forum.ansible.com/t/how-to-use-the-task-output-as-a-listvar-for-another-task/27911)

<div class="topic-metadata">

**Author:** [@Guida\_Brito](https://forum.ansible.com/u/Guida_Brito)\
**Replies:** 2\
**Last updated:** [June 30, 2018, 10:20am UTC](https://forum.ansible.com/t/how-to-use-the-task-output-as-a-listvar-for-another-task/27911 "2018-06-30T10:20:36Z")

</div>

Hi guys, Can you please help in these. If I have a task inside of a playbook that give the following result: \[ansible@ansible ~\]$ ansible node1 -m getent -a ‘database=group key=users split=“,”’ node1 | SUCCESS =\> { …

---

## [Galaxy Upgrade and Maintenance Window](https://forum.ansible.com/t/galaxy-upgrade-and-maintenance-window/27916)

<div class="topic-metadata">

**Author:** [@chousekn](https://forum.ansible.com/u/chousekn)\
**Replies:** 1\
**Last updated:** [June 30, 2018, 5:36am UTC](https://forum.ansible.com/t/galaxy-upgrade-and-maintenance-window/27916 "2018-06-30T05:36:44Z")

</div>

The Ansible Galaxy site will be undergoing maintenance and an upgrade to version 3.0 starting this evening at 12:00 AM Eastern, 30 June. Be prepared for Galaxy to be unreachable for an hour or more while the upgrade tak…

---

## [ansible 2.5.4 installation rpm is missing keys](https://forum.ansible.com/t/ansible-2-5-4-installation-rpm-is-missing-keys/27919)

<div class="topic-metadata">

**Author:** [@Michael\_Roy](https://forum.ansible.com/u/Michael_Roy)\
**Replies:** 2\
**Last updated:** [June 29, 2018, 8:55pm UTC](https://forum.ansible.com/t/ansible-2-5-4-installation-rpm-is-missing-keys/27919 "2018-06-29T20:55:30Z")

</div>

I am attempting to install ansible 2.5.4 using the rpm at https://releases.ansible.com/ansible/rpm/release/epel-7-x86\_64/ansible-2.5.4-1.el7.ans.noarch.rpm Although rpm installs ansible and it runs, rpm reports that it …

---

## [Rolling Update Batch Size Question](https://forum.ansible.com/t/rolling-update-batch-size-question/27912)

<div class="topic-metadata">

**Author:** [@muhammed](https://forum.ansible.com/u/muhammed)\
**Replies:** 1\
**Last updated:** [June 29, 2018, 6:04pm UTC](https://forum.ansible.com/t/rolling-update-batch-size-question/27912 "2018-06-29T18:04:10Z")

</div>

The example in the documentation is as follows: \` - name: test play hosts: webservers serial: - 1 - 5 - "20%" \` With regards to the the last item (20%) - will this only perform actions on the remaining 20% …

---

## [Ansible Netscaler Module - Just Disable the service\_group](https://forum.ansible.com/t/ansible-netscaler-module-just-disable-the-service-group/27773)

<div class="topic-metadata">

**Author:** [@Balaji1](https://forum.ansible.com/u/Balaji1)\
**Replies:** 3\
**Last updated:** [June 29, 2018, 4:14pm UTC](https://forum.ansible.com/t/ansible-netscaler-module-just-disable-the-service-group/27773 "2018-06-29T16:14:46Z")

</div>

Hello All, Could you please help me to code this requirement. I am trying to create a playbook which does pre\_task, task and post\_task pre\_task Disable a service\_group containing 6 servers in netscaler. Task Deploy …

---

## [remote user and become\_user is different, after ssh, become\_user should work.](https://forum.ansible.com/t/remote-user-and-become-user-is-different-after-ssh-become-user-should-work/27882)

<div class="topic-metadata">

**Author:** [@cemohanbabu](https://forum.ansible.com/u/cemohanbabu)\
**Replies:** 3\
**Last updated:** [June 29, 2018, 11:11am UTC](https://forum.ansible.com/t/remote-user-and-become-user-is-different-after-ssh-become-user-should-work/27882 "2018-06-29T11:11:32Z")

</div>

I’m confused with the use of become\_user. With config given in OP: the work that ansible will do is put into a python script on the remote machine, something like: /tmp/ansible…/setup.py that directory and file is cre…

---

## [take backup from httpd server folder / httpd.conf file into github repo backup folder on every changes](https://forum.ansible.com/t/take-backup-from-httpd-server-folder-httpd-conf-file-into-github-repo-backup-folder-on-every-changes/27910)

<div class="topic-metadata">

**Author:** [@Pradeep\_Drall](https://forum.ansible.com/u/Pradeep_Drall)\
**Replies:** 0\
**Last updated:** [June 29, 2018, 7:43am UTC](https://forum.ansible.com/t/take-backup-from-httpd-server-folder-httpd-conf-file-into-github-repo-backup-folder-on-every-changes/27910 "2018-06-29T07:43:23Z")

</div>

Hi I would like to take backup from remote httpd server folder / httpd.conf file into remote github repo backup folder on every changes. Please do let me know how to do it. I tried with copy and synchronized module but…

---

## [Anybody interested in an Ansible Lookup Plugin for Thycotic Secret Server Professional?](https://forum.ansible.com/t/anybody-interested-in-an-ansible-lookup-plugin-for-thycotic-secret-server-professional/27899)

<div class="topic-metadata">

**Author:** [@mscholl.corp](https://forum.ansible.com/u/mscholl.corp)\
**Replies:** 2\
**Last updated:** [June 29, 2018, 6:10am UTC](https://forum.ansible.com/t/anybody-interested-in-an-ansible-lookup-plugin-for-thycotic-secret-server-professional/27899 "2018-06-29T06:10:00Z")

</div>

Hi, I just posted this https://groups.google.com/d/msg/ansible-devel/\_ILFeWSzW8o/4yfTiapMBgAJ in order to ask if there is any interest in an Ansible Lookup Plugin for Thycotic Secret Server Professional before I realis…

---

## [Ansible 2.6.0 Final is available](https://forum.ansible.com/t/ansible-2-6-0-final-is-available/27909)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [June 29, 2018, 6:09am UTC](https://forum.ansible.com/t/ansible-2-6-0-final-is-available/27909 "2018-06-29T06:09:32Z")

</div>

Hi all – we’re happy to announce that the general release of Ansible 2.6.0 is now available! How do you get it?

---

## [ansible equivalent of puppet defined type](https://forum.ansible.com/t/ansible-equivalent-of-puppet-defined-type/27903)

<div class="topic-metadata">

**Author:** [@mzagrabe](https://forum.ansible.com/u/mzagrabe)\
**Replies:** 1\
**Last updated:** [June 29, 2018, 1:12am UTC](https://forum.ansible.com/t/ansible-equivalent-of-puppet-defined-type/27903 "2018-06-29T01:12:16Z")

</div>

Greetings, I’m just getting started with Ansible - it’s nice. I’m familiar with Puppet (versions 2 and 3) and know my way around their lingo and paradigms. I’ve seen loops in Ansible and I believe they might be able to…

---

## [Ansible Galaxy Migration and Potential Disruption of Service](https://forum.ansible.com/t/ansible-galaxy-migration-and-potential-disruption-of-service/27907)

<div class="topic-metadata">

**Author:** [@Timothy\_Appnel1](https://forum.ansible.com/u/Timothy_Appnel1)\
**Replies:** 0\
**Last updated:** [June 29, 2018, 12:22am UTC](https://forum.ansible.com/t/ansible-galaxy-migration-and-potential-disruption-of-service/27907 "2018-06-29T00:22:58Z")

</div>

This weekend starting Saturday at 12AM EDT, we will be migrating the Ansible Galaxy hub to new containerized infrastructure provided by Red Hat OpenShift Dedicated and in the process rolling out a modernized code base an…

---

## [unable to connect to database, check login\_user and login\_password are correct or /root/.my.cnf has the credentials](https://forum.ansible.com/t/unable-to-connect-to-database-check-login-user-and-login-password-are-correct-or-root-my-cnf-has-the-credentials/27905)

<div class="topic-metadata">

**Author:** [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Replies:** 0\
**Last updated:** [June 28, 2018, 9:38pm UTC](https://forum.ansible.com/t/unable-to-connect-to-database-check-login-user-and-login-password-are-correct-or-root-my-cnf-has-the-credentials/27905 "2018-06-28T21:38:47Z")

</div>

Are you using debian ? Ubuntu ? Which version ? For debian, this link can explain what is the defaut access : https://wiki.debian.org/MySql Regards, JYL

---

## [Error when copy config to a file](https://forum.ansible.com/t/error-when-copy-config-to-a-file/27901)

<div class="topic-metadata">

**Author:** [@Ahmed\_Aljawad](https://forum.ansible.com/u/Ahmed_Aljawad)\
**Replies:** 1\
**Last updated:** [June 28, 2018, 8:02pm UTC](https://forum.ansible.com/t/error-when-copy-config-to-a-file/27901 "2018-06-28T20:02:09Z")

</div>

Error Below TASK \[copy-to-folder\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[ASCMN01\]: FAILED! =\> {“msg”: “The task inc…

---

## [Removing a manually set fact from the fact cache](https://forum.ansible.com/t/removing-a-manually-set-fact-from-the-fact-cache/27855)

<div class="topic-metadata">

**Author:** [@Matt\_Hickok](https://forum.ansible.com/u/Matt_Hickok)\
**Replies:** 4\
**Last updated:** [June 28, 2018, 4:35pm UTC](https://forum.ansible.com/t/removing-a-manually-set-fact-from-the-fact-cache/27855 "2018-06-28T16:35:59Z")

</div>

Hello, I am setting some facts for a handful of nodes which do not have Python (so I can’t use the setup module). I am persisting the facts by using the cacheable: true flag. I have it working as intended but as I have b…

---

## [splitting mangled var by delimeter](https://forum.ansible.com/t/splitting-mangled-var-by-delimeter/27891)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 4\
**Last updated:** [June 28, 2018, 4:24pm UTC](https://forum.ansible.com/t/splitting-mangled-var-by-delimeter/27891 "2018-06-28T16:24:16Z")

</div>

Basically, I am trying to grab the date 1 week from the date when the playbook is run. If there is a better way to do this besides the below, I am all ears. I have the following variable/output. I would like to split it…

---

## [stdout'\\n\\nThe error appears to have been in '/home/](https://forum.ansible.com/t/stdout-n-nthe-error-appears-to-have-been-in-home/27887)

<div class="topic-metadata">

**Author:** [@Ahmed\_Aljawad](https://forum.ansible.com/u/Ahmed_Aljawad)\
**Replies:** 2\
**Last updated:** [June 28, 2018, 3:45pm UTC](https://forum.ansible.com/t/stdout-n-nthe-error-appears-to-have-been-in-home/27887 "2018-06-28T15:45:16Z")

</div>

Error### ‘stdout’\\n\\nThe error appears to have been in ‘/home/nwadmin/Backup.yml’: line 15, column 8, but may\\nbe elsewhere in the file depending on the exact syntax problem.\\n\\nThe offending line appears to be:\\n\\n regi…

---

## [merge dictionary intelligent mode???](https://forum.ansible.com/t/merge-dictionary-intelligent-mode/27900)

<div class="topic-metadata">

**Author:** [@cava\_cavamagie](https://forum.ansible.com/u/cava_cavamagie)\
**Replies:** 0\
**Last updated:** [June 28, 2018, 2:36pm UTC](https://forum.ansible.com/t/merge-dictionary-intelligent-mode/27900 "2018-06-28T14:36:03Z")

</div>

hi i have to pass to a role a dict that’s the union from 3 and i want the montain the precendece default–\> group → host now i use for example there is some most intelligent? name: add apt repo apt\_repository: repo…

---

## [ERROR! Syntax Error while loading YAML.   mapping values are not allowed in this context](https://forum.ansible.com/t/error-syntax-error-while-loading-yaml-mapping-values-are-not-allowed-in-this-context/27894)

<div class="topic-metadata">

**Author:** [@VS1](https://forum.ansible.com/u/VS1)\
**Replies:** 1\
**Last updated:** [June 28, 2018, 2:24pm UTC](https://forum.ansible.com/t/error-syntax-error-while-loading-yaml-mapping-values-are-not-allowed-in-this-context/27894 "2018-06-28T14:24:01Z")

</div>

\` name: Update apt cahce apt: update\_cache=yes cache\_valid\_time=3600 name: Install NFS Common on FileServer apt: name={{ item }} state=present with\_items: nfs-common name: Create webservers directory file…

---

## [Failed to import MySQL DB via Ansible playbook](https://forum.ansible.com/t/failed-to-import-mysql-db-via-ansible-playbook/27898)

<div class="topic-metadata">

**Author:** [@Ilya\_Ulis](https://forum.ansible.com/u/Ilya_Ulis)\
**Replies:** 0\
**Last updated:** [June 28, 2018, 1:31pm UTC](https://forum.ansible.com/t/failed-to-import-mysql-db-via-ansible-playbook/27898 "2018-06-28T13:31:24Z")

</div>

Hi, I’m trying to import DB to MySQL via Ansible. For test, I cloned test\_db from https://github.com/datacharmer/test\_db.git and placed it to /test\_db Than I run the following: mysql\_db: login\_user: root login\_pass…

---

## [Unable to install Windows Updates using Ansible 'win\_update' Module](https://forum.ansible.com/t/unable-to-install-windows-updates-using-ansible-win-update-module/27500)

<div class="topic-metadata">

**Author:** [@Dinesh\_Vashisht](https://forum.ansible.com/u/Dinesh_Vashisht)\
**Replies:** 3\
**Last updated:** [June 28, 2018, 1:31pm UTC](https://forum.ansible.com/t/unable-to-install-windows-updates-using-ansible-win-update-module/27500 "2018-06-28T13:31:03Z")

</div>

Hello Team, We’re using the ‘win\_updates’ module for installing Windows updates on servers, following is the playbook section: tasks: name: Applying Security Windows Updates win\_updates: category\_name: SecurityUpda…

---

## [how to use "when: variableA == variableB"](https://forum.ansible.com/t/how-to-use-when-variablea-variableb/27885)

<div class="topic-metadata">

**Author:** [@JS11](https://forum.ansible.com/u/JS11)\
**Replies:** 7\
**Last updated:** [June 28, 2018, 8:39am UTC](https://forum.ansible.com/t/how-to-use-when-variablea-variableb/27885 "2018-06-28T08:39:36Z")

</div>

Hello I would to run a specific role when two variables are equal to each other: name: Conrol Application hosts: host1.example.com remote\_user: user1 become: no gather\_facts: no tasks: include\_role: name: appv…

---

## [migrate user accounts (password hashes) from one system to another?](https://forum.ansible.com/t/migrate-user-accounts-password-hashes-from-one-system-to-another/27892)

<div class="topic-metadata">

**Author:** [@Joseph\_Filla](https://forum.ansible.com/u/Joseph_Filla)\
**Replies:** 2\
**Last updated:** [June 28, 2018, 12:54am UTC](https://forum.ansible.com/t/migrate-user-accounts-password-hashes-from-one-system-to-another/27892 "2018-06-28T00:54:34Z")

</div>

We’ve got some ancient ftp and sftp servers which we need to retire. Wondering how/if we could grab accounts (/etc/passwd + /etc/shadow) from old server and populate to new. Old #1 RHEL 4.5 Old #2 Ubuntu 12 LTS New RH…

---

## [Stat not working as expected for file exists or not](https://forum.ansible.com/t/stat-not-working-as-expected-for-file-exists-or-not/27890)

<div class="topic-metadata">

**Author:** [@Raj5](https://forum.ansible.com/u/Raj5)\
**Replies:** 2\
**Last updated:** [June 27, 2018, 10:13pm UTC](https://forum.ansible.com/t/stat-not-working-as-expected-for-file-exists-or-not/27890 "2018-06-27T22:13:22Z")

</div>

Hello, I am trying to use “STAT” to verify if file exists or not but it’s not working as expected, looks like it’s not supporting standard variables like inventory\_hostname & Playbook\_dir this is my task/main.yml na…

---

## [display ansible output via html](https://forum.ansible.com/t/display-ansible-output-via-html/27881)

<div class="topic-metadata">

**Author:** [@rafi\_rod](https://forum.ansible.com/u/rafi_rod)\
**Replies:** 3\
**Last updated:** [June 27, 2018, 8:42pm UTC](https://forum.ansible.com/t/display-ansible-output-via-html/27881 "2018-06-27T20:42:31Z")

</div>

hi, i would like to see ansible playbook output via html, someone did this ? or can help with that ? Thanks Rafi

---

## [systemctl](https://forum.ansible.com/t/systemctl/27815)

<div class="topic-metadata">

**Author:** [@Pradeep\_Drall](https://forum.ansible.com/u/Pradeep_Drall)\
**Replies:** 4\
**Last updated:** [June 27, 2018, 1:02pm UTC](https://forum.ansible.com/t/systemctl/27815 "2018-06-27T13:02:14Z")

</div>

Hi, I created playbook for “sudo systemctl start qdrouterd.service” but its not working in Ansible tower and throwing error “ERROR! ‘service’ is not a valid attribute for a Play”. I mentioned below play for systemctl. I…

---

## [variables question](https://forum.ansible.com/t/variables-question/27877)

<div class="topic-metadata">

**Author:** [@AJS](https://forum.ansible.com/u/AJS)\
**Replies:** 2\
**Last updated:** [June 27, 2018, 12:14pm UTC](https://forum.ansible.com/t/variables-question/27877 "2018-06-27T12:14:00Z")

</div>

What is the proper way for me to leave certain variables blank within a play? Right now if I run i get errors back because all variables are not used in each array. The first 2 permission\_vars are directly from the win\_a…

---

## [How to create a user before a role is executed](https://forum.ansible.com/t/how-to-create-a-user-before-a-role-is-executed/27876)

<div class="topic-metadata">

**Author:** [@Jesus\_Gomez](https://forum.ansible.com/u/Jesus_Gomez)\
**Replies:** 1\
**Last updated:** [June 27, 2018, 12:10pm UTC](https://forum.ansible.com/t/how-to-create-a-user-before-a-role-is-executed/27876 "2018-06-27T12:10:48Z")

</div>

Hello. I'm trying to use the role \`rvm\_io.ruby\`\[1\] specifying the variable \`rvm1\_user\` to a user that is being created in the same playbook, but the provisioning fail because the role is being executed before that ha…

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

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