# Ansible Project

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

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

**Page:** 34

---

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

<div class="topic-metadata">

**Author:** [@Andreas\_Stoller](https://forum.ansible.com/u/Andreas_Stoller)\
**Replies:** 1\
**Last updated:** [October 25, 2022, 9:26pm UTC](https://forum.ansible.com/t/ansible-variables/37266 "2022-10-25T21:26:06Z")

</div>

Can Someone help me with tow Ansible Files I need the following Configuration php::version::current::installed ‘8.1.11’ → test.yml (php\_version: 'read\_from\_puppet\_file) → remember this variable or write it in a Jinja t…

---

## [Ansible 7.0.0a2 has been released!](https://forum.ansible.com/t/ansible-7-0-0a2-has-been-released/37268)

<div class="topic-metadata">

**Author:** [@Christian\_Adams](https://forum.ansible.com/u/Christian_Adams)\
**Replies:** 0\
**Last updated:** [October 25, 2022, 8:52pm UTC](https://forum.ansible.com/t/ansible-7-0-0a2-has-been-released/37268 "2022-10-25T20:52:18Z")

</div>

Hi all, We’re happy to announce that the Ansible 7.0.0a2 package has been released! Ansible 7.0.0a2 will include ansible-core 2.14.0rc1 as well as a curated set of Ansible collections to provide a vast number of modul…

---

## [How to use a variable in a vars file](https://forum.ansible.com/t/how-to-use-a-variable-in-a-vars-file/37264)

<div class="topic-metadata">

**Author:** [@Jacquelin\_C](https://forum.ansible.com/u/Jacquelin_C)\
**Replies:** 4\
**Last updated:** [October 25, 2022, 3:59pm UTC](https://forum.ansible.com/t/how-to-use-a-variable-in-a-vars-file/37264 "2022-10-25T15:59:00Z")

</div>

Hello team, I would like to use variables in a vars file, like this :

---

## [Async issues in ansible](https://forum.ansible.com/t/async-issues-in-ansible/37263)

<div class="topic-metadata">

**Author:** [@Shivani\_Arora](https://forum.ansible.com/u/Shivani_Arora)\
**Replies:** 1\
**Last updated:** [October 25, 2022, 10:50am UTC](https://forum.ansible.com/t/async-issues-in-ansible/37263 "2022-10-25T10:50:18Z")

</div>

Hi All, I’m trying to take snapshots of aws ebs volumes using ansible. But my playbook fails when the volume size is big ( \>1024 GB) with the below error. Unable to figure out if it is an async issue or if something els…

---

## [Use encyrpted pwd in ansible inventory file](https://forum.ansible.com/t/use-encyrpted-pwd-in-ansible-inventory-file/37251)

<div class="topic-metadata">

**Author:** [@saravanan\_jothilinga](https://forum.ansible.com/u/saravanan_jothilinga)\
**Replies:** 3\
**Last updated:** [October 24, 2022, 5:26pm UTC](https://forum.ansible.com/t/use-encyrpted-pwd-in-ansible-inventory-file/37251 "2022-10-24T17:26:11Z")

</div>

Hi. I am novice to this ansible and trying out a few basic use cases to apply patches on remote linux servers. We are using a host based authentication approach to connect to remote servers and execute ansible playbooks…

---

## [Register Variable /Setfacts and use it in Jinja2](https://forum.ansible.com/t/register-variable-setfacts-and-use-it-in-jinja2/37261)

<div class="topic-metadata">

**Author:** [@Jatashankar\_Mishra](https://forum.ansible.com/u/Jatashankar_Mishra)\
**Replies:** 0\
**Last updated:** [October 24, 2022, 10:55am UTC](https://forum.ansible.com/t/register-variable-setfacts-and-use-it-in-jinja2/37261 "2022-10-24T10:55:13Z")

</div>

Hello team, I am trying to register variable /setfacts and use it in jinja2 template for printing the output but it says variable not define , Please can yo suggest something what is missing ========================Pla…

---

## [Playbook to create gmail account](https://forum.ansible.com/t/playbook-to-create-gmail-account/37258)

<div class="topic-metadata">

**Author:** [@ricardobarbosams](https://forum.ansible.com/u/ricardobarbosams)\
**Replies:** 0\
**Last updated:** [October 21, 2022, 5:39pm UTC](https://forum.ansible.com/t/playbook-to-create-gmail-account/37258 "2022-10-21T17:39:05Z")

</div>

Hello all, Does Anyone know if possible to create a playbook to create a Gmail account? I found only GCP module to create infra-structure in GCP Regards

---

## [create a file based on grep result](https://forum.ansible.com/t/create-a-file-based-on-grep-result/37256)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 2\
**Last updated:** [October 21, 2022, 4:15pm UTC](https://forum.ansible.com/t/create-a-file-based-on-grep-result/37256 "2022-10-21T16:15:04Z")

</div>

I want to create a file based on a grep result of another file on the host It can be achieved with a shell TASK I believe … name: create 10-ssl.conf based on old postgresql.conf ansible.builtin.shell: cmd: grep ssh …

---

## [ansible shell module unable to 'vagrant up' on remote host via playbook](https://forum.ansible.com/t/ansible-shell-module-unable-to-vagrant-up-on-remote-host-via-playbook/37235)

<div class="topic-metadata">

**Author:** [@Oremo\_Ojwang](https://forum.ansible.com/u/Oremo_Ojwang)\
**Replies:** 3\
**Last updated:** [October 21, 2022, 7:57am UTC](https://forum.ansible.com/t/ansible-shell-module-unable-to-vagrant-up-on-remote-host-via-playbook/37235 "2022-10-21T07:57:27Z")

</div>

I intend to launch a number of of vms on multiple host machines. So I have a playbook that installs vagrant and virtualbox on the host machine. Following the installations, the playbook then copies specific Vagrantfile f…

---

## [Quit a playbook without error for a particular host](https://forum.ansible.com/t/quit-a-playbook-without-error-for-a-particular-host/37249)

<div class="topic-metadata">

**Author:** [@Rai\_Ner](https://forum.ansible.com/u/Rai_Ner)\
**Replies:** 1\
**Last updated:** [October 20, 2022, 7:40pm UTC](https://forum.ansible.com/t/quit-a-playbook-without-error-for-a-particular-host/37249 "2022-10-20T19:40:06Z")

</div>

Hi, I have a playbook containing several Plays and each Play is executed on a bunch of hosts. I would like to quit the whole playbook (not only the current play) for a particular host if a “when: condition” is met. Ex…

---

## [ERROR: Error reading config file (/Users/user/.ansible.cfg): Source contains parsing errors: '\<string\>'](https://forum.ansible.com/t/error-error-reading-config-file-users-user-ansible-cfg-source-contains-parsing-errors-string/37254)

<div class="topic-metadata">

**Author:** [@Caglayan\_Sancaktar](https://forum.ansible.com/u/Caglayan_Sancaktar)\
**Replies:** 2\
**Last updated:** [October 20, 2022, 6:05pm UTC](https://forum.ansible.com/t/error-error-reading-config-file-users-user-ansible-cfg-source-contains-parsing-errors-string/37254 "2022-10-20T18:05:09Z")

</div>

Hi, I got this error ERROR: Error reading config file (/Users/sahabt/.ansible.cfg): Source contains parsing errors: ‘’ \<\< My .ansible.cfg file’s content like this: \[node5\] 172.17.0.2

---

## [How to merge inventories from other ansible projects?](https://forum.ansible.com/t/how-to-merge-inventories-from-other-ansible-projects/37243)

<div class="topic-metadata">

**Author:** [@Glen\_Huang](https://forum.ansible.com/u/Glen_Huang)\
**Replies:** 5\
**Last updated:** [October 20, 2022, 11:20am UTC](https://forum.ansible.com/t/how-to-merge-inventories-from-other-ansible-projects/37243 "2022-10-20T11:20:27Z")

</div>

I have existing two ansible projects: proj1/inventory/host.yml all: vars:… hosts: … children: … proj2/inventory/host.yml all: vars:… hosts: … children: … I want to create a new ansible project, whose inventory…

---

## [Implementing a finite state machine in Ansible](https://forum.ansible.com/t/implementing-a-finite-state-machine-in-ansible/37229)

<div class="topic-metadata">

**Author:** [@Josh\_K](https://forum.ansible.com/u/Josh_K)\
**Replies:** 5\
**Last updated:** [October 19, 2022, 7:23pm UTC](https://forum.ansible.com/t/implementing-a-finite-state-machine-in-ansible/37229 "2022-10-19T19:23:25Z")

</div>

I have a playbook that depends on knowing where a certain git repository is on the local machine. All of our developers have this repo somewhere, but no assumptions can be made about the name of the dir or its location o…

---

## [failed\_when condition is not working](https://forum.ansible.com/t/failed-when-condition-is-not-working/37244)

<div class="topic-metadata">

**Author:** [@neha0021997](https://forum.ansible.com/u/neha0021997)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 11:34am UTC](https://forum.ansible.com/t/failed-when-condition-is-not-working/37244 "2022-10-19T11:34:05Z")

</div>

Hi Team, I was trying to add one condition, in which if it should failed on that particular point. So, entire playbook should stop. Below is the written playbook. - hosts: all gather\_facts: yes pre\_tasks: - name: Ve…

---

## [Ansible distribution when upgrading centos 6 dict object' has no attribute error](https://forum.ansible.com/t/ansible-distribution-when-upgrading-centos-6-dict-object-has-no-attribute-error/37226)

<div class="topic-metadata">

**Author:** [@Dave\_Tackyon](https://forum.ansible.com/u/Dave_Tackyon)\
**Replies:** 3\
**Last updated:** [October 19, 2022, 11:25am UTC](https://forum.ansible.com/t/ansible-distribution-when-upgrading-centos-6-dict-object-has-no-attribute-error/37226 "2022-10-19T11:25:19Z")

</div>

Please could someone give some help to this problem. I have I cant see anything wrong. I have what looks like a bug in ansible\_distribution. where it looks like its not getting picked up properly. Not sure how it obtain…

---

## [error connecting ansible to azure portal](https://forum.ansible.com/t/error-connecting-ansible-to-azure-portal/37246)

<div class="topic-metadata">

**Author:** [@Mahdi\_Idriss](https://forum.ansible.com/u/Mahdi_Idriss)\
**Replies:** 2\
**Last updated:** [October 19, 2022, 10:38am UTC](https://forum.ansible.com/t/error-connecting-ansible-to-azure-portal/37246 "2022-10-19T10:38:22Z")

</div>

Dears, while i am trying to connect my Ansible Platform to my Azure Portal, i am facing below error when lunching the job from Ansible portal, so any idea? ansible-inventory \[core 2.12.1\] config file = /etc/ansible/an…

---

## [Is there a module that can encrypt a file with vault in tasks?](https://forum.ansible.com/t/is-there-a-module-that-can-encrypt-a-file-with-vault-in-tasks/37237)

<div class="topic-metadata">

**Author:** [@Glen\_Huang](https://forum.ansible.com/u/Glen_Huang)\
**Replies:** 2\
**Last updated:** [October 19, 2022, 2:38am UTC](https://forum.ansible.com/t/is-there-a-module-that-can-encrypt-a-file-with-vault-in-tasks/37237 "2022-10-19T02:38:55Z")

</div>

I use playbook to locally generate a private key, and after that I’d like to encrypt it with vault so another playbook can use it to copy to a remote hosts. Is there a module that can encrypt a file with vault? Or shoul…

---

## [Encrypted SSH Key leads to Invalid format](https://forum.ansible.com/t/encrypted-ssh-key-leads-to-invalid-format/37166)

<div class="topic-metadata">

**Author:** [@Jeremie\_Levy](https://forum.ansible.com/u/Jeremie_Levy)\
**Replies:** 10\
**Last updated:** [October 18, 2022, 8:38am UTC](https://forum.ansible.com/t/encrypted-ssh-key-leads-to-invalid-format/37166 "2022-10-18T08:38:24Z")

</div>

I’m using in inventory/group\_vars/all.yaml: … ansible\_ssh\_private\_key\_file: ‘{{inventory\_dir}}/group\_vars/path/to/key’ This Key is working well when it’s plain text When I encrypt the file with ansible-vault, i get t…

---

## [Change SSH Port and User](https://forum.ansible.com/t/change-ssh-port-and-user/37236)

<div class="topic-metadata">

**Author:** [@Silvio\_Siefke](https://forum.ansible.com/u/Silvio_Siefke)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 5:39pm UTC](https://forum.ansible.com/t/change-ssh-port-and-user/37236 "2022-10-17T17:39:39Z")

</div>

Hello, I try to run a deployment Playbook with some roles like bootstraping, user and ssh server. The configuration for hosts I put in host\_vars folder. The host file: ansible\_user: "vagrant" ansible\_pass: "vagrant" …

---

## [Windows Become Confusion](https://forum.ansible.com/t/windows-become-confusion/37216)

<div class="topic-metadata">

**Author:** [@Husker79](https://forum.ansible.com/u/Husker79)\
**Replies:** 4\
**Last updated:** [October 17, 2022, 12:16am UTC](https://forum.ansible.com/t/windows-become-confusion/37216 "2022-10-17T00:16:28Z")

</div>

Good day, I’m attempting to execute a PowerShell script on a Windows host to create a Windows Server Failover Cluster. Running the script on node1 works without issue when logged in as a service account with appropriate…

---

## [ansible.builtin.service hangs](https://forum.ansible.com/t/ansible-builtin-service-hangs/37220)

<div class="topic-metadata">

**Author:** [@Axel\_Rau](https://forum.ansible.com/u/Axel_Rau)\
**Replies:** 6\
**Last updated:** [October 15, 2022, 7:28pm UTC](https://forum.ansible.com/t/ansible-builtin-service-hangs/37220 "2022-10-15T19:28:29Z")

</div>

The last task below does not complete. - - - - name: Enable/Disable servers ansible.builtin.service: name: '{{ ena\_item }}' enabled: '{{ i\_am\_master }}' loop\_control: loop\_var: ena\_item loop: …

---

## [Ansible 6.5.0 has been released!](https://forum.ansible.com/t/ansible-6-5-0-has-been-released/37214)

<div class="topic-metadata">

**Author:** [@Christian\_Adams](https://forum.ansible.com/u/Christian_Adams)\
**Replies:** 1\
**Last updated:** [October 15, 2022, 2:58am UTC](https://forum.ansible.com/t/ansible-6-5-0-has-been-released/37214 "2022-10-15T02:58:58Z")

</div>

Hi all, We’re happy to announce that the Ansible 6.5.0 package has been released! Ansible 6.5.0 will include ansible-core 2.13.5 as well as a curated set of Ansible collections to provide a vast number of modules and …

---

## [Help with a loop](https://forum.ansible.com/t/help-with-a-loop/37223)

<div class="topic-metadata">

**Author:** [@Clif\_Smith](https://forum.ansible.com/u/Clif_Smith)\
**Replies:** 2\
**Last updated:** [October 14, 2022, 4:11pm UTC](https://forum.ansible.com/t/help-with-a-loop/37223 "2022-10-14T16:11:19Z")

</div>

I’m trying to use a loop to build out (Datadog agent) configuration using a role, but each item in the loop overwrites the previous, resulting in configuration for just the last item. Can I please get a second set of eye…

---

## [Using include\_role multiple times](https://forum.ansible.com/t/using-include-role-multiple-times/37219)

<div class="topic-metadata">

**Author:** [@kimanoren](https://forum.ansible.com/u/kimanoren)\
**Replies:** 4\
**Last updated:** [October 13, 2022, 3:29pm UTC](https://forum.ansible.com/t/using-include-role-multiple-times/37219 "2022-10-13T15:29:01Z")

</div>

Need help with this one! Why are {{ ldap\_config\_endpoint }} not set the second time i call the include\_role "fatal: \[10.141.112.2\]: FAILED! =\> {“msg”: “The task includes an option with an undefined variable. The error …

---

## [variable precedence](https://forum.ansible.com/t/variable-precedence/37218)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 1\
**Last updated:** [October 13, 2022, 2:02pm UTC](https://forum.ansible.com/t/variable-precedence/37218 "2022-10-13T14:02:12Z")

</div>

Working with roles I am trying to understand variable precedence a little better bases on this list from the manual. on line 14 we have play vars\_files. That means an entriy like vars\_files: path/to/vars.yml or vars\_…

---

## [Loop through List](https://forum.ansible.com/t/loop-through-list/37210)

<div class="topic-metadata">

**Author:** [@Rai\_Ner](https://forum.ansible.com/u/Rai_Ner)\
**Replies:** 3\
**Last updated:** [October 13, 2022, 12:56pm UTC](https://forum.ansible.com/t/loop-through-list/37210 "2022-10-13T12:56:35Z")

</div>

Hi, I would like to add a VM with vmware guest. I would like to keep it flexibel, some VMs will have one disk, some two disks. Currently I am using 2 tasks with a when: 1disk or 2 condition but that is no nice solution. …

---

## [bastion host + MFA and ansible](https://forum.ansible.com/t/bastion-host-mfa-and-ansible/37221)

<div class="topic-metadata">

**Author:** [@Kseniya\_Schwarz](https://forum.ansible.com/u/Kseniya_Schwarz)\
**Replies:** 0\
**Last updated:** [October 13, 2022, 12:16pm UTC](https://forum.ansible.com/t/bastion-host-mfa-and-ansible/37221 "2022-10-13T12:16:52Z")

</div>

Hello community! We would like to use MFA for ssh and still be able to run ansible playbooks. Please have a look what we have planned to achieve that: We are planning to use a bastion host with pubkey+MFA ssh access …

---

## [Doing su -c 'ssh {{ ssh\_peer }}'](https://forum.ansible.com/t/doing-su-c-ssh-ssh-peer/37213)

<div class="topic-metadata">

**Author:** [@Axel\_Rau](https://forum.ansible.com/u/Axel_Rau)\
**Replies:** 4\
**Last updated:** [October 13, 2022, 8:44am UTC](https://forum.ansible.com/t/doing-su-c-ssh-ssh-peer/37213 "2022-10-13T08:44:11Z")

</div>

Hi all, This stopped working after some upgrade of ansible: - - - - name: Test new ssh connection command: "su {{ sk\_user }} -c 'ssh {{ ssh\_peer }} date‘“ - - - It just hungs in the shell. How can this be do…

---

## [How to remediate vulnerabilities on Awx operator in 21.0 version](https://forum.ansible.com/t/how-to-remediate-vulnerabilities-on-awx-operator-in-21-0-version/37211)

<div class="topic-metadata">

**Author:** [@pabbisetty.hm](https://forum.ansible.com/u/pabbisetty.hm)\
**Replies:** 2\
**Last updated:** [October 13, 2022, 3:45am UTC](https://forum.ansible.com/t/how-to-remediate-vulnerabilities-on-awx-operator-in-21-0-version/37211 "2022-10-13T03:45:44Z")

</div>

Hello, Our organization uses Awx 21.0 version and the security team flagged the operator installed on the 21.0 version, Any inputs on how to resolve or process to request for the Redhat team to assist? Venkata

---

## [Issue uploading disk image with ovirt\_disk module](https://forum.ansible.com/t/issue-uploading-disk-image-with-ovirt-disk-module/36992)

<div class="topic-metadata">

**Author:** [@Rob\_B](https://forum.ansible.com/u/Rob_B)\
**Replies:** 1\
**Last updated:** [October 12, 2022, 1:59pm UTC](https://forum.ansible.com/t/issue-uploading-disk-image-with-ovirt-disk-module/36992 "2022-10-12T13:59:52Z")

</div>

Hi, I hope this is the correct group to ask this, it’s not entirely clear where the issue lies. I’m using the ovirt.ovirt.ovirt\_disk module to upload a disk image to our ovirt system and attach to a VM. This works whe…

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

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