# Ansible Project

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

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

**Page:** 145

---

## [aws ec2 add new ebs volume error](https://forum.ansible.com/t/aws-ec2-add-new-ebs-volume-error/32168)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 3\
**Last updated:** [February 7, 2020, 5:40am UTC](https://forum.ansible.com/t/aws-ec2-add-new-ebs-volume-error/32168 "2020-02-07T05:40:46Z")

</div>

Dear all: please help me thanks. name: Create New EBS volume ec2\_vol: aws\_access\_key: “{{ aws\_access\_key }}” aws\_secret\_key: “{{ aws\_secret\_key }}” instance\_id: “{{ instance\_id }}” volume\_size: “{{ volume\_size }}…

---

## [Issue with curl command running with shell module](https://forum.ansible.com/t/issue-with-curl-command-running-with-shell-module/32160)

<div class="topic-metadata">

**Author:** [@Pawan\_Kumar1](https://forum.ansible.com/u/Pawan_Kumar1)\
**Replies:** 1\
**Last updated:** [February 6, 2020, 10:49pm UTC](https://forum.ansible.com/t/issue-with-curl-command-running-with-shell-module/32160 "2020-02-06T22:49:14Z")

</div>

Hi Team, Curl command is working fine on command line shell ,but when running the same command using Ansible shell module it’s throwing error . The exact issue coming when i am using curl command with multiple paramete…

---

## [format List comparison ansible](https://forum.ansible.com/t/format-list-comparison-ansible/32097)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 18\
**Last updated:** [February 6, 2020, 10:42pm UTC](https://forum.ansible.com/t/format-list-comparison-ansible/32097 "2020-02-06T22:42:38Z")

</div>

Hi , I want to compare two lists . But while doing this the list1 item loops over each item of list2. I just want item of list 1 just to compare between matching item in list2 and not with others. my playbook: hosts…

---

## [Running Playbooks against RDS](https://forum.ansible.com/t/running-playbooks-against-rds/32165)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [February 6, 2020, 10:31pm UTC](https://forum.ansible.com/t/running-playbooks-against-rds/32165 "2020-02-06T22:31:42Z")

</div>

Hi Another mail with a little bit more information. To prevent iterating over little bits of information guessing what you are doing, could you please tell clearly: - What you are trying to achieve. - How you are do…

---

## [Ansible for RDS](https://forum.ansible.com/t/ansible-for-rds/32164)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [February 6, 2020, 10:28pm UTC](https://forum.ansible.com/t/ansible-for-rds/32164 "2020-02-06T22:28:26Z")

</div>

Hi The error is pretty self explanatory. You need to make sure you can connect to the RDS Oracle instance by SSH. Check out https://docs.ansible.com/ansible/latest/user\_guide/intro\_getting\_started.html#connecting-to-r…

---

## [help with variable lookup](https://forum.ansible.com/t/help-with-variable-lookup/32163)

<div class="topic-metadata">

**Author:** [@Jason\_Bullen](https://forum.ansible.com/u/Jason_Bullen)\
**Replies:** 0\
**Last updated:** [February 6, 2020, 10:13pm UTC](https://forum.ansible.com/t/help-with-variable-lookup/32163 "2020-02-06T22:13:18Z")

</div>

I’m a greenhorn…I have this problem where I want the user to input either dev or prod in an env prompt then I take that and access a dictionary to get its custom properties. it works fine if I hardcode {{ dev.ip }} but i…

---

## [Reports error, but it seems to be working](https://forum.ansible.com/t/reports-error-but-it-seems-to-be-working/32162)

<div class="topic-metadata">

**Author:** [@Joe3](https://forum.ansible.com/u/Joe3)\
**Replies:** 0\
**Last updated:** [February 6, 2020, 7:44pm UTC](https://forum.ansible.com/t/reports-error-but-it-seems-to-be-working/32162 "2020-02-06T19:44:22Z")

</div>

I’m new to Ansible, so I’m working my way though learning it. I have a small very basic playbook with two tasks. The first task uses the junos module to back the config of a switch. The second tasks changes the host name…

---

## [Format two List Comparison](https://forum.ansible.com/t/format-two-list-comparison/32159)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 0\
**Last updated:** [February 6, 2020, 4:00pm UTC](https://forum.ansible.com/t/format-two-list-comparison/32159 "2020-02-06T16:00:35Z")

</div>

Hi , Someone barged into my ongoing Discussion . So i had to start a new Discussion. If my items of lists are not fixed on both the list , how do i compare them: Now i have one more issue on the LIST comparison: If t…

---

## [ansible win\_security\_policy - find section](https://forum.ansible.com/t/ansible-win-security-policy-find-section/32158)

<div class="topic-metadata">

**Author:** [@Oxs](https://forum.ansible.com/u/Oxs)\
**Replies:** 0\
**Last updated:** [February 6, 2020, 3:37pm UTC](https://forum.ansible.com/t/ansible-win-security-policy-find-section/32158 "2020-02-06T15:37:42Z")

</div>

Hi guys, How can I find section name for win\_security\_policy? name: Allow Auto Update win\_security\_policy: section: System Update key: AllowAutoUpdate value: 0 TASK \[windows-gpo : Allow Auto Update\] \*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Migrating playbook from ubuntu to amazon linux 2 - throws error missing dependency: python-apt](https://forum.ansible.com/t/migrating-playbook-from-ubuntu-to-amazon-linux-2-throws-error-missing-dependency-python-apt/32138)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 8\
**Last updated:** [February 6, 2020, 1:44pm UTC](https://forum.ansible.com/t/migrating-playbook-from-ubuntu-to-amazon-linux-2-throws-error-missing-dependency-python-apt/32138 "2020-02-06T13:44:43Z")

</div>

Hello, Do you recommend Migrating playbook from ubuntu to amazon Linux 2 (as it uses yum instead of apt). If so, how can I check if missing add a package to a new instance to make sure it installs python-apt\*\*?\*\* Ansib…

---

## [Install sudo on RHEL](https://forum.ansible.com/t/install-sudo-on-rhel/32154)

<div class="topic-metadata">

**Author:** [@Jeremy\_Njock](https://forum.ansible.com/u/Jeremy_Njock)\
**Replies:** 3\
**Last updated:** [February 6, 2020, 9:52am UTC](https://forum.ansible.com/t/install-sudo-on-rhel/32154 "2020-02-06T09:52:55Z")

</div>

I have an ansible playbook, wich connects to a remote server. On that remote server sudo is not installed. I can only gather root access with running dzdo su - in terminal. I tried to run following task to install sudo …

---

## [Running the same task on 2 different groups , each group have different variables](https://forum.ansible.com/t/running-the-same-task-on-2-different-groups-each-group-have-different-variables/32153)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [February 6, 2020, 9:05am UTC](https://forum.ansible.com/t/running-the-same-task-on-2-different-groups-each-group-have-different-variables/32153 "2020-02-06T09:05:49Z")

</div>

Goal: Running the same task on different inventory group, each group with different variables Setup: In my inventory hosts file, I have 2 groups. Web-Server and Manager servers. I have created a playbook that format a…

---

## [authorized\_key and multiple keys for one user](https://forum.ansible.com/t/authorized-key-and-multiple-keys-for-one-user/32151)

<div class="topic-metadata">

**Author:** [@Daniel\_Nanboe](https://forum.ansible.com/u/Daniel_Nanboe)\
**Replies:** 1\
**Last updated:** [February 6, 2020, 8:25am UTC](https://forum.ansible.com/t/authorized-key-and-multiple-keys-for-one-user/32151 "2020-02-06T08:25:08Z")

</div>

I have an inventory file where for one host I have defined the users and keys that I want to use in a playbook: \` sftp\_users: remote\_user: prod state: present long\_name: prod user ssh\_key: prodkey\_1 prodkey\_2 remo…

---

## [k8s module - TypeError: argument of type 'NoneType' is not iterable](https://forum.ansible.com/t/k8s-module-typeerror-argument-of-type-nonetype-is-not-iterable/32139)

<div class="topic-metadata">

**Author:** [@Jason3](https://forum.ansible.com/u/Jason3)\
**Replies:** 1\
**Last updated:** [February 6, 2020, 5:17am UTC](https://forum.ansible.com/t/k8s-module-typeerror-argument-of-type-nonetype-is-not-iterable/32139 "2020-02-06T05:17:19Z")

</div>

Hello, Trying to apply a yaml definition using the k8s module to my cluster. I’ve never used this module before so i’m trying to work out if i’m just doing something wrong or is this a bug? playbook: \`

---

## [Supplying algorithm specific options with the htpasswd module](https://forum.ansible.com/t/supplying-algorithm-specific-options-with-the-htpasswd-module/32152)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [February 5, 2020, 11:41pm UTC](https://forum.ansible.com/t/supplying-algorithm-specific-options-with-the-htpasswd-module/32152 "2020-02-05T23:41:10Z")

</div>

Hi I'm using the htpasswd module to create a password file for use with Dovecot, which is to be used for SMTP authentication. This works OK but the default encryption scheme is 'apr\_md5\_crypt' which isn't optimal. B…

---

## [How to ignore the none value from "Default(None) filter" that allows None value added to list of Item](https://forum.ansible.com/t/how-to-ignore-the-none-value-from-default-none-filter-that-allows-none-value-added-to-list-of-item/32145)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 8\
**Last updated:** [February 5, 2020, 8:26pm UTC](https://forum.ansible.com/t/how-to-ignore-the-none-value-from-default-none-filter-that-allows-none-value-added-to-list-of-item/32145 "2020-02-05T20:26:20Z")

</div>

Hi, After i create a list and when item is not present then an item with NONE is added to the list. name: Create an empty list variable set\_fact: ece\_nodes: name: Append string to ECE node list set\_fact: ece\_…

---

## [AWX multiple templates on workflow](https://forum.ansible.com/t/awx-multiple-templates-on-workflow/32150)

<div class="topic-metadata">

**Author:** [@Daniel\_Bianco](https://forum.ansible.com/u/Daniel_Bianco)\
**Replies:** 0\
**Last updated:** [February 5, 2020, 8:04pm UTC](https://forum.ansible.com/t/awx-multiple-templates-on-workflow/32150 "2020-02-05T20:04:00Z")

</div>

I’m working on a Workflow on AWX to run several templates (basically playbooks). I have created a project that connects to the git to get my playbooks. Manually they will run one after the other and one of the playbook…

---

## [win\_domain\_group using AD LDS?](https://forum.ansible.com/t/win-domain-group-using-ad-lds/32147)

<div class="topic-metadata">

**Author:** [@kzersatz](https://forum.ansible.com/u/kzersatz)\
**Replies:** 3\
**Last updated:** [February 5, 2020, 7:17pm UTC](https://forum.ansible.com/t/win-domain-group-using-ad-lds/32147 "2020-02-05T19:17:58Z")

</div>

Attempting to implement group creation/management playbooks via a jump box running AD LDS nets us the below error The play itself isn’t overly complicated… yet. ##CREATING RW GROUPS tasks: name: Verify we connect f…

---

## [How to do 3 with\_items in the same task ?](https://forum.ansible.com/t/how-to-do-3-with-items-in-the-same-task/32126)

<div class="topic-metadata">

**Author:** [@Anand\_Solomon](https://forum.ansible.com/u/Anand_Solomon)\
**Replies:** 3\
**Last updated:** [February 5, 2020, 4:11pm UTC](https://forum.ansible.com/t/how-to-do-3-with-items-in-the-same-task/32126 "2020-02-05T16:11:56Z")

</div>

Hi, I am reading 3 different variable from a text file and want to iterate in 3 different with\_items. variablefile.yml vars1 : first\_value1 first\_value 2 var2: second\_value1 second\_value2 var3: third\_value1 th…

---

## [Match filter missing in Ansible version 2.9](https://forum.ansible.com/t/match-filter-missing-in-ansible-version-2-9/32146)

<div class="topic-metadata">

**Author:** [@Devesh\_singh](https://forum.ansible.com/u/Devesh_singh)\
**Replies:** 2\
**Last updated:** [February 5, 2020, 3:20pm UTC](https://forum.ansible.com/t/match-filter-missing-in-ansible-version-2-9/32146 "2020-02-05T15:20:38Z")

</div>

Hello All, Anybody can help for the below error. My system was patched recently and ansible version has been upgraded to 2.9. After that my playbook started to throw below error.:

---

## [the connection attempt timed out](https://forum.ansible.com/t/the-connection-attempt-timed-out/32144)

<div class="topic-metadata">

**Author:** [@Oxs](https://forum.ansible.com/u/Oxs)\
**Replies:** 1\
**Last updated:** [February 5, 2020, 1:44pm UTC](https://forum.ansible.com/t/the-connection-attempt-timed-out/32144 "2020-02-05T13:44:08Z")

</div>

Dear guys, I try to connect with winrm to a Windows server 2016: winrm is installed, port winrm is open and firewall down (windows) Some output about this error? ansible@host01:~/playbooks$ ansible all -i …/inventory\_…

---

## [get hostname from multihost](https://forum.ansible.com/t/get-hostname-from-multihost/32136)

<div class="topic-metadata">

**Author:** [@Azir\_Guleroglu](https://forum.ansible.com/u/Azir_Guleroglu)\
**Replies:** 4\
**Last updated:** [February 5, 2020, 1:05pm UTC](https://forum.ansible.com/t/get-hostname-from-multihost/32136 "2020-02-05T13:05:38Z")

</div>

Hello, I try to automate MongoDB installation with Ansible, but i can’t create a replica set members automatically. I want to get automatically 3 host’s hostnames and add to members. I tried to use setup module and wit…

---

## [Ansible 2.9.4 not considering/ honouring ansible\_winrm\_server\_cert\_validation=ignore flag.](https://forum.ansible.com/t/ansible-2-9-4-not-considering-honouring-ansible-winrm-server-cert-validation-ignore-flag/32142)

<div class="topic-metadata">

**Author:** [@Bhushan\_Gholave](https://forum.ansible.com/u/Bhushan_Gholave)\
**Replies:** 5\
**Last updated:** [February 5, 2020, 12:14pm UTC](https://forum.ansible.com/t/ansible-2-9-4-not-considering-honouring-ansible-winrm-server-cert-validation-ignore-flag/32142 "2020-02-05T12:14:32Z")

</div>

Hi All, Issue closed : https://github.com/ansible/ansible/issues/67114 host file \[windows\] 192.152.1.21 ansible\_user=administrator ansible\_password=Password123 ansible\_port=5986 ansible\_winrm\_transport=basic ansible…

---

## [Ansible install packages in docker image is hung.](https://forum.ansible.com/t/ansible-install-packages-in-docker-image-is-hung/32143)

<div class="topic-metadata">

**Author:** [@Toan\_Huynh\_Van](https://forum.ansible.com/u/Toan_Huynh_Van)\
**Replies:** 5\
**Last updated:** [February 5, 2020, 10:33am UTC](https://forum.ansible.com/t/ansible-install-packages-in-docker-image-is-hung/32143 "2020-02-05T10:33:56Z")

</div>

Hi all, I am using ansible to install packages for docker image but it’s hung with messages below. Can you have a look and give me advice? docker: “stderr\_lines”: \[ docker: “”, docker: “Extracting templates from pack…

---

## [Example for running a playbook using Python API](https://forum.ansible.com/t/example-for-running-a-playbook-using-python-api/12413)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 3\
**Last updated:** [February 5, 2020, 8:33am UTC](https://forum.ansible.com/t/example-for-running-a-playbook-using-python-api/12413 "2020-02-05T08:33:03Z")

</div>

Probably the best example of running a playbook via Python code is actually /usr/bin/ansible-playbook itself, though it uses nearly all of the flags. https://github.com/ansible/ansible/blob/devel/bin/ansible-playbook …

---

## [Ansible vault key stored in another server](https://forum.ansible.com/t/ansible-vault-key-stored-in-another-server/32137)

<div class="topic-metadata">

**Author:** [@Vignesh\_Srinivas](https://forum.ansible.com/u/Vignesh_Srinivas)\
**Replies:** 0\
**Last updated:** [February 4, 2020, 9:44pm UTC](https://forum.ansible.com/t/ansible-vault-key-stored-in-another-server/32137 "2020-02-04T21:44:11Z")

</div>

Hi Team, My requirement is to store the vault key in another server, and as part of playbook execution, the ansible reads key value from remote server and decrypts the file on control server. I tried getting the key usi…

---

## [Having issues running win\_domain\_group](https://forum.ansible.com/t/having-issues-running-win-domain-group/32127)

<div class="topic-metadata">

**Author:** [@Craig\_Simon](https://forum.ansible.com/u/Craig_Simon)\
**Replies:** 2\
**Last updated:** [February 4, 2020, 9:39pm UTC](https://forum.ansible.com/t/having-issues-running-win-domain-group/32127 "2020-02-04T21:39:08Z")

</div>

Hey all, i’ve been using Ansibe with Linux for years, but now I have a need to use it to build out some Windows boxes and I am running into some issues. So far I am able to instal the AD-DS features and create my domain…

---

## [File exists but stat is false](https://forum.ansible.com/t/file-exists-but-stat-is-false/32132)

<div class="topic-metadata">

**Author:** [@Daniel\_Nanboe](https://forum.ansible.com/u/Daniel_Nanboe)\
**Replies:** 5\
**Last updated:** [February 4, 2020, 8:58pm UTC](https://forum.ansible.com/t/file-exists-but-stat-is-false/32132 "2020-02-04T20:58:46Z")

</div>

I have a problem checking if a file exists: - name: Check if ssh key exists stat: path= "/config/clients/ssh\_keys/daniel\_nanboe.pub" register: exista - debug: var=exista - fail: msg: Stop The file exists but th…

---

## [Error while readin split part for updating Ubuntu packages - Should I include the path of splitpath,py in playbook ?](https://forum.ansible.com/t/error-while-readin-split-part-for-updating-ubuntu-packages-should-i-include-the-path-of-splitpath-py-in-playbook/32125)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 2\
**Last updated:** [February 4, 2020, 7:24pm UTC](https://forum.ansible.com/t/error-while-readin-split-part-for-updating-ubuntu-packages-should-i-include-the-path-of-splitpath-py-in-playbook/32125 "2020-02-04T19:24:35Z")

</div>

Hello, Please see below ansible.cfg \[defaults\] inventory = ./hosts splitpart.py = /etc/ansible/splitpart.py/ splitpart.py def splitpart (value, index, char = ‘,’): if isinstance(value, (list, tuple)): ret = for…

---

## [Problems with ios\_command and prompt '\[y/n\]'](https://forum.ansible.com/t/problems-with-ios-command-and-prompt-y-n/32135)

<div class="topic-metadata">

**Author:** [@Heinz\_Meier](https://forum.ansible.com/u/Heinz_Meier)\
**Replies:** 4\
**Last updated:** [February 4, 2020, 3:30pm UTC](https://forum.ansible.com/t/problems-with-ios-command-and-prompt-y-n/32135 "2020-02-04T15:30:36Z")

</div>

Hi, I have a problem with the ios\_command and the C9200L switch when updating the IOS-XE. One step of the upgrade is On step is to remove inactive IOS versions: install remove inactive (…) Do you want to remove the …

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

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