# Ansible Project

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

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

**Page:** 90

---

## [Create Lower size LV. If Volume Group has less space.](https://forum.ansible.com/t/create-lower-size-lv-if-volume-group-has-less-space/34531)

<div class="topic-metadata">

**Author:** [@Aris\_Aguirre](https://forum.ansible.com/u/Aris_Aguirre)\
**Replies:** 4\
**Last updated:** [January 29, 2021, 4:12pm UTC](https://forum.ansible.com/t/create-lower-size-lv-if-volume-group-has-less-space/34531 "2021-01-29T16:12:01Z")

</div>

I have a playbook below. But it only works on the nodes that has 800G (SDB) or the Volume Group has 800G free space. I am expecting that i Volume Group(vgaris) exist and only has 300G, it will still create 100G of lvaris…

---

## [How to get backup ip and assign to a variable](https://forum.ansible.com/t/how-to-get-backup-ip-and-assign-to-a-variable/34536)

<div class="topic-metadata">

**Author:** [@Ramakrishna\_V](https://forum.ansible.com/u/Ramakrishna_V)\
**Replies:** 2\
**Last updated:** [January 29, 2021, 2:51pm UTC](https://forum.ansible.com/t/how-to-get-backup-ip-and-assign-to-a-variable/34536 "2021-01-29T14:51:46Z")

</div>

Hi, How to search for a IPv4 starting with “192.168.x.x” from ansible\_all\_ipv4\_addresses and assign to variable. If not, assign default ipv4. The use case is, I need to get backup ip and assign to a variable. I need to…

---

## ["become" is being ignored by ansible](https://forum.ansible.com/t/become-is-being-ignored-by-ansible/34538)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [January 29, 2021, 2:36pm UTC](https://forum.ansible.com/t/become-is-being-ignored-by-ansible/34538 "2021-01-29T14:36:30Z")

</div>

become\_user is the 'user you want to become' after privilege escalation, you are setting it as the same as remote\_user which is a noop, don't set it and the default (root) will do what you want.

---

## [Reboot that requires inventory refresh](https://forum.ansible.com/t/reboot-that-requires-inventory-refresh/34534)

<div class="topic-metadata">

**Author:** [@Paavo\_Leinonen](https://forum.ansible.com/u/Paavo_Leinonen)\
**Replies:** 1\
**Last updated:** [January 29, 2021, 11:14am UTC](https://forum.ansible.com/t/reboot-that-requires-inventory-refresh/34534 "2021-01-29T11:14:52Z")

</div>

Hi, I have 2 VPN servers, and remote-random in VPN config, so clients connect to server1 or server2. I need clients to reboot after major upgrades (new kernel), and the problem is that if the client connects to differe…

---

## [Failed to connect to the host via ssh: Permission denied (publickey,password)](https://forum.ansible.com/t/failed-to-connect-to-the-host-via-ssh-permission-denied-publickey-password/34529)

<div class="topic-metadata">

**Author:** [@a.srini](https://forum.ansible.com/u/a.srini)\
**Replies:** 4\
**Last updated:** [January 29, 2021, 7:06am UTC](https://forum.ansible.com/t/failed-to-connect-to-the-host-via-ssh-permission-denied-publickey-password/34529 "2021-01-29T07:06:18Z")

</div>

I have a playbook where it has an option that can be run in 2 different ways. When having single host to execute, can run prompt.yml file to execute against single host. When a large number of hosts exits, that was kep…

---

## [Ansible Organization - When to split out projects](https://forum.ansible.com/t/ansible-organization-when-to-split-out-projects/34504)

<div class="topic-metadata">

**Author:** [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Replies:** 4\
**Last updated:** [January 28, 2021, 10:54pm UTC](https://forum.ansible.com/t/ansible-organization-when-to-split-out-projects/34504 "2021-01-28T22:54:18Z")

</div>

Good morning, I am working on setting up an ansible repository, for work. We are going to be using AWX eventually ( sooner rather than later ). What I am wondering, is how people decided to split up their ansible projec…

---

## [default value for undefined ansible facts not working in ansible 2.7 but working in ansible 2.8](https://forum.ansible.com/t/default-value-for-undefined-ansible-facts-not-working-in-ansible-2-7-but-working-in-ansible-2-8/34514)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 4\
**Last updated:** [January 28, 2021, 9:27pm UTC](https://forum.ansible.com/t/default-value-for-undefined-ansible-facts-not-working-in-ansible-2-7-but-working-in-ansible-2-8/34514 "2021-01-28T21:27:39Z")

</div>

How about you posting some normal text instead of huge yet indecipherable screendumps? (attachments)

---

## [Modifying a file](https://forum.ansible.com/t/modifying-a-file/34506)

<div class="topic-metadata">

**Author:** [@Aris\_Aguirre](https://forum.ansible.com/u/Aris_Aguirre)\
**Replies:** 7\
**Last updated:** [January 28, 2021, 7:50pm UTC](https://forum.ansible.com/t/modifying-a-file/34506 "2021-01-28T19:50:54Z")

</div>

I can easily use a file module to delete the existing file and create a new one with File1 content. But I want to modifile the file using lineinfile or replace. Please help. Thanks Existing File: This is an existing …

---

## [postgresql\_user readonly user](https://forum.ansible.com/t/postgresql-user-readonly-user/34520)

<div class="topic-metadata">

**Author:** [@zausel\_z](https://forum.ansible.com/u/zausel_z)\
**Replies:** 7\
**Last updated:** [January 28, 2021, 6:13pm UTC](https://forum.ansible.com/t/postgresql-user-readonly-user/34520 "2021-01-28T18:13:28Z")

</div>

Hi, I’m using the postgresql\_user\_module. How can I create a read-only-user (SELECT) for all tables of a database? priv: CONNECT/ALL:SELECT is not working thank you

---

## [report for mount size\_available](https://forum.ansible.com/t/report-for-mount-size-available/34494)

<div class="topic-metadata">

**Author:** [@Jost](https://forum.ansible.com/u/Jost)\
**Replies:** 14\
**Last updated:** [January 28, 2021, 12:49pm UTC](https://forum.ansible.com/t/report-for-mount-size-available/34494 "2021-01-28T12:49:37Z")

</div>

Hi I would like to create report for free partition size under “ansible\_mounts” “ansible\_mounts”: \[ { “block\_available”: 3911145, “block\_size”: 4096, “block\_total”: 4452864, “block\_used”: 541719, “device”: “/dev/…

---

## [specific task is not executing by using tags in roles](https://forum.ansible.com/t/specific-task-is-not-executing-by-using-tags-in-roles/34521)

<div class="topic-metadata">

**Author:** [@Ramesh\_AR](https://forum.ansible.com/u/Ramesh_AR)\
**Replies:** 11\
**Last updated:** [January 28, 2021, 4:52am UTC](https://forum.ansible.com/t/specific-task-is-not-executing-by-using-tags-in-roles/34521 "2021-01-28T04:52:18Z")

</div>

when I defined tags in main.yml and roles, i couldn’t able to execute specific tags by using --tags or --skip-tags… when I run the below with --tags=tag1 , I see whole playbook has executing I have defined a task ( 127…

---

## [Correct approach to manage a config file](https://forum.ansible.com/t/correct-approach-to-manage-a-config-file/34524)

<div class="topic-metadata">

**Author:** [@mimmus](https://forum.ansible.com/u/mimmus)\
**Replies:** 3\
**Last updated:** [January 27, 2021, 4:47pm UTC](https://forum.ansible.com/t/correct-approach-to-manage-a-config-file/34524 "2021-01-27T16:47:28Z")

</div>

Hi, I’m a pretty seasoned sysadmin and I’m used to carefully manage config files modifying: only minimum needed on main “service.conf” file under /etc (commenting in/out lines, editing values, etc but without upsetti…

---

## [Ansible authentication with windows by using GoDaddy or third party certificates](https://forum.ansible.com/t/ansible-authentication-with-windows-by-using-godaddy-or-third-party-certificates/34517)

<div class="topic-metadata">

**Author:** [@karthik\_kumar1](https://forum.ansible.com/u/karthik_kumar1)\
**Replies:** 0\
**Last updated:** [January 27, 2021, 5:22am UTC](https://forum.ansible.com/t/ansible-authentication-with-windows-by-using-godaddy-or-third-party-certificates/34517 "2021-01-27T05:22:55Z")

</div>

Hi, Need help on setting up authentication between ansible and windows by using GoDaddy certificates or any third party instead of Openssl or SelfSigned certificate. I have tried many ways but its not working. i was ab…

---

## [accessing nested variables in dictionary that contains ansible-variable as key](https://forum.ansible.com/t/accessing-nested-variables-in-dictionary-that-contains-ansible-variable-as-key/34515)

<div class="topic-metadata">

**Author:** [@Philip\_Svensson](https://forum.ansible.com/u/Philip_Svensson)\
**Replies:** 1\
**Last updated:** [January 27, 2021, 3:43am UTC](https://forum.ansible.com/t/accessing-nested-variables-in-dictionary-that-contains-ansible-variable-as-key/34515 "2021-01-27T03:43:45Z")

</div>

Hey I’m wondering how I should point to variables nested like shown below. if it helps, the playbook I’m writing doesn’t need to work with multiple hosts at once The variable cannot be re-structured since it’s being us…

---

## [Ansible-2.10.6 has been released](https://forum.ansible.com/t/ansible-2-10-6-has-been-released/34516)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [January 27, 2021, 1:27am UTC](https://forum.ansible.com/t/ansible-2-10-6-has-been-released/34516 "2021-01-27T01:27:37Z")

</div>

Hi all, We're happy to announce that the ansible-2.10.6 package is now available! This update contains bugfixes and new, backwards compatible features in the contained collections. Ansible-2.10.x is a big change in h…

---

## [default value for undefined ansible facts not working in ansible 2.7 but working in ansible 2.8](https://forum.ansible.com/t/default-value-for-undefined-ansible-facts-not-working-in-ansible-2-7-but-working-in-ansible-2-8/34513)

<div class="topic-metadata">

**Author:** [@galaxy\_boy](https://forum.ansible.com/u/galaxy_boy)\
**Replies:** 0\
**Last updated:** [January 26, 2021, 9:20pm UTC](https://forum.ansible.com/t/default-value-for-undefined-ansible-facts-not-working-in-ansible-2-7-but-working-in-ansible-2-8/34513 "2021-01-26T21:20:45Z")

</div>

---

## [module stderr](https://forum.ansible.com/t/module-stderr/34511)

<div class="topic-metadata">

**Author:** [@kevin.mu](https://forum.ansible.com/u/kevin.mu)\
**Replies:** 2\
**Last updated:** [January 26, 2021, 9:15pm UTC](https://forum.ansible.com/t/module-stderr/34511 "2021-01-26T21:15:22Z")

</div>

Hello, I am getting this issue when launching the template from AWX. I have been trying to figure it out for a while but got stuck and was hoping anyone could assist please? Please see the attached screenshot of the e…

---

## [Still create LVM even hosts dont have enough space](https://forum.ansible.com/t/still-create-lvm-even-hosts-dont-have-enough-space/34502)

<div class="topic-metadata">

**Author:** [@ursa\_Brown](https://forum.ansible.com/u/ursa_Brown)\
**Replies:** 8\
**Last updated:** [January 25, 2021, 6:32pm UTC](https://forum.ansible.com/t/still-create-lvm-even-hosts-dont-have-enough-space/34502 "2021-01-25T18:32:20Z")

</div>

I got 2 hosts, one has 50G and the other one has 30G. I have no problem creating a 40G LVM on the hosts that has 50G. But how can I make my ansible script if the hosts has 30G. It will say not enough space then create …

---

## [Is there no official Docker image for Ansible?](https://forum.ansible.com/t/is-there-no-official-docker-image-for-ansible/34498)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 2\
**Last updated:** [January 25, 2021, 3:06pm UTC](https://forum.ansible.com/t/is-there-no-official-docker-image-for-ansible/34498 "2021-01-25T15:06:17Z")

</div>

Hey all, I just thought of a very edge case use for Ansible that would work well if I could run it via Docker. When I looked for an image, I found that ansible/ansible hasn’t been updated in 3 years. Before I commit to…

---

## [Python pexpect issue](https://forum.ansible.com/t/python-pexpect-issue/34495)

<div class="topic-metadata">

**Author:** [@Rene\_Paquin](https://forum.ansible.com/u/Rene_Paquin)\
**Replies:** 3\
**Last updated:** [January 25, 2021, 2:52pm UTC](https://forum.ansible.com/t/python-pexpect-issue/34495 "2021-01-25T14:52:50Z")

</div>

Running the playbook below to join a linux server to our AD domain. The screenshot below displays the version of ansible. The issue I am having is with the pexpect module. I am getting the following error at the point wh…

---

## [how to list ansible collection in collection index.](https://forum.ansible.com/t/how-to-list-ansible-collection-in-collection-index/34499)

<div class="topic-metadata">

**Author:** [@alok\_ranjan](https://forum.ansible.com/u/alok_ranjan)\
**Replies:** 2\
**Last updated:** [January 24, 2021, 2:58am UTC](https://forum.ansible.com/t/how-to-list-ansible-collection-in-collection-index/34499 "2021-01-24T02:58:31Z")

</div>

Hi all, We have developed ansible collections for HPE NIMBLE array with ansible 2.9.Links for the same are below. https://galaxy.ansible.com/hpe/nimble on red hat automation: https://cloud.redhat.com/ansible/automati…

---

## [ansible error](https://forum.ansible.com/t/ansible-error/34472)

<div class="topic-metadata">

**Author:** [@Andrew\_Meyer1](https://forum.ansible.com/u/Andrew_Meyer1)\
**Replies:** 5\
**Last updated:** [January 23, 2021, 4:29pm UTC](https://forum.ansible.com/t/ansible-error/34472 "2021-01-23T16:29:11Z")

</div>

Hello, I am trying to run my ansible playbook but am getting the following error running ansible ansible-2.9.16-1.el8.noarch ansible-doc-2.9.16-1.el8.noarch ansible-freeipa-0.1.12-6.el8.noarch The full traceback is…

---

## [Using special characters in strings](https://forum.ansible.com/t/using-special-characters-in-strings/34497)

<div class="topic-metadata">

**Author:** [@Subhi\_Andrews](https://forum.ansible.com/u/Subhi_Andrews)\
**Replies:** 2\
**Last updated:** [January 23, 2021, 6:27am UTC](https://forum.ansible.com/t/using-special-characters-in-strings/34497 "2021-01-23T06:27:37Z")

</div>

I am trying use ‘\*’ as a value for the domain parameter in this module https://docs.ansible.com/ansible/latest/collections/community/general/pam\_limits\_module.html It just keeps saying I am missing quotes around the st…

---

## [Hostvar variable index in template](https://forum.ansible.com/t/hostvar-variable-index-in-template/34492)

<div class="topic-metadata">

**Author:** [@Csoke\_Janos](https://forum.ansible.com/u/Csoke_Janos)\
**Replies:** 2\
**Last updated:** [January 22, 2021, 8:53pm UTC](https://forum.ansible.com/t/hostvar-variable-index-in-template/34492 "2021-01-22T20:53:43Z")

</div>

Hi, I have a problem and I can’t find a solutions. In my playbook, I have a host based variable called: server\_name I would like to use in a template file the IP address of the server which hostname’s is stored in the…

---

## [Save debug output to local file](https://forum.ansible.com/t/save-debug-output-to-local-file/34489)

<div class="topic-metadata">

**Author:** [@Ramesh\_AR](https://forum.ansible.com/u/Ramesh_AR)\
**Replies:** 2\
**Last updated:** [January 21, 2021, 6:49pm UTC](https://forum.ansible.com/t/save-debug-output-to-local-file/34489 "2021-01-21T18:49:32Z")

</div>

Folks, I’m trying to copy the debug output to a local file for next task. My host inventory has 2 hosts and I see the local file has only one host output. is something missing in playbook ? if I have 10 hosts how to g…

---

## [How to handle multi-host roles?](https://forum.ansible.com/t/how-to-handle-multi-host-roles/34484)

<div class="topic-metadata">

**Author:** [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Replies:** 8\
**Last updated:** [January 21, 2021, 3:18pm UTC](https://forum.ansible.com/t/how-to-handle-multi-host-roles/34484 "2021-01-21T15:18:54Z")

</div>

I am unfamiliar with how administrators structure their inventories and playbooks with respect to roles that run against multiple hosts as a group. We have two new system roles - vpn https://github.com/linux-system-role…

---

## [how to get the host in groups children?](https://forum.ansible.com/t/how-to-get-the-host-in-groups-children/34485)

<div class="topic-metadata">

**Author:** [@liyo](https://forum.ansible.com/u/liyo)\
**Replies:** 1\
**Last updated:** [January 21, 2021, 7:37am UTC](https://forum.ansible.com/t/how-to-get-the-host-in-groups-children/34485 "2021-01-21T07:37:11Z")

</div>

my inventroy file is below: \[master\] 172.24.64.44 172.24.64.42 172.24.64.43 \[worker\] 172.24.64.46 \[cluster:children\] master worker I want to exec the playbook in \[cluster:children\]'s master 172.24.64.44,want to…

---

## [Process/Governance](https://forum.ansible.com/t/process-governance/34477)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 3\
**Last updated:** [January 20, 2021, 7:31pm UTC](https://forum.ansible.com/t/process-governance/34477 "2021-01-20T19:31:29Z")

</div>

Hello All, Would someone please explain Ansible process/governance around playbooks. Thanks

---

## [TASK \[archive the files\] fatal: : FAILED! =\> {"msg": "'dict object' has no attribute 'files'"}](https://forum.ansible.com/t/task-archive-the-files-fatal-failed-msg-dict-object-has-no-attribute-files/34478)

<div class="topic-metadata">

**Author:** [@Nithin\_Subbaraj](https://forum.ansible.com/u/Nithin_Subbaraj)\
**Replies:** 2\
**Last updated:** [January 20, 2021, 4:11pm UTC](https://forum.ansible.com/t/task-archive-the-files-fatal-failed-msg-dict-object-has-no-attribute-files/34478 "2021-01-20T16:11:21Z")

</div>

Hi Team, I am trying to create an ansible script which excludes a particular directory and its contents and should zip the files under other directories but getting the below error TASK \[archive the files\] fatal: : FA…

---

## [very simple ad-hoc command returning an error](https://forum.ansible.com/t/very-simple-ad-hoc-command-returning-an-error/34473)

<div class="topic-metadata">

**Author:** [@Oliver\_Schiinke](https://forum.ansible.com/u/Oliver_Schiinke)\
**Replies:** 2\
**Last updated:** [January 20, 2021, 1:16pm UTC](https://forum.ansible.com/t/very-simple-ad-hoc-command-returning-an-error/34473 "2021-01-20T13:16:08Z")

</div>

Hello, I’m trying to run this ad-hoc command to install ntp package in a specific server: ansible db -b -m yum -a “name=ntp state=present” But I’m getting this error: FAILED! =\> { “ansible\_facts”: { “discovered\_in…

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

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