# Ansible Project

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

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

**Page:** 121

---

## [Ansible Tower - user awx permission](https://forum.ansible.com/t/ansible-tower-user-awx-permission/33141)

<div class="topic-metadata">

**Author:** [@racke](https://forum.ansible.com/u/racke)\
**Replies:** 0\
**Last updated:** [June 10, 2020, 7:24am UTC](https://forum.ansible.com/t/ansible-tower-user-awx-permission/33141 "2020-06-10T07:24:46Z")

</div>

Anybody to help here ? Please note that this group is only about Ansible, not Tower or AWX. For the former contact RedHat support. Regards Racke

---

## [Ansible Tower - user awx permission](https://forum.ansible.com/t/ansible-tower-user-awx-permission/33140)

<div class="topic-metadata">

**Author:** [@Ompragash](https://forum.ansible.com/u/Ompragash)\
**Replies:** 0\
**Last updated:** [June 10, 2020, 5:42am UTC](https://forum.ansible.com/t/ansible-tower-user-awx-permission/33140 "2020-06-10T05:42:08Z")

</div>

Hi Mcubes, You don’t need a host file in AWX as everything can be managed from UI itself and if you’re planning to add ansible\_ssh\_pass then add it in Variables text box of the required host. Also, refer the below l…

---

## [getting error - "Unsupported parameters for (cli\_command) module"](https://forum.ansible.com/t/getting-error-unsupported-parameters-for-cli-command-module/33137)

<div class="topic-metadata">

**Author:** [@bmohanraj](https://forum.ansible.com/u/bmohanraj)\
**Replies:** 2\
**Last updated:** [June 10, 2020, 5:04am UTC](https://forum.ansible.com/t/getting-error-unsupported-parameters-for-cli-command-module/33137 "2020-06-10T05:04:17Z")

</div>

Hello, I getting error - “Unsupported parameters for (cli\_command) module” when trying to run install activate command in cat9k device. Below is the playbook snippet: \` name: Run install activate and reload block: …

---

## [Ansible Tower - user awx permission](https://forum.ansible.com/t/ansible-tower-user-awx-permission/33139)

<div class="topic-metadata">

**Author:** [@Ompragash](https://forum.ansible.com/u/Ompragash)\
**Replies:** 0\
**Last updated:** [June 10, 2020, 4:56am UTC](https://forum.ansible.com/t/ansible-tower-user-awx-permission/33139 "2020-06-10T04:56:34Z")

</div>

As said this is intentional due to security reasons and you can use ssh connection instead of local when running playbooks on localhost(Tower Host). Regards, Ompragash

---

## [delegate\_to vs remote\_user vs become\_user](https://forum.ansible.com/t/delegate-to-vs-remote-user-vs-become-user/33134)

<div class="topic-metadata">

**Author:** [@Gursimran\_Maken](https://forum.ansible.com/u/Gursimran_Maken)\
**Replies:** 1\
**Last updated:** [June 10, 2020, 4:52am UTC](https://forum.ansible.com/t/delegate-to-vs-remote-user-vs-become-user/33134 "2020-06-10T04:52:54Z")

</div>

Hi, I am new to Ansible and it would be of great help if you could let me know the difference between delegate\_to, remote\_user and become\_user with examples.And when to use which command. Thank you, Gursimran

---

## [Ansible Tower - user awx permission](https://forum.ansible.com/t/ansible-tower-user-awx-permission/33138)

<div class="topic-metadata">

**Author:** [@Ompragash](https://forum.ansible.com/u/Ompragash)\
**Replies:** 0\
**Last updated:** [June 10, 2020, 4:38am UTC](https://forum.ansible.com/t/ansible-tower-user-awx-permission/33138 "2020-06-10T04:38:55Z")

</div>

Hi Everyone, Currently, in Ansible Tower it’s not possible to escalate to root user when using the local connection and this design has been implemented on purpose to restrict AWX user from sudo operations. The reason i…

---

## [How to convert formatted html which get from jenkins active choices reactive reference parameter to list of ansible?](https://forum.ansible.com/t/how-to-convert-formatted-html-which-get-from-jenkins-active-choices-reactive-reference-parameter-to-list-of-ansible/33136)

<div class="topic-metadata">

**Author:** [@Sureenart\_Kietsaroch](https://forum.ansible.com/u/Sureenart_Kietsaroch)\
**Replies:** 0\
**Last updated:** [June 10, 2020, 3:34am UTC](https://forum.ansible.com/t/how-to-convert-formatted-html-which-get-from-jenkins-active-choices-reactive-reference-parameter-to-list-of-ansible/33136 "2020-06-10T03:34:37Z")

</div>

Hi All, How to convert formatted html which get from jenkins active choices reactive reference parameter to list of ansible? example jenkins parameter output : \[a,b\] Build section specific on ansible method extra v…

---

## [ansible playbook not printing the error message when disk is not defined](https://forum.ansible.com/t/ansible-playbook-not-printing-the-error-message-when-disk-is-not-defined/33112)

<div class="topic-metadata">

**Author:** [@Rajesh](https://forum.ansible.com/u/Rajesh)\
**Replies:** 7\
**Last updated:** [June 10, 2020, 2:06am UTC](https://forum.ansible.com/t/ansible-playbook-not-printing-the-error-message-when-disk-is-not-defined/33112 "2020-06-10T02:06:39Z")

</div>

Hi all, The below playbook is not printing an error message when the disk is not defined on a host. Could you please advise if I have made an mistake in the playbook. Thanks name: Create a partition hosts: all beco…

---

## [Ansible Tower - user awx permission](https://forum.ansible.com/t/ansible-tower-user-awx-permission/33129)

<div class="topic-metadata">

**Author:** [@Nico\_Wunder1](https://forum.ansible.com/u/Nico_Wunder1)\
**Replies:** 0\
**Last updated:** [June 9, 2020, 7:54pm UTC](https://forum.ansible.com/t/ansible-tower-user-awx-permission/33129 "2020-06-09T19:54:56Z")

</div>

Hello mcbubes, local host means which connection-method? Kind Regards, Nico

---

## [vault-id and global become instruction](https://forum.ansible.com/t/vault-id-and-global-become-instruction/33127)

<div class="topic-metadata">

**Author:** [@fabien\_stefaniak](https://forum.ansible.com/u/fabien_stefaniak)\
**Replies:** 0\
**Last updated:** [June 9, 2020, 3:20pm UTC](https://forum.ansible.com/t/vault-id-and-global-become-instruction/33127 "2020-06-09T15:20:57Z")

</div>

hello ! I try to reduce times when i need to typing a password in ansible with the vault-id given by a script. i have made some test with vault but i can’t succed with a “become: yes” define on hosts instruction. My v…

---

## [sudo(become) difference between "copy" module and "command" module](https://forum.ansible.com/t/sudo-become-difference-between-copy-module-and-command-module/33119)

<div class="topic-metadata">

**Author:** [@Mukuntha\_rajaa](https://forum.ansible.com/u/Mukuntha_rajaa)\
**Replies:** 6\
**Last updated:** [June 9, 2020, 9:15am UTC](https://forum.ansible.com/t/sudo-become-difference-between-copy-module-and-command-module/33119 "2020-06-09T09:15:38Z")

</div>

Hello, “become” works perfectly fine with “command” module. But not with “copy” module. Am I doing something wrong here. Working playbook: name: demo hosts: localhost tasks: name: copy command: cp /etc/ssh/sshd\_co…

---

## [Erreur parameter in ios\_command module](https://forum.ansible.com/t/erreur-parameter-in-ios-command-module/33125)

<div class="topic-metadata">

**Author:** [@Redhat](https://forum.ansible.com/u/Redhat)\
**Replies:** 1\
**Last updated:** [June 9, 2020, 8:32am UTC](https://forum.ansible.com/t/erreur-parameter-in-ios-command-module/33125 "2020-06-09T08:32:31Z")

</div>

Hello; I wanted to update switch cisco by ansible. To copy the ios image from SFTP server, the playbook deployment will display the following error: FAILED! =\> {“changed”: false, “msg”: “Unsupported parameters for (ios…

---

## [Match two strings in when condition from registered output](https://forum.ansible.com/t/match-two-strings-in-when-condition-from-registered-output/33123)

<div class="topic-metadata">

**Author:** [@vinay\_kumar](https://forum.ansible.com/u/vinay_kumar)\
**Replies:** 7\
**Last updated:** [June 9, 2020, 8:07am UTC](https://forum.ansible.com/t/match-two-strings-in-when-condition-from-registered-output/33123 "2020-06-09T08:07:50Z")

</div>

1: Hello Is it possible to search in when condition two strings from single line by matching the registered output. For example: the registered output consists of services and its status 1: httpd disabled 2: tftp e…

---

## [While using j2 template and with\_items i get the last item in o/p](https://forum.ansible.com/t/while-using-j2-template-and-with-items-i-get-the-last-item-in-o-p/33122)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 1\
**Last updated:** [June 8, 2020, 6:25pm UTC](https://forum.ansible.com/t/while-using-j2-template-and-with-items-i-get-the-last-item-in-o-p/33122 "2020-06-08T18:25:14Z")

</div>

Hi my playbook is : name: include vars include\_vars: file: /home/rparida1/content-var.yml name: Testing template: src: /home/rparida1/config.j2 dest: /home/rparida1/test-raka1111222.properties with\_items: …

---

## [ansible-playbook and different screen / file log output](https://forum.ansible.com/t/ansible-playbook-and-different-screen-file-log-output/33120)

<div class="topic-metadata">

**Author:** [@Waldek\_Maleska](https://forum.ansible.com/u/Waldek_Maleska)\
**Replies:** 0\
**Last updated:** [June 8, 2020, 4:18pm UTC](https://forum.ansible.com/t/ansible-playbook-and-different-screen-file-log-output/33120 "2020-06-08T16:18:23Z")

</div>

Hello, I was wondering if such a logging scenario is possible out of the box with Ansible or it it something which would need to be implemented as a custom callback plugin: on screen (stdout), I’d like to see all chan…

---

## [aws community edition and collection](https://forum.ansible.com/t/aws-community-edition-and-collection/33082)

<div class="topic-metadata">

**Author:** [@Sydo\_Luciani](https://forum.ansible.com/u/Sydo_Luciani)\
**Replies:** 13\
**Last updated:** [June 8, 2020, 3:50pm UTC](https://forum.ansible.com/t/aws-community-edition-and-collection/33082 "2020-06-08T15:50:49Z")

</div>

aws modules have been redirected/moved to two different repositories, some to community.aws and some to amazon.aws https://github.com/ansible-collections/amazon.aws https://github.com/ansible-collections/community.aws …

---

## [how to read variable from j2 and insert multiple values in final file](https://forum.ansible.com/t/how-to-read-variable-from-j2-and-insert-multiple-values-in-final-file/33118)

<div class="topic-metadata">

**Author:** [@Aditya](https://forum.ansible.com/u/Aditya)\
**Replies:** 0\
**Last updated:** [June 8, 2020, 3:21pm UTC](https://forum.ansible.com/t/how-to-read-variable-from-j2-and-insert-multiple-values-in-final-file/33118 "2020-06-08T15:21:21Z")

</div>

Hi Guys, I have to write a task to read a j2 file and values from inventory and update the final file with multiple values of same variable defined in j2. I have tried to explain it with an example below. Please note i…

---

## [Use Ansible to Install SharePoint Server Updates](https://forum.ansible.com/t/use-ansible-to-install-sharepoint-server-updates/33090)

<div class="topic-metadata">

**Author:** [@Raikhan\_Mussin](https://forum.ansible.com/u/Raikhan_Mussin)\
**Replies:** 4\
**Last updated:** [June 8, 2020, 4:39am UTC](https://forum.ansible.com/t/use-ansible-to-install-sharepoint-server-updates/33090 "2020-06-08T04:39:06Z")

</div>

Hello! My name is Raikhan. Maybe someone used Ansible to install Microsoft updates? We configured Ansible to install Microsoft updates, and this works successfully for all updates, except for SharePoint Server 2013 up…

---

## [ec2 instance not reachable](https://forum.ansible.com/t/ec2-instance-not-reachable/33111)

<div class="topic-metadata">

**Author:** [@Sanjay\_Chakraborty](https://forum.ansible.com/u/Sanjay_Chakraborty)\
**Replies:** 2\
**Last updated:** [June 8, 2020, 2:18am UTC](https://forum.ansible.com/t/ec2-instance-not-reachable/33111 "2020-06-08T02:18:25Z")

</div>

Hi guys, I need to set up some ec2 instances for my project and I am in the process of doing proof of concept. My playbook creates an aws ec2 instance and I am using an already created security group that includes ssh …

---

## [disable\_service\_controls is not working](https://forum.ansible.com/t/disable-service-controls-is-not-working/33110)

<div class="topic-metadata">

**Author:** [@Vishwas\_Govekar](https://forum.ansible.com/u/Vishwas_Govekar)\
**Replies:** 3\
**Last updated:** [June 7, 2020, 6:33pm UTC](https://forum.ansible.com/t/disable-service-controls-is-not-working/33110 "2020-06-07T18:33:22Z")

</div>

Hi I have ansible roles for each app which has stop and start tasks ,I have global role deploy\_all which use stop all ,deploy apps in sequential order and start all When I call the global role deploy\_all the local star…

---

## [Passing variables between hosts](https://forum.ansible.com/t/passing-variables-between-hosts/33078)

<div class="topic-metadata">

**Author:** [@Andrew\_Morgan](https://forum.ansible.com/u/Andrew_Morgan)\
**Replies:** 2\
**Last updated:** [June 7, 2020, 12:02am UTC](https://forum.ansible.com/t/passing-variables-between-hosts/33078 "2020-06-07T00:02:38Z")

</div>

Hello all, I have a playbook that is 99% complete but fails on the last step.My inventory file and playbook are below. I only added the last parts \` \[dev\] dev\_jenkins ansible\_ssh\_host=44.244.444.44 ansible\_python\_int…

---

## [windows update playbook failed](https://forum.ansible.com/t/windows-update-playbook-failed/33107)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 3\
**Last updated:** [June 6, 2020, 11:40pm UTC](https://forum.ansible.com/t/windows-update-playbook-failed/33107 "2020-06-06T23:40:12Z")

</div>

I brought up a new 2012 server and decided to use anisble to patch it. but it failed on some patches fatal: \[vasvw-winpsctst\]: FAILED! =\> { “changed”: true, “failed\_update\_count”: 0, “filtered\_updates”: { “2221dd34…

---

## [issues building json body for rest api update](https://forum.ansible.com/t/issues-building-json-body-for-rest-api-update/33108)

<div class="topic-metadata">

**Author:** [@sebastien\_Morissette](https://forum.ansible.com/u/sebastien_Morissette)\
**Replies:** 0\
**Last updated:** [June 6, 2020, 3:30pm UTC](https://forum.ansible.com/t/issues-building-json-body-for-rest-api-update/33108 "2020-06-06T15:30:24Z")

</div>

Hi, I am trying to update an object on an rest api endpoing and I need to build the proper json structure. I am getting unwanted extra sets of quotes in my activateRegions list and I do not know how to remove them or bu…

---

## [Default values are also added part of user input in ansible resource modules, is this bug or by design?](https://forum.ansible.com/t/default-values-are-also-added-part-of-user-input-in-ansible-resource-modules-is-this-bug-or-by-design/33106)

<div class="topic-metadata">

**Author:** [@Mohamed\_Javeed](https://forum.ansible.com/u/Mohamed_Javeed)\
**Replies:** 0\
**Last updated:** [June 6, 2020, 10:48am UTC](https://forum.ansible.com/t/default-values-are-also-added-part-of-user-input-in-ansible-resource-modules-is-this-bug-or-by-design/33106 "2020-06-06T10:48:12Z")

</div>

Hi All, Default values are also added part of user input in ansible resource modules, is this bug or by design? Below is the configuration available in switch: name: Ethernet28 access: vlan: 11 trunk: vlan: 12 …

---

## [how do i setup a vault password for administraator@vsphere.local](https://forum.ansible.com/t/how-do-i-setup-a-vault-password-for-administraator-vsphere-local/33103)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [June 6, 2020, 5:34am UTC](https://forum.ansible.com/t/how-do-i-setup-a-vault-password-for-administraator-vsphere-local/33103 "2020-06-06T05:34:37Z")

</div>

How do I setup a vault password for user administrator@vsphere.local?

---

## [ansible-role-vcsa](https://forum.ansible.com/t/ansible-role-vcsa/33104)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [June 6, 2020, 5:19am UTC](https://forum.ansible.com/t/ansible-role-vcsa/33104 "2020-06-06T05:19:04Z")

</div>

does anyone used this to deploy vcsa? \\

---

## [Jinja template regex search for a specific word or up to a specific character](https://forum.ansible.com/t/jinja-template-regex-search-for-a-specific-word-or-up-to-a-specific-character/33105)

<div class="topic-metadata">

**Author:** [@J111](https://forum.ansible.com/u/J111)\
**Replies:** 0\
**Last updated:** [June 5, 2020, 11:48pm UTC](https://forum.ansible.com/t/jinja-template-regex-search-for-a-specific-word-or-up-to-a-specific-character/33105 "2020-06-05T23:48:50Z")

</div>

I’m trying to search for a specific string from a var and while it finds it, it prints the whole line and not the exact match I’m looking for. I’m running ansible 2.9 Here is what it finds: Interface GigabitEthernet0/1 …

---

## [convert int index to alphabet letter](https://forum.ansible.com/t/convert-int-index-to-alphabet-letter/33100)

<div class="topic-metadata">

**Author:** [@Quentin\_Aveno](https://forum.ansible.com/u/Quentin_Aveno)\
**Replies:** 2\
**Last updated:** [June 5, 2020, 8:56pm UTC](https://forum.ansible.com/t/convert-int-index-to-alphabet-letter/33100 "2020-06-05T20:56:28Z")

</div>

Hi everyone, (It’s more a jinja quesion but…) Is there a way to convert a int to an alphabet letter (1 → a, 2 → b…) More aesthetic than (with a filter and less useless variables): \` letters: ‘abcdefghijklmnopqrstuvw…

---

## [Azure - Creating new / Gen2](https://forum.ansible.com/t/azure-creating-new-gen2/33101)

<div class="topic-metadata">

**Author:** [@Adam\_McGill](https://forum.ansible.com/u/Adam_McGill)\
**Replies:** 0\
**Last updated:** [June 5, 2020, 8:39pm UTC](https://forum.ansible.com/t/azure-creating-new-gen2/33101 "2020-06-05T20:39:29Z")

</div>

What azure module can i use to set the vm generation when creating a new vm? Figured it would be under azure\_rm\_virtualmachine. Would like to make sure it will be created with gen 2.

---

## [With\_items /pass var - string.](https://forum.ansible.com/t/with-items-pass-var-string/33074)

<div class="topic-metadata">

**Author:** [@Adam\_McGill](https://forum.ansible.com/u/Adam_McGill)\
**Replies:** 5\
**Last updated:** [June 5, 2020, 7:22pm UTC](https://forum.ansible.com/t/with-items-pass-var-string/33074 "2020-06-05T19:22:23Z")

</div>

I would like to take the value of the var and pass it into with\_items and I am running into an issue / error, how can i pass just the value into with\_items. If i hardcode and put the value with\_items: {{ small2019 }} in …

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

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