# Latest

**URL:** https://forum.ansible.com/latest.md?page=543

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

**Page:** 544

---

## [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

---

## [Celery Repeating calls](https://forum.ansible.com/t/celery-repeating-calls/27904)

<div class="topic-metadata">

**Author:** [@Rishabh\_Thakkar](https://forum.ansible.com/u/Rishabh_Thakkar)\
**Replies:** 0\
**Last updated:** [June 28, 2018, 9:26pm UTC](https://forum.ansible.com/t/celery-repeating-calls/27904 "2018-06-28T21:26:58Z")

</div>

I am running an Docker instance of AWX on a Kubernetes box, but while testing the maintenance jobs, it seems like the jobs are getting stuck in the waiting state. However, when I run the exact same Docker instance on the…

---

## [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…

---

## [Login issues with fresh docker-compose install.](https://forum.ansible.com/t/login-issues-with-fresh-docker-compose-install/27893)

<div class="topic-metadata">

**Author:** [@alex\_juarez](https://forum.ansible.com/u/alex_juarez)\
**Replies:** 1\
**Last updated:** [June 28, 2018, 4:02pm UTC](https://forum.ansible.com/t/login-issues-with-fresh-docker-compose-install/27893 "2018-06-28T16:02:42Z")

</div>

Hi, I’m stuck here. Upon doing a fresh docker-compose install I get the following when bringing up the login page. I’ve tried different to install with docker standalone and still get the same issue. Thoughts? Thank…

---

## [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…

---

## [regx and playbooks](https://forum.ansible.com/t/regx-and-playbooks/27896)

<div class="topic-metadata">

**Author:** [@apple.talk](https://forum.ansible.com/u/apple.talk)\
**Replies:** 1\
**Last updated:** [June 28, 2018, 2:38pm UTC](https://forum.ansible.com/t/regx-and-playbooks/27896 "2018-06-28T14:38:28Z")

</div>

Hi folks, I will search one line with “version” in the variable “output”, but I don’t find the correct syntax. Who can I find a string in a ansible output?

---

## [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

---

## [ERROR:  relation "conf\_setting" does not exist at character 158](https://forum.ansible.com/t/error-relation-conf-setting-does-not-exist-at-character-158/27852)

<div class="topic-metadata">

**Author:** [@Sudheer\_Jejamma](https://forum.ansible.com/u/Sudheer_Jejamma)\
**Replies:** 4\
**Last updated:** [June 27, 2018, 8:00pm UTC](https://forum.ansible.com/t/error-relation-conf-setting-does-not-exist-at-character-158/27852 "2018-06-27T20:00:18Z")

</div>

Hi Team, I’m getting the following error in postgres logs. Can someone please help me understand why we are getting this error ? ERROR: relation “conf\_setting” does not exist at character 158 STATEMENT: SELECT “conf\_s…

---

## [AWX set-up](https://forum.ansible.com/t/awx-set-up/27862)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 1\
**Last updated:** [June 27, 2018, 6:25pm UTC](https://forum.ansible.com/t/awx-set-up/27862 "2018-06-27T18:25:46Z")

</div>

Hi, All. I’ve been an Ansible user for quite some time, and wanted to give AWX a try. Using instructions found here: How to Install Ansible AWX on CentOS 7 - https://www.howtoforge.com/tutorial/centos-ansible-awx-instal…

---

## [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…

---

## [Ansible Error: The task includes an option with an undefined variable. When Creating new folders](https://forum.ansible.com/t/ansible-error-the-task-includes-an-option-with-an-undefined-variable-when-creating-new-folders/27884)

<div class="topic-metadata">

**Author:** [@VS1](https://forum.ansible.com/u/VS1)\
**Replies:** 2\
**Last updated:** [June 27, 2018, 11:54am UTC](https://forum.ansible.com/t/ansible-error-the-task-includes-an-option-with-an-undefined-variable-when-creating-new-folders/27884 "2018-06-27T11:54:17Z")

</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: …

---

## [Impersonating Users on AIX](https://forum.ansible.com/t/impersonating-users-on-aix/23443)

<div class="topic-metadata">

**Author:** [@Nicholas\_Santiago](https://forum.ansible.com/u/Nicholas_Santiago)\
**Replies:** 3\
**Last updated:** [June 27, 2018, 9:59am UTC](https://forum.ansible.com/t/impersonating-users-on-aix/23443 "2018-06-27T09:59:06Z")

</div>

After getting the hang of running Ansible on our Linux environment, my team has been tasked with getting it going on AIX. In working with our AIX team, we had to get them to set up AIX to support Python 2.7.5 and a more …

---

## [Ansible 2.6.0 Release Candidate 5 is available](https://forum.ansible.com/t/ansible-2-6-0-release-candidate-5-is-available/27880)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [June 27, 2018, 4:48am UTC](https://forum.ansible.com/t/ansible-2-6-0-release-candidate-5-is-available/27880 "2018-06-27T04:48:04Z")

</div>

Hi all – we’re happy to announce that Release Candidate 5 of Ansible 2.6.0 is now available! How do you get it?

---

## [Error when trying to grep something from a file](https://forum.ansible.com/t/error-when-trying-to-grep-something-from-a-file/27879)

<div class="topic-metadata">

**Author:** [@Kallu\_Srikanth](https://forum.ansible.com/u/Kallu_Srikanth)\
**Replies:** 1\
**Last updated:** [June 27, 2018, 2:03am UTC](https://forum.ansible.com/t/error-when-trying-to-grep-something-from-a-file/27879 "2018-06-27T02:03:17Z")

</div>

Hi, dpiesa@cwypatchdev:/etc/ansible\> ansible all -m command -a “cat /etc/oratab | grep -i ^AGENT | cut -f 2 -d :” vmcwy60158.prod.acxiom.net | FAILED | rc=1 \>\> cat: invalid option – ‘i’ Try \`cat --help’ for more info…

---

## [ansible playbook permisson error when running command ". oraenv"](https://forum.ansible.com/t/ansible-playbook-permisson-error-when-running-command-oraenv/27875)

<div class="topic-metadata">

**Author:** [@Kallu\_Srikanth](https://forum.ansible.com/u/Kallu_Srikanth)\
**Replies:** 5\
**Last updated:** [June 27, 2018, 1:52am UTC](https://forum.ansible.com/t/ansible-playbook-permisson-error-when-running-command-oraenv/27875 "2018-06-27T01:52:38Z")

</div>

ansible playbook permission error when running the command “. oraenv” Here is the code: setup new env command: “. /usr/local/bin/oraenv” Here is the error: TASK \[ansible-oracle-patching : command\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Access hostvars from filter plugin](https://forum.ansible.com/t/access-hostvars-from-filter-plugin/27874)

<div class="topic-metadata">

**Author:** [@Alexey\_Miasoedov](https://forum.ansible.com/u/Alexey_Miasoedov)\
**Replies:** 1\
**Last updated:** [June 26, 2018, 3:47pm UTC](https://forum.ansible.com/t/access-hostvars-from-filter-plugin/27874 "2018-06-26T15:47:17Z")

</div>

Hey there, Is the %subj% possible? if so, then how can I do this?

[Previous page](https://forum.ansible.com/latest.md?page=542)

[Next page](https://forum.ansible.com/latest.md?page=544)
