# Ansible Project

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

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

**Page:** 42

---

## [Need help on ansible code from shell script](https://forum.ansible.com/t/need-help-on-ansible-code-from-shell-script/36821)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 2\
**Last updated:** [July 9, 2022, 6:13pm UTC](https://forum.ansible.com/t/need-help-on-ansible-code-from-shell-script/36821 "2022-07-09T18:13:36Z")

</div>

Hi Experts, Just started learning ansible few weeks back. want to automate a shell script. Need your help badly. Any jinja template or any help would be greatly appreciated. Here is the pseudocode for the shell script …

---

## [How to correctly print a multiline stdout?](https://forum.ansible.com/t/how-to-correctly-print-a-multiline-stdout/13416)

<div class="topic-metadata">

**Author:** [@Nicolas\_Grilly](https://forum.ansible.com/u/Nicolas_Grilly)\
**Replies:** 19\
**Last updated:** [July 9, 2022, 2:45pm UTC](https://forum.ansible.com/t/how-to-correctly-print-a-multiline-stdout/13416 "2022-07-09T14:45:31Z")

</div>

Hello, We run our database migrations using Ansible with something along these lines: name: Run database migrations command: env/bin/python migrate.py -q chdir=$project\_dir/releases/$release\_date register: result c…

---

## [copy file to one host only](https://forum.ansible.com/t/copy-file-to-one-host-only/36819)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 4\
**Last updated:** [July 8, 2022, 6:03pm UTC](https://forum.ansible.com/t/copy-file-to-one-host-only/36819 "2022-07-08T18:03:08Z")

</div>

I am trying to copy a file to one host. the file will be on my ansible host I am copying over to the remote host do I need to create a file folder and put the file I want copied there project ├── hosts ├── main.yml …

---

## [manage docker via Ansible - question on the python docker library/package on the target](https://forum.ansible.com/t/manage-docker-via-ansible-question-on-the-python-docker-library-package-on-the-target/36813)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 6\
**Last updated:** [July 8, 2022, 1:08pm UTC](https://forum.ansible.com/t/manage-docker-via-ansible-question-on-the-python-docker-library-package-on-the-target/36813 "2022-07-08T13:08:11Z")

</div>

hi everybody, I try to handle docker containers via Ansible and am getting this error: msg: 'Failed to import the required Python library (Docker SDK for Python: docker (Python \>= 2.7) or docker-py (Python 2.6)) on vm-…

---

## [what s the use of % set with ansible](https://forum.ansible.com/t/what-s-the-use-of-set-with-ansible/36809)

<div class="topic-metadata">

**Author:** [@gomz\_arvind](https://forum.ansible.com/u/gomz_arvind)\
**Replies:** 7\
**Last updated:** [July 8, 2022, 8:36am UTC](https://forum.ansible.com/t/what-s-the-use-of-set-with-ansible/36809 "2022-07-08T08:36:15Z")

</div>

Hi team, can i know the actual usage of % set with ansible

---

## [Ansible integration with LUMEN devices](https://forum.ansible.com/t/ansible-integration-with-lumen-devices/36808)

<div class="topic-metadata">

**Author:** [@Aditya\_Chauhan](https://forum.ansible.com/u/Aditya_Chauhan)\
**Replies:** 1\
**Last updated:** [July 8, 2022, 3:16am UTC](https://forum.ansible.com/t/ansible-integration-with-lumen-devices/36808 "2022-07-08T03:16:20Z")

</div>

How can we integrate ansible with LUMEN devices for fetching top talkers details by using commands. Is there any module or something? How can we achieve this.

---

## [Meta module](https://forum.ansible.com/t/meta-module/36802)

<div class="topic-metadata">

**Author:** [@brice\_Folio](https://forum.ansible.com/u/brice_Folio)\
**Replies:** 8\
**Last updated:** [July 7, 2022, 2:30pm UTC](https://forum.ansible.com/t/meta-module/36802 "2022-07-07T14:30:34Z")

</div>

Hello, I have playbook played in tower and at the end of a block I use meta: end\_play module without any condition. I don’t know why but this task is ignored and when I enable debug it displays: META: Instead of: ME…

---

## [Unable to execute ansible playbook](https://forum.ansible.com/t/unable-to-execute-ansible-playbook/36812)

<div class="topic-metadata">

**Author:** [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Replies:** 10\
**Last updated:** [July 7, 2022, 11:10am UTC](https://forum.ansible.com/t/unable-to-execute-ansible-playbook/36812 "2022-07-07T11:10:35Z")

</div>

Hi all, I got the following error, while trying to execute ansible playbook: TASK \[Gathering Facts\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Ansible: Need help in manipulating with date and time](https://forum.ansible.com/t/ansible-need-help-in-manipulating-with-date-and-time/36810)

<div class="topic-metadata">

**Author:** [@gomz\_arvind](https://forum.ansible.com/u/gomz_arvind)\
**Replies:** 0\
**Last updated:** [July 6, 2022, 1:01pm UTC](https://forum.ansible.com/t/ansible-need-help-in-manipulating-with-date-and-time/36810 "2022-07-06T13:01:12Z")

</div>

Example: 12:02:43.569 UTC Wed Jul 06 2022 I wish to get an ansible script to go back 15 minutes from the above timing

---

## [Ansible integration with Solarwinds](https://forum.ansible.com/t/ansible-integration-with-solarwinds/36795)

<div class="topic-metadata">

**Author:** [@Aditya\_Chauhan](https://forum.ansible.com/u/Aditya_Chauhan)\
**Replies:** 2\
**Last updated:** [July 6, 2022, 5:28am UTC](https://forum.ansible.com/t/ansible-integration-with-solarwinds/36795 "2022-07-06T05:28:53Z")

</div>

Is there anyway we can integrate solarwinds with ansible. How can we achieve to fetch information from solarwinds using the ansible playbook.

---

## [Ansible 2.8 will work on RHEL8 with python 3.6.](https://forum.ansible.com/t/ansible-2-8-will-work-on-rhel8-with-python-3-6/36785)

<div class="topic-metadata">

**Author:** [@sathish\_subramani](https://forum.ansible.com/u/sathish_subramani)\
**Replies:** 10\
**Last updated:** [July 6, 2022, 2:31am UTC](https://forum.ansible.com/t/ansible-2-8-will-work-on-rhel8-with-python-3-6/36785 "2022-07-06T02:31:26Z")

</div>

Hi Team, Ansible 2.8 will work on RHEL8 with python 3.6. Reference : https://github.com/ansible/ansible/tree/stable-2.8 Thanks and Regards, S Sathish

---

## [mail module with when condition](https://forum.ansible.com/t/mail-module-with-when-condition/36806)

<div class="topic-metadata">

**Author:** [@Milan\_Patel](https://forum.ansible.com/u/Milan_Patel)\
**Replies:** 0\
**Last updated:** [July 5, 2022, 8:51pm UTC](https://forum.ansible.com/t/mail-module-with-when-condition/36806 "2022-07-05T20:51:18Z")

</div>

---

## [ansible 6 debian repo](https://forum.ansible.com/t/ansible-6-debian-repo/36805)

<div class="topic-metadata">

**Author:** [@Alex\_Cernat](https://forum.ansible.com/u/Alex_Cernat)\
**Replies:** 0\
**Last updated:** [July 5, 2022, 8:10pm UTC](https://forum.ansible.com/t/ansible-6-debian-repo/36805 "2022-07-05T20:10:10Z")

</div>

greetings! as the roadmap is showing, ansible 6 release (based on ansible-core 2.13) should be available since end of june, but still no ansible-6 on official debian/ubuntu repo https://launchpad.net/~ansible anyone ha…

---

## [ansible.builtin.user multiple groups with jinjia2](https://forum.ansible.com/t/ansible-builtin-user-multiple-groups-with-jinjia2/36791)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 2\
**Last updated:** [July 5, 2022, 6:43pm UTC](https://forum.ansible.com/t/ansible-builtin-user-multiple-groups-with-jinjia2/36791 "2022-07-05T18:43:37Z")

</div>

any idea how I can create a user and then put it into multiple groups with jinja2? name: create user sam ansible.builtin.user: name: ‘{{ username }}’ shell: ‘{{ shell }}’ generate\_ssh\_key: yes create\_home: yes gr…

---

## [Ansible for event automation with Cisco Nessus device. need help to extract past 15 minutes logs from show clock of the device](https://forum.ansible.com/t/ansible-for-event-automation-with-cisco-nessus-device-need-help-to-extract-past-15-minutes-logs-from-show-clock-of-the-device/36803)

<div class="topic-metadata">

**Author:** [@gomz\_arvind](https://forum.ansible.com/u/gomz_arvind)\
**Replies:** 0\
**Last updated:** [July 5, 2022, 9:41am UTC](https://forum.ansible.com/t/ansible-for-event-automation-with-cisco-nessus-device-need-help-to-extract-past-15-minutes-logs-from-show-clock-of-the-device/36803 "2022-07-05T09:41:17Z")

</div>

Description of my problem: Ansible code should be triggered during an interface flapping with cisco nessus device. It should fetch the time of nessus device(show clock) and try to pull the past 15 minutes from the “show …

---

## [Roles and apt](https://forum.ansible.com/t/roles-and-apt/36794)

<div class="topic-metadata">

**Author:** [@Glen\_Huang](https://forum.ansible.com/u/Glen_Huang)\
**Replies:** 4\
**Last updated:** [July 5, 2022, 8:19am UTC](https://forum.ansible.com/t/roles-and-apt/36794 "2022-07-05T08:19:53Z")

</div>

Hi, I have a couple of roles that add files to sources.list.d, and then install packages. Is it somehow possible to run the apt module to update apt index after ALL roles have added the files but before installing packa…

---

## [JOB | Production Support (Sydney)](https://forum.ansible.com/t/job-production-support-sydney/36800)

<div class="topic-metadata">

**Author:** [@ghost\_advocate](https://forum.ansible.com/u/ghost_advocate)\
**Replies:** 0\
**Last updated:** [July 4, 2022, 1:43pm UTC](https://forum.ansible.com/t/job-production-support-sydney/36800 "2022-07-04T13:43:45Z")

</div>

Hello, I’m working with a financial trading platform that is looking to hire someone for their Sydney office that wants to be client facing, own the production service offered globally to their clients and be part of the…

---

## [How do I create a MSSQL database user (user on the DB level not the server)](https://forum.ansible.com/t/how-do-i-create-a-mssql-database-user-user-on-the-db-level-not-the-server/36790)

<div class="topic-metadata">

**Author:** [@Adurota\_Gideon](https://forum.ansible.com/u/Adurota_Gideon)\
**Replies:** 3\
**Last updated:** [July 4, 2022, 5:00am UTC](https://forum.ansible.com/t/how-do-i-create-a-mssql-database-user-user-on-the-db-level-not-the-server/36790 "2022-07-04T05:00:43Z")

</div>

Hello, So I am new to ansible and I have been looking for a way to create a user on mssql database using ansible but I can’t seem to find a module for that. What I saw is more for MySql db. name: Create DB user with n…

---

## [Ansible hangs, unless overriding ssh setting -o ControlMaster=no](https://forum.ansible.com/t/ansible-hangs-unless-overriding-ssh-setting-o-controlmaster-no/36793)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 0\
**Last updated:** [July 3, 2022, 10:12pm UTC](https://forum.ansible.com/t/ansible-hangs-unless-overriding-ssh-setting-o-controlmaster-no/36793 "2022-07-03T22:12:29Z")

</div>

Take a look at the closing comment for that (2.5 year old) issue: This is most likely an issue with the ssh settings of the VM Ansible is trying to connect to.

---

## [Error: Installing msi on windows host](https://forum.ansible.com/t/error-installing-msi-on-windows-host/36792)

<div class="topic-metadata">

**Author:** [@Bathula\_vasanth](https://forum.ansible.com/u/Bathula_vasanth)\
**Replies:** 3\
**Last updated:** [July 3, 2022, 11:23am UTC](https://forum.ansible.com/t/error-installing-msi-on-windows-host/36792 "2022-07-03T11:23:00Z")

</div>

name: Installing MSSQL Command Line Utilities hosts: windows tasks: name: Install MSSQLCmdLnUtils win\_package: path: C:\\Users\\Administrator\\Downloads\\BancWare Data Integration 2021.2.0\\x64\\Microsoft SQL Server Red…

---

## [SSL: DH\_KEY\_TOO\_SMALL  in ACI module](https://forum.ansible.com/t/ssl-dh-key-too-small-in-aci-module/32423)

<div class="topic-metadata">

**Author:** [@Ben\_Sikkens](https://forum.ansible.com/u/Ben_Sikkens)\
**Replies:** 2\
**Last updated:** [July 2, 2022, 9:52am UTC](https://forum.ansible.com/t/ssl-dh-key-too-small-in-aci-module/32423 "2022-07-02T09:52:35Z")

</div>

Hi, I ran into an issue after updating to Ansible 2.8.5 (in AWX 9.1.1) This used to work in the previous version (Ansible 2.8.1, AWX 6.0.0.0) I fixed some issues from the python 2 to 3 but this one eludes me. I’m try…

---

## [GCP inventory, inventory\_hostname returning IP address](https://forum.ansible.com/t/gcp-inventory-inventory-hostname-returning-ip-address/36753)

<div class="topic-metadata">

**Author:** [@Lorenzo\_Milesi](https://forum.ansible.com/u/Lorenzo_Milesi)\
**Replies:** 4\
**Last updated:** [July 1, 2022, 6:31am UTC](https://forum.ansible.com/t/gcp-inventory-inventory-hostname-returning-ip-address/36753 "2022-07-01T06:31:38Z")

</div>

Hi. I configured inventory according to the example \[1\]: hostnames: name compose: ansible\_host: networkInterfaces\[0\].accessConfigs\[0\].natIP And the inventory correctly uses hostname. But to my experience, the inve…

---

## [Deploy VMware VM Template and run script locally on VM](https://forum.ansible.com/t/deploy-vmware-vm-template-and-run-script-locally-on-vm/36788)

<div class="topic-metadata">

**Author:** [@Brian\_Watters](https://forum.ansible.com/u/Brian_Watters)\
**Replies:** 2\
**Last updated:** [June 30, 2022, 7:53am UTC](https://forum.ansible.com/t/deploy-vmware-vm-template-and-run-script-locally-on-vm/36788 "2022-06-30T07:53:39Z")

</div>

I was able to deploy VMs from a template and they get renamed but the hostname doesn’t actually get updated. I am still trying to figure out how to do that but I have a bash script that I run on the VM, SUSE 15 Linux ser…

---

## [Could not find imported module support code for community.vmware (AWX -13.0)](https://forum.ansible.com/t/could-not-find-imported-module-support-code-for-community-vmware-awx-13-0/36747)

<div class="topic-metadata">

**Author:** [@Aditya\_Chauhan](https://forum.ansible.com/u/Aditya_Chauhan)\
**Replies:** 4\
**Last updated:** [June 30, 2022, 5:25am UTC](https://forum.ansible.com/t/could-not-find-imported-module-support-code-for-community-vmware-awx-13-0/36747 "2022-06-30T05:25:53Z")

</div>

We are using virtual environment in AWX 13 and its running with “python3.6” & Dev AWX execution environment is “AWX EE 0.5.0” We are receiving a failed message while executing job template in AWX (13.0) to connect VMwar…

---

## [issues w.r.t chromeos test image as ansible host](https://forum.ansible.com/t/issues-w-r-t-chromeos-test-image-as-ansible-host/36789)

<div class="topic-metadata">

**Author:** [@hara\_acharya](https://forum.ansible.com/u/hara_acharya)\
**Replies:** 0\
**Last updated:** [June 29, 2022, 7:49pm UTC](https://forum.ansible.com/t/issues-w-r-t-chromeos-test-image-as-ansible-host/36789 "2022-06-29T19:49:18Z")

</div>

Hi All, I am trying to add a chromeOS test image based DUT to ansible inventory but not able to run any script on it using ansible. But when changed to network OS in hosts config ping works fine. But running a bash scr…

---

## [How do I get a task to always execute even if the task before it fail?](https://forum.ansible.com/t/how-do-i-get-a-task-to-always-execute-even-if-the-task-before-it-fail/36787)

<div class="topic-metadata">

**Author:** [@Jim](https://forum.ansible.com/u/Jim)\
**Replies:** 1\
**Last updated:** [June 29, 2022, 4:58pm UTC](https://forum.ansible.com/t/how-do-i-get-a-task-to-always-execute-even-if-the-task-before-it-fail/36787 "2022-06-29T16:58:51Z")

</div>

I’m new to ansible and want to set my tasks to always run even if the task above it fails. Can someone provide an example or show me how to set it up with my task shown below? Here is one of my task that I want to set t…

---

## [ansible playbook ssh-keygen](https://forum.ansible.com/t/ansible-playbook-ssh-keygen/36783)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 5\
**Last updated:** [June 28, 2022, 4:26pm UTC](https://forum.ansible.com/t/ansible-playbook-ssh-keygen/36783 "2022-06-28T16:26:43Z")

</div>

is there a module to run ssh-keygen on remote hosts? any exmaples

---

## [Ansible 5.10.0 has been released!](https://forum.ansible.com/t/ansible-5-10-0-has-been-released/36784)

<div class="topic-metadata">

**Author:** [@Ompragash](https://forum.ansible.com/u/Ompragash)\
**Replies:** 0\
**Last updated:** [June 28, 2022, 4:02pm UTC](https://forum.ansible.com/t/ansible-5-10-0-has-been-released/36784 "2022-06-28T16:02:04Z")

</div>

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

---

## [Error Connecting to Cisco Switch](https://forum.ansible.com/t/error-connecting-to-cisco-switch/36774)

<div class="topic-metadata">

**Author:** [@Hossein\_Malakooti](https://forum.ansible.com/u/Hossein_Malakooti)\
**Replies:** 13\
**Last updated:** [June 28, 2022, 3:07pm UTC](https://forum.ansible.com/t/error-connecting-to-cisco-switch/36774 "2022-06-28T15:07:46Z")

</div>

Hello Dear Gurus I am trying to just simply connect to my Cisco switch. I’ve red previous topic about this issue but non of them helped me figure out how to fix this , your help is much appreciated here is my inventory…

---

## [Can we run roles in parallel for multiple hosts?](https://forum.ansible.com/t/can-we-run-roles-in-parallel-for-multiple-hosts/36776)

<div class="topic-metadata">

**Author:** [@Shweta](https://forum.ansible.com/u/Shweta)\
**Replies:** 11\
**Last updated:** [June 28, 2022, 1:32pm UTC](https://forum.ansible.com/t/can-we-run-roles-in-parallel-for-multiple-hosts/36776 "2022-06-28T13:32:14Z")

</div>

New ansible user here. After deploying VMs, I want to run a folder called configs on the Jump server to components like Syslog, NTP etc. for post configurations. This is the structure of how files are in the config fol…

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

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