# Ansible Project

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

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

**Page:** 37

---

## [Ansible dict date to csv file](https://forum.ansible.com/t/ansible-dict-date-to-csv-file/37082)

<div class="topic-metadata">

**Author:** [@Sagan](https://forum.ansible.com/u/Sagan)\
**Replies:** 1\
**Last updated:** [September 10, 2022, 4:49pm UTC](https://forum.ansible.com/t/ansible-dict-date-to-csv-file/37082 "2022-09-10T16:49:25Z")

</div>

IF you have your closters has dicts in your variable you can use a loop with dict2items and loop around it, as to writing it in your file you can use this module https://docs.ansible.com/ansible/latest/collections/ansib…

---

## [Create user elasticsearch for filebeat using ansible playbook](https://forum.ansible.com/t/create-user-elasticsearch-for-filebeat-using-ansible-playbook/37073)

<div class="topic-metadata">

**Author:** [@Le\_Roy](https://forum.ansible.com/u/Le_Roy)\
**Replies:** 2\
**Last updated:** [September 8, 2022, 11:23am UTC](https://forum.ansible.com/t/create-user-elasticsearch-for-filebeat-using-ansible-playbook/37073 "2022-09-08T11:23:19Z")

</div>

Hi People! Some one have any Idea how create a User and Role for filebeat and Kibana using a Ansible playbook for deploy Elasticsearch already installed but using Ansible? Thnak you

---

## [Windows Server Core edition](https://forum.ansible.com/t/windows-server-core-edition/37079)

<div class="topic-metadata">

**Author:** [@jesty\_sam](https://forum.ansible.com/u/jesty_sam)\
**Replies:** 0\
**Last updated:** [September 8, 2022, 7:40am UTC](https://forum.ansible.com/t/windows-server-core-edition/37079 "2022-09-08T07:40:26Z")

</div>

Hi Does ansible support windows server core edition 2022 as managed hosts. I do not see any mention of them in the official documentations. If yes, has anyone connected to such systems using ansible. What would be the …

---

## [ansible --check mode for shift left](https://forum.ansible.com/t/ansible-check-mode-for-shift-left/37077)

<div class="topic-metadata">

**Author:** [@Steve\_Button](https://forum.ansible.com/u/Steve_Button)\
**Replies:** 3\
**Last updated:** [September 7, 2022, 3:59pm UTC](https://forum.ansible.com/t/ansible-check-mode-for-shift-left/37077 "2022-09-07T15:59:16Z")

</div>

Hi, I’m trying to add some “shift left” to my Ansible, so that mistakes don’t creep in. Firstly, I thought I would run --check (perhaps as a git pre-commit hook or perhaps in Jenkins pipeline eventually). So, I tried it…

---

## [uri module encodes uploaded file in base64 if using body\_format: form-multipart even if not needed](https://forum.ansible.com/t/uri-module-encodes-uploaded-file-in-base64-if-using-body-format-form-multipart-even-if-not-needed/37071)

<div class="topic-metadata">

**Author:** [@madrover](https://forum.ansible.com/u/madrover)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 12:30am UTC](https://forum.ansible.com/t/uri-module-encodes-uploaded-file-in-base64-if-using-body-format-form-multipart-even-if-not-needed/37071 "2022-09-07T00:30:59Z")

</div>

Hi I have just hit the issue described at uri module encodes uploaded file in base64 if using body\_format: form-multipart, where the uri module encodes the uploaded file with base64, regardless the mime type of the uplo…

---

## [error sending mail](https://forum.ansible.com/t/error-sending-mail/37051)

<div class="topic-metadata">

**Author:** [@Abel\_Laime](https://forum.ansible.com/u/Abel_Laime)\
**Replies:** 3\
**Last updated:** [September 6, 2022, 2:32pm UTC](https://forum.ansible.com/t/error-sending-mail/37051 "2022-09-06T14:32:22Z")

</div>

“The module mail was redirected to community.general.notification.mail, which could not be loaded.” code: name: Mail mail: host: server.com port: XXX username: XXXXXXXX password: XXXXXXXXXX body: ‘Change 1205 is…

---

## [Project sync in pending state](https://forum.ansible.com/t/project-sync-in-pending-state/37067)

<div class="topic-metadata">

**Author:** [@Aditya\_Chauhan](https://forum.ansible.com/u/Aditya_Chauhan)\
**Replies:** 3\
**Last updated:** [September 6, 2022, 1:05pm UTC](https://forum.ansible.com/t/project-sync-in-pending-state/37067 "2022-09-06T13:05:03Z")

</div>

Project sync from Source Control Update is in pending state. Due to which jobs are getting stuck in pending state. What can be possible reason behind this and how can we fix this.

---

## [Automate git tag deployment](https://forum.ansible.com/t/automate-git-tag-deployment/37069)

<div class="topic-metadata">

**Author:** [@Emanuel\_Gonzalez](https://forum.ansible.com/u/Emanuel_Gonzalez)\
**Replies:** 0\
**Last updated:** [September 6, 2022, 11:56am UTC](https://forum.ansible.com/t/automate-git-tag-deployment/37069 "2022-09-06T11:56:02Z")

</div>

Guys, I’ll tell you what procedure we do in our devops area when we have to deploy a new app label. The Infrastructure is located in Amazon, we have two gitlab in different regions, one gitlab for dev environment and on…

---

## [Deploying Windows Server using Ansible Tower](https://forum.ansible.com/t/deploying-windows-server-using-ansible-tower/36921)

<div class="topic-metadata">

**Author:** [@Nicholas\_Branson](https://forum.ansible.com/u/Nicholas_Branson)\
**Replies:** 10\
**Last updated:** [September 6, 2022, 2:52am UTC](https://forum.ansible.com/t/deploying-windows-server-using-ansible-tower/36921 "2022-09-06T02:52:20Z")

</div>

Ansible Newbie Calling… We have Ansible Tower and Satellite. I’ve been asked to look at Deploying Windows Server using Ansible Tower. I’ve created a win2019-tmp (template) in VMware Now I need to look at creating a R…

---

## [Locate objects in Active Directory](https://forum.ansible.com/t/locate-objects-in-active-directory/37066)

<div class="topic-metadata">

**Author:** [@Sagan](https://forum.ansible.com/u/Sagan)\
**Replies:** 1\
**Last updated:** [September 6, 2022, 12:56am UTC](https://forum.ansible.com/t/locate-objects-in-active-directory/37066 "2022-09-06T00:56:22Z")

</div>

Greetings, I’m having a bit of a tool gap because I can’t quite figure out where to go here… here’s what I want to do. I have a list with the OU names, very straightforward. And what I need to do is, use that list to f…

---

## [PostgreSQL Create roles from list](https://forum.ansible.com/t/postgresql-create-roles-from-list/37045)

<div class="topic-metadata">

**Author:** [@Sagan](https://forum.ansible.com/u/Sagan)\
**Replies:** 1\
**Last updated:** [September 5, 2022, 2:24pm UTC](https://forum.ansible.com/t/postgresql-create-roles-from-list/37045 "2022-09-05T14:24:00Z")

</div>

Objective: Create a file under a common format (yml, json) Create a PostgreSQL role for each user un file Description: I’m trying to create alot of users and inserting them into their respective groups, the structure…

---

## [Ansible Tower Survey](https://forum.ansible.com/t/ansible-tower-survey/36908)

<div class="topic-metadata">

**Author:** [@Chris\_Bachmeyer](https://forum.ansible.com/u/Chris_Bachmeyer)\
**Replies:** 2\
**Last updated:** [September 3, 2022, 10:41pm UTC](https://forum.ansible.com/t/ansible-tower-survey/36908 "2022-09-03T22:41:21Z")

</div>

Morning, community, Does anyone know if it is possible to store a Survey in a code repo like Git or somehow back Surveys up more generally? I’m just not able to find a lot of info on this. Thanks!

---

## [win\_ping.yml](https://forum.ansible.com/t/win-ping-yml/37022)

<div class="topic-metadata">

**Author:** [@Nicholas\_Branson](https://forum.ansible.com/u/Nicholas_Branson)\
**Replies:** 41\
**Last updated:** [September 3, 2022, 12:20am UTC](https://forum.ansible.com/t/win-ping-yml/37022 "2022-09-03T00:20:09Z")

</div>

I am still holding my Ansible Newbie Keys Tight ! Not getting very far with Ansible Tower and Windows. Struggling to even Ping a Windows Server. I’ve configured WinRM service settings, Opened Firewall Port, etc. FAILED…

---

## [Module copy, remote\_src "no" not work](https://forum.ansible.com/t/module-copy-remote-src-no-not-work/37064)

<div class="topic-metadata">

**Author:** [@Emanuel\_Gonzalez](https://forum.ansible.com/u/Emanuel_Gonzalez)\
**Replies:** 1\
**Last updated:** [September 2, 2022, 9:40pm UTC](https://forum.ansible.com/t/module-copy-remote-src-no-not-work/37064 "2022-09-02T21:40:38Z")

</div>

Hi, i try copy files locally but not work. This is my playbook: name: “Generando archivos de configuracion mq2mq y supervisor” copy: src: ‘{{ item.src }}’ dest: ‘{{ item.dest }}’ remote\_src: no with\_items: { s…

---

## [How to Obtain the Elastigroup as Inventory in Ansible](https://forum.ansible.com/t/how-to-obtain-the-elastigroup-as-inventory-in-ansible/37063)

<div class="topic-metadata">

**Author:** [@Ralph\_Llaguno](https://forum.ansible.com/u/Ralph_Llaguno)\
**Replies:** 0\
**Last updated:** [September 2, 2022, 9:36pm UTC](https://forum.ansible.com/t/how-to-obtain-the-elastigroup-as-inventory-in-ansible/37063 "2022-09-02T21:36:16Z")

</div>

Hi Mam/Sir, I do have an assignment to automate update/s on Elastigroup spotinst group, particularly in adding/subtracting instances on that group using Ansible. I can’t find any reference for that one. Does anyone tri…

---

## [vmware\_guest -customization block not being executed](https://forum.ansible.com/t/vmware-guest-customization-block-not-being-executed/37061)

<div class="topic-metadata">

**Author:** [@Chris\_Bachmeyer](https://forum.ansible.com/u/Chris_Bachmeyer)\
**Replies:** 0\
**Last updated:** [September 2, 2022, 8:14pm UTC](https://forum.ansible.com/t/vmware-guest-customization-block-not-being-executed/37061 "2022-09-02T20:14:36Z")

</div>

hello all, I am using the vmware\_guest module to deploy vms to our vsphere environment and everything is working well. Now there is a requirement to handle post-processing of the vms once they are deployed which require…

---

## [Basic Authencation using uri Module (Post)](https://forum.ansible.com/t/basic-authencation-using-uri-module-post/37059)

<div class="topic-metadata">

**Author:** [@Mohammed\_Reehan](https://forum.ansible.com/u/Mohammed_Reehan)\
**Replies:** 4\
**Last updated:** [September 2, 2022, 6:23pm UTC](https://forum.ansible.com/t/basic-authencation-using-uri-module-post/37059 "2022-09-02T18:23:05Z")

</div>

Hello Experts, Need your kind help, i am running a basic POST call using ansible uri module with Basic Authencation below is the programtic code but i am getting 403 error.

---

## [create a systemd service without write access to /etc/systemd/system](https://forum.ansible.com/t/create-a-systemd-service-without-write-access-to-etc-systemd-system/37055)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 7\
**Last updated:** [September 2, 2022, 11:21am UTC](https://forum.ansible.com/t/create-a-systemd-service-without-write-access-to-etc-systemd-system/37055 "2022-09-02T11:21:27Z")

</div>

I need to create a postgresql@\[db\_service\_name\].service for systemd on remote hosts. Based on extremely limited access rights on such hosts (due to strict company security policies) the challenge I am facing is that the …

---

## [AWS ec2 attach new security group to instance](https://forum.ansible.com/t/aws-ec2-attach-new-security-group-to-instance/37052)

<div class="topic-metadata">

**Author:** [@Emanuel\_Gonzalez](https://forum.ansible.com/u/Emanuel_Gonzalez)\
**Replies:** 3\
**Last updated:** [August 31, 2022, 11:48am UTC](https://forum.ansible.com/t/aws-ec2-attach-new-security-group-to-instance/37052 "2022-08-31T11:48:23Z")

</div>

Hi, i’m creating a new security group, i need attach this to a new ec2 instance, i try, but i see this error: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError: …

---

## [error while connecting Ansible Platform to azure tenant](https://forum.ansible.com/t/error-while-connecting-ansible-platform-to-azure-tenant/37053)

<div class="topic-metadata">

**Author:** [@Mahdi\_Idriss](https://forum.ansible.com/u/Mahdi_Idriss)\
**Replies:** 0\
**Last updated:** [August 31, 2022, 9:16am UTC](https://forum.ansible.com/t/error-while-connecting-ansible-platform-to-azure-tenant/37053 "2022-08-31T09:16:10Z")

</div>

dears, after adding credentials to Ansible to connect to azure from Azure Resource Manager (Sub ID, Cliend ID…) i m facing below error when trying to run the job: ansible-inventory \[core 2.12.6\] config file = /etc/ans…

---

## [ansible-pull, GitHub private repository, deploy key](https://forum.ansible.com/t/ansible-pull-github-private-repository-deploy-key/17388)

<div class="topic-metadata">

**Author:** [@Florin\_Andrei](https://forum.ansible.com/u/Florin_Andrei)\
**Replies:** 2\
**Last updated:** [August 31, 2022, 9:09am UTC](https://forum.ansible.com/t/ansible-pull-github-private-repository-deploy-key/17388 "2022-08-31T09:09:28Z")

</div>

I might be asking something obvious here, but anyway: I’ve a private repo on GitHub, with an account on a read-only team there. I would like to run ansible-pull in one step with that repo, but I can’t seem to figure out…

---

## [How can I distinguish completed jobs in Ansible Tower](https://forum.ansible.com/t/how-can-i-distinguish-completed-jobs-in-ansible-tower/37027)

<div class="topic-metadata">

**Author:** [@Michael\_Burch](https://forum.ansible.com/u/Michael_Burch)\
**Replies:** 2\
**Last updated:** [August 29, 2022, 4:56pm UTC](https://forum.ansible.com/t/how-can-i-distinguish-completed-jobs-in-ansible-tower/37027 "2022-08-29T16:56:01Z")

</div>

Good afternoon - We have a playbook that is used by multiple groups. This playbook is neutrally stored and run from a common area. How can we, for lack of a better term, label the job at run time so that we can associat…

---

## [Collections - Not working](https://forum.ansible.com/t/collections-not-working/37047)

<div class="topic-metadata">

**Author:** [@Michael\_Burch](https://forum.ansible.com/u/Michael_Burch)\
**Replies:** 0\
**Last updated:** [August 29, 2022, 4:52pm UTC](https://forum.ansible.com/t/collections-not-working/37047 "2022-08-29T16:52:53Z")

</div>

Good afternoon - I am attempting to add a collection for awx.awx I want to leverage the tower\_label functionality to give some division to playbooks that are being executed under the same job template for multiple proj…

---

## [Noob question about time to run playbook.](https://forum.ansible.com/t/noob-question-about-time-to-run-playbook/37042)

<div class="topic-metadata">

**Author:** [@Kevin\_Shumaker](https://forum.ansible.com/u/Kevin_Shumaker)\
**Replies:** 4\
**Last updated:** [August 29, 2022, 3:21pm UTC](https://forum.ansible.com/t/noob-question-about-time-to-run-playbook/37042 "2022-08-29T15:21:51Z")

</div>

Greetings all. I’d like to tap your knowledge to see if there is a way to tweak a playbook to ‘speed things up’. I have a list of apps that always get installed to a new server. If I do them manually, as either a single …

---

## [problem connecting to a server](https://forum.ansible.com/t/problem-connecting-to-a-server/37041)

<div class="topic-metadata">

**Author:** [@zmau\_razvan](https://forum.ansible.com/u/zmau_razvan)\
**Replies:** 2\
**Last updated:** [August 27, 2022, 4:50pm UTC](https://forum.ansible.com/t/problem-connecting-to-a-server/37041 "2022-08-27T16:50:52Z")

</div>

hello, I’m new here, I have a question if someone can help me, i have this error

---

## [When condition help - Skip if service running](https://forum.ansible.com/t/when-condition-help-skip-if-service-running/37039)

<div class="topic-metadata">

**Author:** [@Nitrous](https://forum.ansible.com/u/Nitrous)\
**Replies:** 6\
**Last updated:** [August 26, 2022, 4:21pm UTC](https://forum.ansible.com/t/when-condition-help-skip-if-service-running/37039 "2022-08-26T16:21:47Z")

</div>

Im trying to figure out a way, on how to make a condition exit, if a service is running. If it isnt running, then install it. My play book looks like below: name: Check if LogRhythm System Monitor service is install…

---

## [Change pg\_hba.conf & postgresql.conf](https://forum.ansible.com/t/change-pg-hba-conf-postgresql-conf/37038)

<div class="topic-metadata">

**Author:** [@Sagan](https://forum.ansible.com/u/Sagan)\
**Replies:** 1\
**Last updated:** [August 26, 2022, 3:02pm UTC](https://forum.ansible.com/t/change-pg-hba-conf-postgresql-conf/37038 "2022-08-26T15:02:45Z")

</div>

Hello, I’m trying to automatize the editing of these files. I have made a playbook to install PostgreSQL in a controlled node. However, I need to change these 2 files to accept remote connections so I can access the Pos…

---

## [hostname variable inside of a file](https://forum.ansible.com/t/hostname-variable-inside-of-a-file/37036)

<div class="topic-metadata">

**Author:** [@Frederick](https://forum.ansible.com/u/Frederick)\
**Replies:** 3\
**Last updated:** [August 25, 2022, 6:30pm UTC](https://forum.ansible.com/t/hostname-variable-inside-of-a-file/37036 "2022-08-25T18:30:05Z")

</div>

Good Day! I am very new to Ansible so I apologize. I am trying to make a playbook where I push a file to the client host with the hostname/fqdn inside the file. For example: My file: cluster/files/etciscsi-initiatornam…

---

## [passing "var" from one playbook to another playbook](https://forum.ansible.com/t/passing-var-from-one-playbook-to-another-playbook/37020)

<div class="topic-metadata">

**Author:** [@maulik\_patel](https://forum.ansible.com/u/maulik_patel)\
**Replies:** 10\
**Last updated:** [August 24, 2022, 2:34pm UTC](https://forum.ansible.com/t/passing-var-from-one-playbook-to-another-playbook/37020 "2022-08-24T14:34:39Z")

</div>

hi , i’m trying to call one playbook1.yaml into master-playbook.yaml and i want to use variable that defined through set\_facts into playbook1 into master playbook. but i dont know what is correct way to do…please help m…

---

## [variable not defined](https://forum.ansible.com/t/variable-not-defined/37030)

<div class="topic-metadata">

**Author:** [@Kenady\_Inampudi](https://forum.ansible.com/u/Kenady_Inampudi)\
**Replies:** 6\
**Last updated:** [August 24, 2022, 1:04pm UTC](https://forum.ansible.com/t/variable-not-defined/37030 "2022-08-24T13:04:23Z")

</div>

Here is my play book, i am trying to check the id’s using wildcards like ora\*\*\*\* I am getting variable not defined

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

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