# Ansible Project

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

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

**Page:** 52

---

## [Targeting multiple OpenShift/k8s clusters?](https://forum.ansible.com/t/targeting-multiple-openshift-k8s-clusters/36341)

<div class="topic-metadata">

**Author:** [@Kwan\_Lowe](https://forum.ansible.com/u/Kwan_Lowe)\
**Replies:** 0\
**Last updated:** [February 17, 2022, 5:49pm UTC](https://forum.ansible.com/t/targeting-multiple-openshift-k8s-clusters/36341 "2022-02-17T17:49:26Z")

</div>

Good afternoon. Hope all is well. This is my first post here though I’ve been lurking for several months. Apologies in advance if this is the incorrect forum. I am trying to target multiple k8s/OpenShift clusters with a…

---

## [Replace launch config with launch template using ansible](https://forum.ansible.com/t/replace-launch-config-with-launch-template-using-ansible/36337)

<div class="topic-metadata">

**Author:** [@Shivani\_Arora](https://forum.ansible.com/u/Shivani_Arora)\
**Replies:** 0\
**Last updated:** [February 16, 2022, 4:13pm UTC](https://forum.ansible.com/t/replace-launch-config-with-launch-template-using-ansible/36337 "2022-02-16T16:13:35Z")

</div>

Hi All, I’m using aws launch configurations with autoscaling groups to launch ec2 instances using ansible playbooks. I have to migrate the existing instances to use a launch template instead of a launch configuration in…

---

## [SSLError(SSLError(1, u'\[SSL: CERTIFICATE\_VERIFY\_FAILED\] certificate verify](https://forum.ansible.com/t/sslerror-sslerror-1-u-ssl-certificate-verify-failed-certificate-verify/36323)

<div class="topic-metadata">

**Author:** [@Jagannath\_Pattar](https://forum.ansible.com/u/Jagannath_Pattar)\
**Replies:** 5\
**Last updated:** [February 16, 2022, 10:43am UTC](https://forum.ansible.com/t/sslerror-sslerror-1-u-ssl-certificate-verify-failed-certificate-verify/36323 "2022-02-16T10:43:45Z")

</div>

Hi Ansible team, We are facing the certificate verification issue while executing ansible-playbook. Could you please suggest how to resolve this issue? ERROR Logs:

---

## [To Display line{5-10} from file](https://forum.ansible.com/t/to-display-line-5-10-from-file/36336)

<div class="topic-metadata">

**Author:** [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Replies:** 1\
**Last updated:** [February 16, 2022, 8:36am UTC](https://forum.ansible.com/t/to-display-line-5-10-from-file/36336 "2022-02-16T08:36:04Z")

</div>

Hi Guys, can someone please tell how to display line 5 to line 10 from the registered file. Thanks in advance.

---

## [How can I loop over a group of roles](https://forum.ansible.com/t/how-can-i-loop-over-a-group-of-roles/36329)

<div class="topic-metadata">

**Author:** [@robert\_rottermann](https://forum.ansible.com/u/robert_rottermann)\
**Replies:** 1\
**Last updated:** [February 15, 2022, 9:04pm UTC](https://forum.ansible.com/t/how-can-i-loop-over-a-group-of-roles/36329 "2022-02-15T21:04:29Z")

</div>

Hi friends in Ansible I would like to loop over a list roles. The following failing sample should explain what I try to acchieve: hosts: all become: yes become\_method: sudo remote\_user: root vars: servers: server…

---

## [Shell script doesn't run completely even on using async](https://forum.ansible.com/t/shell-script-doesnt-run-completely-even-on-using-async/36326)

<div class="topic-metadata">

**Author:** [@sahitansar](https://forum.ansible.com/u/sahitansar)\
**Replies:** 1\
**Last updated:** [February 15, 2022, 8:55pm UTC](https://forum.ansible.com/t/shell-script-doesnt-run-completely-even-on-using-async/36326 "2022-02-15T20:55:05Z")

</div>

Hi all, I have an interactive shell script(vendor install script ) that i need to run. The script has 50+ Q’s and i used Ansible shell module with “expect” args to automate it . Manually the script takes 10+ mins to c…

---

## [Live GPT partition expansion](https://forum.ansible.com/t/live-gpt-partition-expansion/36332)

<div class="topic-metadata">

**Author:** [@Alex\_Wanderley](https://forum.ansible.com/u/Alex_Wanderley)\
**Replies:** 1\
**Last updated:** [February 15, 2022, 9:18am UTC](https://forum.ansible.com/t/live-gpt-partition-expansion/36332 "2022-02-15T09:18:48Z")

</div>

Hello, Has anybody worked on expanding GPT partitions live, without unmounting the associated xfs or ext4 filesystem? (We don’t use LVM, by the way.) I have a working playbook that does that during VM deployments using…

---

## [dateutil required for this module](https://forum.ansible.com/t/dateutil-required-for-this-module/36306)

<div class="topic-metadata">

**Author:** [@Jason\_Bourne](https://forum.ansible.com/u/Jason_Bourne)\
**Replies:** 4\
**Last updated:** [February 14, 2022, 4:07pm UTC](https://forum.ansible.com/t/dateutil-required-for-this-module/36306 "2022-02-14T16:07:00Z")

</div>

I guys, I need to some help on this one. I create a task to upload some files on an S3 bucket. When running the playbook I get the following error: FAILED! =\> {“changed”: false, “msg”: “dateutil required for this modu…

---

## [openssl\_certificate\_info subject\_hash?](https://forum.ansible.com/t/openssl-certificate-info-subject-hash/36328)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 2\
**Last updated:** [February 14, 2022, 1:28pm UTC](https://forum.ansible.com/t/openssl-certificate-info-subject-hash/36328 "2022-02-14T13:28:34Z")

</div>

Hi I am moving some older code that uses openssl shell commands to use the newer community crypto OpenSSL ansible modules. Most of that works well. However, I have this task to find the issuer's hash: shell: echo "{…

---

## [Failed : 7 test scenario while running sanity test for collection](https://forum.ansible.com/t/failed-7-test-scenario-while-running-sanity-test-for-collection/36330)

<div class="topic-metadata">

**Author:** [@selvigp](https://forum.ansible.com/u/selvigp)\
**Replies:** 0\
**Last updated:** [February 14, 2022, 5:56am UTC](https://forum.ansible.com/t/failed-7-test-scenario-while-running-sanity-test-for-collection/36330 "2022-02-14T05:56:53Z")

</div>

Hi, I have tried to run ansible- test sanity in the path where my collection located. But I am getting testcases failing for only 7 scenario. I have searched in official website and other blogs. I couldn’t get answers f…

---

## [problem while running role](https://forum.ansible.com/t/problem-while-running-role/36322)

<div class="topic-metadata">

**Author:** [@Ashir](https://forum.ansible.com/u/Ashir)\
**Replies:** 9\
**Last updated:** [February 13, 2022, 10:37am UTC](https://forum.ansible.com/t/problem-while-running-role/36322 "2022-02-13T10:37:39Z")

</div>

module\_stdout": “\\r\\nTraceback (most recent call last):\\r\\n File "/tmp/ansible\_dfQNUM/ansible\_module\_setup.py", line 139, in \\r\\n main()\\r\\n File "/tmp/ansible\_dfQNUM/ansible\_module\_setup.py", line 131, in main\\r\\n data …

---

## [AWX gather\_facts not writing results to host field](https://forum.ansible.com/t/awx-gather-facts-not-writing-results-to-host-field/36327)

<div class="topic-metadata">

**Author:** [@Harald\_Thomas](https://forum.ansible.com/u/Harald_Thomas)\
**Replies:** 0\
**Last updated:** [February 12, 2022, 9:09pm UTC](https://forum.ansible.com/t/awx-gather-facts-not-writing-results-to-host-field/36327 "2022-02-12T21:09:02Z")

</div>

Hi all, I’m a newbie to ansible and awx. gather\_facts is able to collect facts about the hosts. Running it on cli gives me the output that I want. But running the playbook via AWX is not writing the facts into the host…

---

## [ansible -a sudo command hangs](https://forum.ansible.com/t/ansible-a-sudo-command-hangs/36319)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 4\
**Last updated:** [February 11, 2022, 7:35pm UTC](https://forum.ansible.com/t/ansible-a-sudo-command-hangs/36319 "2022-02-11T19:35:36Z")

</div>

I am trying to run remote commands on few servers ansible -a “df -h” myservers -i hosts -u “user” --assk-pass this works but when i do ansible -a “sudo systemctl status docker” -i hosts -u "user --ask-pass then i en…

---

## [Problem clean SPN from Ansible but works in MSTSC session](https://forum.ansible.com/t/problem-clean-spn-from-ansible-but-works-in-mstsc-session/36315)

<div class="topic-metadata">

**Author:** [@mcoussi](https://forum.ansible.com/u/mcoussi)\
**Replies:** 1\
**Last updated:** [February 11, 2022, 9:13am UTC](https://forum.ansible.com/t/problem-clean-spn-from-ansible-but-works-in-mstsc-session/36315 "2022-02-11T09:13:19Z")

</div>

Hi everyone, I have a problem to clean SPN of MSSQL database instance by Ansible. First i copy a script on the server : name : “{{ titre\_clean\_spn }} - Copie du fichier ps1 pour le nettoyage des SPN sur le serveur” …

---

## [Extracting data from a table in confluence](https://forum.ansible.com/t/extracting-data-from-a-table-in-confluence/36320)

<div class="topic-metadata">

**Author:** [@olyx11](https://forum.ansible.com/u/olyx11)\
**Replies:** 0\
**Last updated:** [February 10, 2022, 9:48pm UTC](https://forum.ansible.com/t/extracting-data-from-a-table-in-confluence/36320 "2022-02-10T21:48:53Z")

</div>

All, I am trying to extract data from a table on confluence page. Is there a way to convert this to json or something easily parsible? Thanks, Ox

---

## [Ansible execute remote shell script with source to other files](https://forum.ansible.com/t/ansible-execute-remote-shell-script-with-source-to-other-files/36317)

<div class="topic-metadata">

**Author:** [@Emanuel\_Gonzalez](https://forum.ansible.com/u/Emanuel_Gonzalez)\
**Replies:** 3\
**Last updated:** [February 10, 2022, 3:24pm UTC](https://forum.ansible.com/t/ansible-execute-remote-shell-script-with-source-to-other-files/36317 "2022-02-10T15:24:00Z")

</div>

Hello, I’m trying to run a playbook which executes a shell script in a remote instance. Playbook

---

## [certificate: the specified credentials were rejected by the server](https://forum.ansible.com/t/certificate-the-specified-credentials-were-rejected-by-the-server/36316)

<div class="topic-metadata">

**Author:** [@soonoman](https://forum.ansible.com/u/soonoman)\
**Replies:** 0\
**Last updated:** [February 10, 2022, 7:43am UTC](https://forum.ansible.com/t/certificate-the-specified-credentials-were-rejected-by-the-server/36316 "2022-02-10T07:43:00Z")

</div>

I can’t connect even after completing the winrm configuration. NMAP(Linux → Windows) \[root@aeansibleapp01 ~\]# /bin/nmap -PN 1.1.1.1 -p 5986 Starting Nmap 6.40 ( http://nmap.org ) at 2022-02-09 14:30 KST Nmap scan repor…

---

## [Action failed\_when not working with condition](https://forum.ansible.com/t/action-failed-when-not-working-with-condition/36311)

<div class="topic-metadata">

**Author:** [@Emanuel\_Gonzalez](https://forum.ansible.com/u/Emanuel_Gonzalez)\
**Replies:** 5\
**Last updated:** [February 9, 2022, 9:34pm UTC](https://forum.ansible.com/t/action-failed-when-not-working-with-condition/36311 "2022-02-09T21:34:07Z")

</div>

Hello, I am creating a playbook, in the first task I am checking if a database exists which is previously created with another task. I need to finish the playbook if the database does not exist, for this to assemble the…

---

## [cant access to lxd container through ansible](https://forum.ansible.com/t/cant-access-to-lxd-container-through-ansible/36312)

<div class="topic-metadata">

**Author:** [@Sanjay\_Luitel](https://forum.ansible.com/u/Sanjay_Luitel)\
**Replies:** 0\
**Last updated:** [February 9, 2022, 4:58pm UTC](https://forum.ansible.com/t/cant-access-to-lxd-container-through-ansible/36312 "2022-02-09T16:58:02Z")

</div>

lxd container is created but while trying to create user it creates user in main server not in created lxd container. how can i solve this issue. thank you

---

## [How to incorporate password along with passwordless login in ansible dynamic inventory](https://forum.ansible.com/t/how-to-incorporate-password-along-with-passwordless-login-in-ansible-dynamic-inventory/36308)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 0\
**Last updated:** [February 9, 2022, 5:36am UTC](https://forum.ansible.com/t/how-to-incorporate-password-along-with-passwordless-login-in-ansible-dynamic-inventory/36308 "2022-02-09T05:36:42Z")

</div>

I give the end user to either provide username i.e dest\_user for which ssh-keys is already setup on Linux for all destination hosts i.e dest\_host. Below is how i setup dynamic inventory for passwordless user add\_host:…

---

## [sudo not working on remote server](https://forum.ansible.com/t/sudo-not-working-on-remote-server/36307)

<div class="topic-metadata">

**Author:** [@Ralph\_Hershkowitz](https://forum.ansible.com/u/Ralph_Hershkowitz)\
**Replies:** 0\
**Last updated:** [February 8, 2022, 8:48pm UTC](https://forum.ansible.com/t/sudo-not-working-on-remote-server/36307 "2022-02-08T20:48:10Z")

</div>

I am on server A logged in as user A with sudo permissions. I am attempting to run a privileged command on server b as user A. User A on server b also has sudo permissions. However I am getting permission errors: Inven…

---

## [Unable to run sudo commands on remote server](https://forum.ansible.com/t/unable-to-run-sudo-commands-on-remote-server/36305)

<div class="topic-metadata">

**Author:** [@Ralph\_Hershkowitz](https://forum.ansible.com/u/Ralph_Hershkowitz)\
**Replies:** 0\
**Last updated:** [February 8, 2022, 8:09pm UTC](https://forum.ansible.com/t/unable-to-run-sudo-commands-on-remote-server/36305 "2022-02-08T20:09:06Z")

</div>

I am on server A logged in as user A with sudo permissions. I am attempting to run a privileged command on server b as user A. User A on server b also has sudo permissions. However I am getting permission errors: \[rhers…

---

## [create multiple ec2 instances assign statis IP and tags](https://forum.ansible.com/t/create-multiple-ec2-instances-assign-statis-ip-and-tags/36236)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 12\
**Last updated:** [February 8, 2022, 4:08pm UTC](https://forum.ansible.com/t/create-multiple-ec2-instances-assign-statis-ip-and-tags/36236 "2022-02-08T16:08:02Z")

</div>

hi any idea how I can create multiple ec2 instances and tag it main.yml include\_vars: vars/main.yml name: create the ec2 instance ec2: assign\_public\_ip: no group\_id: ‘{{ deploy\_env.sg\_group }}’ instance\_type: “{{…

---

## [ssh issues](https://forum.ansible.com/t/ssh-issues/36301)

<div class="topic-metadata">

**Author:** [@prasanna\_kumar1](https://forum.ansible.com/u/prasanna_kumar1)\
**Replies:** 1\
**Last updated:** [February 8, 2022, 4:03pm UTC](https://forum.ansible.com/t/ssh-issues/36301 "2022-02-08T16:03:28Z")

</div>

Dear Team Kindly help me I am unable to log in to my master server to client-server.

---

## [Copy files between GCP buckets using gsutil](https://forum.ansible.com/t/copy-files-between-gcp-buckets-using-gsutil/36303)

<div class="topic-metadata">

**Author:** [@Aditya\_PUROHIT](https://forum.ansible.com/u/Aditya_PUROHIT)\
**Replies:** 0\
**Last updated:** [February 8, 2022, 3:35pm UTC](https://forum.ansible.com/t/copy-files-between-gcp-buckets-using-gsutil/36303 "2022-02-08T15:35:39Z")

</div>

Hello Ansible Community , I am working on a job to do a point in time recovery of HANA database. As we use different buckets for full/differential/log backups , I will need to copy all the required files for recovery un…

---

## [Access group members of a variable group name](https://forum.ansible.com/t/access-group-members-of-a-variable-group-name/36250)

<div class="topic-metadata">

**Author:** [@Roshani](https://forum.ansible.com/u/Roshani)\
**Replies:** 2\
**Last updated:** [February 8, 2022, 12:44pm UTC](https://forum.ansible.com/t/access-group-members-of-a-variable-group-name/36250 "2022-02-08T12:44:02Z")

</div>

Hi everyone, I have many groups in my inventory like this: \[website-front-lb\] 192.168.1.2 192.168.1.3 \[proj1-subproj1-lb\] 192.168.1.22 192.168.1.33 etc. Now I want to access members of a specific group in my pla…

---

## [Adding if statement inside a task](https://forum.ansible.com/t/adding-if-statement-inside-a-task/36300)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 2\
**Last updated:** [February 7, 2022, 2:43pm UTC](https://forum.ansible.com/t/adding-if-statement-inside-a-task/36300 "2022-02-07T14:43:50Z")

</div>

Hi I have the following playbook. In the environment.yml file I have a parameter “tls=true” In the below task , In tghe URL I would put https if tls=true and http if false. hosts: manager vars\_files: ./environm…

---

## [How to extract a list of values of a field within a list of dictionaries when a key matches another list of values](https://forum.ansible.com/t/how-to-extract-a-list-of-values-of-a-field-within-a-list-of-dictionaries-when-a-key-matches-another-list-of-values/36296)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 3\
**Last updated:** [February 7, 2022, 8:52am UTC](https://forum.ansible.com/t/how-to-extract-a-list-of-values-of-a-field-within-a-list-of-dictionaries-when-a-key-matches-another-list-of-values/36296 "2022-02-07T08:52:47Z")

</div>

Let’s assume the following fictional list of dictionaries: domain\_definition: name: server11 cluster: cluster1 db\_servers: server12 server21 port: ‘8080’ name: server12 cluster: cluster1 db\_servers: server22 por…

---

## [SQL MI Auditing using ODBC module](https://forum.ansible.com/t/sql-mi-auditing-using-odbc-module/36299)

<div class="topic-metadata">

**Author:** [@Gowtham\_SM](https://forum.ansible.com/u/Gowtham_SM)\
**Replies:** 0\
**Last updated:** [February 7, 2022, 8:19am UTC](https://forum.ansible.com/t/sql-mi-auditing-using-odbc-module/36299 "2022-02-07T08:19:04Z")

</div>

Dear Team, I am trying to configure auditing in Azure SQL managed instance server as per below article, https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/auditing-configure But facing an issue that ALT…

---

## [Connection to windows hosts via ansible](https://forum.ansible.com/t/connection-to-windows-hosts-via-ansible/36298)

<div class="topic-metadata">

**Author:** [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Replies:** 1\
**Last updated:** [February 7, 2022, 6:50am UTC](https://forum.ansible.com/t/connection-to-windows-hosts-via-ansible/36298 "2022-02-07T06:50:33Z")

</div>

Hi Guys, Do we need to do any set up on windows host to connect via ansible winrm module or is it by default enabled .Thanks in advance.

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

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