# Ansible Project

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

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

**Page:** 60

---

## [Ansible 5.0.0b2 available for testing](https://forum.ansible.com/t/ansible-5-0-0b2-available-for-testing/35999)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 0\
**Last updated:** [November 16, 2021, 3:13pm UTC](https://forum.ansible.com/t/ansible-5-0-0b2-available-for-testing/35999 "2021-11-16T15:13:27Z")

</div>

Hi all, We're happy to announce that the Ansible 5.0.0 beta2 package is now available! This version is based on the newly released ansible-core 2.12.0 which is a major update from ansible-core 2.11.x used in Ansible 4…

---

## [Reg: Service check and stop during windows update.](https://forum.ansible.com/t/reg-service-check-and-stop-during-windows-update/35998)

<div class="topic-metadata">

**Author:** [@harsh\_chawda](https://forum.ansible.com/u/harsh_chawda)\
**Replies:** 1\
**Last updated:** [November 16, 2021, 11:27am UTC](https://forum.ansible.com/t/reg-service-check-and-stop-during-windows-update/35998 "2021-11-16T11:27:03Z")

</div>

Hello All, I am doing windows server patching for some of the windows servers on my environment. Now i have a requirement in which i have to check a service if it exists and stop it before installing update/patch. can…

---

## [Determining distribution specific facts/paths/etc](https://forum.ansible.com/t/determining-distribution-specific-facts-paths-etc/35997)

<div class="topic-metadata">

**Author:** [@opoplawski](https://forum.ansible.com/u/opoplawski)\
**Replies:** 3\
**Last updated:** [November 16, 2021, 4:05am UTC](https://forum.ansible.com/t/determining-distribution-specific-facts-paths-etc/35997 "2021-11-16T04:05:57Z")

</div>

I’ve found myself writing a lot of tasks like: name: “RedHat: Set facts” set\_fact: path\_lib\_security=“/usr/lib64/security” when: ansible\_os\_family == ‘RedHat’ or ansible\_os\_family == ‘SHMZ’ name: “Debian: Set fac…

---

## [I want to execute nohup command on remote host using ansible but it didn't work](https://forum.ansible.com/t/i-want-to-execute-nohup-command-on-remote-host-using-ansible-but-it-didnt-work/35996)

<div class="topic-metadata">

**Author:** [@Dip\_Giri](https://forum.ansible.com/u/Dip_Giri)\
**Replies:** 2\
**Last updated:** [November 15, 2021, 9:38am UTC](https://forum.ansible.com/t/i-want-to-execute-nohup-command-on-remote-host-using-ansible-but-it-didnt-work/35996 "2021-11-15T09:38:47Z")

</div>

---

## [Remove CRON entry not created with Ansible](https://forum.ansible.com/t/remove-cron-entry-not-created-with-ansible/35992)

<div class="topic-metadata">

**Author:** [@Adam1](https://forum.ansible.com/u/Adam1)\
**Replies:** 2\
**Last updated:** [November 13, 2021, 1:45pm UTC](https://forum.ansible.com/t/remove-cron-entry-not-created-with-ansible/35992 "2021-11-13T13:45:54Z")

</div>

Via Ansible, is there any way to remove a CRON job entry that was not created by Ansible? For example, I have the entry below, but as you can see, it does not have the ansible above it, so it does not have a “name” param…

---

## [Clarification on module](https://forum.ansible.com/t/clarification-on-module/35990)

<div class="topic-metadata">

**Author:** [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Replies:** 2\
**Last updated:** [November 12, 2021, 11:08am UTC](https://forum.ansible.com/t/clarification-on-module/35990 "2021-11-12T11:08:43Z")

</div>

Hi, I have a few queries regarding the Module run on remote machines :- If I run a playbook which has a task to run some module, does that module create any temporary file in the remote machine to run the module? Is i…

---

## [Ansible Playbook for Windows Patching](https://forum.ansible.com/t/ansible-playbook-for-windows-patching/35985)

<div class="topic-metadata">

**Author:** [@Jitendra\_Ingale](https://forum.ansible.com/u/Jitendra_Ingale)\
**Replies:** 6\
**Last updated:** [November 12, 2021, 6:35am UTC](https://forum.ansible.com/t/ansible-playbook-for-windows-patching/35985 "2021-11-12T06:35:15Z")

</div>

Folks, I am using below pasted playbook for windows server patching which has variable file defined along with. It is supposed to take KB number mentioned in variable file and install it on server, followed by server r…

---

## [how to read a yaml file and update itself ?](https://forum.ansible.com/t/how-to-read-a-yaml-file-and-update-itself/35969)

<div class="topic-metadata">

**Author:** [@Eric\_Chang](https://forum.ansible.com/u/Eric_Chang)\
**Replies:** 4\
**Last updated:** [November 12, 2021, 1:43am UTC](https://forum.ansible.com/t/how-to-read-a-yaml-file-and-update-itself/35969 "2021-11-12T01:43:07Z")

</div>

let’s said I have a yaml file like centers.yml centers: center\_id: ABC123 center\_password: 123456789 center\_id: 123ABC center\_password: “” now I want to read the centers.yml , and update center\_password with pwgen…

---

## [Ansible Control Node Configuration](https://forum.ansible.com/t/ansible-control-node-configuration/35987)

<div class="topic-metadata">

**Author:** [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Replies:** 1\
**Last updated:** [November 11, 2021, 7:16pm UTC](https://forum.ansible.com/t/ansible-control-node-configuration/35987 "2021-11-11T19:16:37Z")

</div>

Good Afternoon, My team is in the process of doing a review of our current environment. The question came up, that since the ansible control node has the “keys to the kingdom” that it should not live on public IP space.…

---

## [Regarding Stopping Execution if condition met](https://forum.ansible.com/t/regarding-stopping-execution-if-condition-met/35982)

<div class="topic-metadata">

**Author:** [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Replies:** 2\
**Last updated:** [November 10, 2021, 6:56pm UTC](https://forum.ansible.com/t/regarding-stopping-execution-if-condition-met/35982 "2021-11-10T18:56:41Z")

</div>

Hi Guys, I want to add a condition to stop execution of playbook if “vlan not found”. I am attaching my playbook tasks below: name: check vlan availability ios\_command: commands: show vlan id {{ vlan1 }} regist…

---

## [Question about template module](https://forum.ansible.com/t/question-about-template-module/35984)

<div class="topic-metadata">

**Author:** [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Replies:** 2\
**Last updated:** [November 10, 2021, 6:14pm UTC](https://forum.ansible.com/t/question-about-template-module/35984 "2021-11-10T18:14:36Z")

</div>

Good morning!! I have a quick question about how the template module works under the hood, that I wasn’t able to find any information on, and was asked about by a coworker. So, let’s say I have a role where I created a…

---

## [Unarchive and FreeBSD](https://forum.ansible.com/t/unarchive-and-freebsd/35986)

<div class="topic-metadata">

**Author:** [@Norman\_Gray](https://forum.ansible.com/u/Norman_Gray)\
**Replies:** 1\
**Last updated:** [November 10, 2021, 6:05pm UTC](https://forum.ansible.com/t/unarchive-and-freebsd/35986 "2021-11-10T18:05:46Z")

</div>

Greetings. I recently raised issue \<https://github.com/ansible/ansible/issues/76264&gt;, connected to the behaviour of the \`unarchive\` module on FreeBSD. It was closed as a duplicate and, in effect, not-a-bug, with the…

---

## [Ansible 5.0.0b1 available for testing](https://forum.ansible.com/t/ansible-5-0-0b1-available-for-testing/35981)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 2\
**Last updated:** [November 9, 2021, 10:14pm UTC](https://forum.ansible.com/t/ansible-5-0-0b1-available-for-testing/35981 "2021-11-09T22:14:34Z")

</div>

Hi all, We're happy to announce that the Ansible 5.0.0 beta1 package is now available! This version is based on the newly released ansible-core 2.12.0 which is a major update from ansible-core 2.11.x used in Ansible 4…

---

## [ansible-core 2.12 - changes to "to\_nice\_yaml" output](https://forum.ansible.com/t/ansible-core-2-12-changes-to-to-nice-yaml-output/35979)

<div class="topic-metadata">

**Author:** [@ClausHolbechArista](https://forum.ansible.com/u/ClausHolbechArista)\
**Replies:** 3\
**Last updated:** [November 9, 2021, 4:17pm UTC](https://forum.ansible.com/t/ansible-core-2-12-changes-to-to-nice-yaml-output/35979 "2021-11-09T16:17:57Z")

</div>

We are seeing a small change to the output of “to\_nice\_yaml” and “to\_yaml” when using ansible-core 2.12 versus 2.11.5 and older. The changes are only about escaping for wrapped multi-line strings. If this in on purpose,…

---

## [How to append the new group to the existing AllowGroups line in /etc/ssh/sshd\_config](https://forum.ansible.com/t/how-to-append-the-new-group-to-the-existing-allowgroups-line-in-etc-ssh-sshd-config/35935)

<div class="topic-metadata">

**Author:** [@Suresh\_Karpurapu](https://forum.ansible.com/u/Suresh_Karpurapu)\
**Replies:** 5\
**Last updated:** [November 9, 2021, 12:27pm UTC](https://forum.ansible.com/t/how-to-append-the-new-group-to-the-existing-allowgroups-line-in-etc-ssh-sshd-config/35935 "2021-11-09T12:27:57Z")

</div>

Hi Experts, I would like to append the new group to the existing AllowGroups in /etc/ssh/sshd\_config file without disturbing the existing group. I tried with lineinfile module but unfortunately its failing or overwritin…

---

## [win\_dns\_record credentials](https://forum.ansible.com/t/win-dns-record-credentials/35973)

<div class="topic-metadata">

**Author:** [@Elio\_Lopez](https://forum.ansible.com/u/Elio_Lopez)\
**Replies:** 1\
**Last updated:** [November 9, 2021, 1:22am UTC](https://forum.ansible.com/t/win-dns-record-credentials/35973 "2021-11-09T01:22:32Z")

</div>

Hello there, I’m using the win\_dns\_record module in tower 3.8.3 in Openshift, but it doesn’t seem to have an option to put the credentials to be used, or at least not documented. The only way to fill in the required “a…

---

## [New major release: ansible-core 2.12.0](https://forum.ansible.com/t/new-major-release-ansible-core-2-12-0/35977)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [November 8, 2021, 3:48pm UTC](https://forum.ansible.com/t/new-major-release-ansible-core-2-12-0/35977 "2021-11-08T15:48:12Z")

</div>

Hi all- we’re happy to announce the general release of: ansible-core 2.12.0 How to get it

---

## [How to render boolean true in j2 file?](https://forum.ansible.com/t/how-to-render-boolean-true-in-j2-file/35976)

<div class="topic-metadata">

**Author:** [@Neil\_Young](https://forum.ansible.com/u/Neil_Young)\
**Replies:** 1\
**Last updated:** [November 8, 2021, 2:33pm UTC](https://forum.ansible.com/t/how-to-render-boolean-true-in-j2-file/35976 "2021-11-08T14:33:02Z")

</div>

I’m not entirely sure if this is a YAML problem or an Ansible thing. Trying to render a configuration json file from a j2 template. Template.j2 { “test”: {{ boolean\_test }} } default.yml: boolean\_test: true Resul…

---

## [missing wait option in amazon.aws.ec2\_spot\_instance module](https://forum.ansible.com/t/missing-wait-option-in-amazon-aws-ec2-spot-instance-module/35975)

<div class="topic-metadata">

**Author:** [@Rahul\_Gupta2](https://forum.ansible.com/u/Rahul_Gupta2)\
**Replies:** 0\
**Last updated:** [November 8, 2021, 7:46am UTC](https://forum.ansible.com/t/missing-wait-option-in-amazon-aws-ec2-spot-instance-module/35975 "2021-11-08T07:46:55Z")

</div>

Hi, amazon.aws.ec2 module has wait option which wait for the instance to reach its desired state before returning this is applicable for spot and non spot. But the new module amazon.aws.ec2\_spot\_instance doesnt have a w…

---

## [How to connect ansible with switch exos](https://forum.ansible.com/t/how-to-connect-ansible-with-switch-exos/35972)

<div class="topic-metadata">

**Author:** [@Fabiano\_Pamplona](https://forum.ansible.com/u/Fabiano_Pamplona)\
**Replies:** 0\
**Last updated:** [November 5, 2021, 5:05pm UTC](https://forum.ansible.com/t/how-to-connect-ansible-with-switch-exos/35972 "2021-11-05T17:05:05Z")

</div>

Hi all, I’m new with ansible and I trying to connect ansible version 2.9 runs on CentOS with EXOS switch. I tried to connect via SSH using certificates, I put the pub certificate into EXOS switch and try to use command …

---

## [Run Ansible via Shell Command on Remote GCP Servers](https://forum.ansible.com/t/run-ansible-via-shell-command-on-remote-gcp-servers/35968)

<div class="topic-metadata">

**Author:** [@Philip\_Shangguan](https://forum.ansible.com/u/Philip_Shangguan)\
**Replies:** 0\
**Last updated:** [November 5, 2021, 1:09am UTC](https://forum.ansible.com/t/run-ansible-via-shell-command-on-remote-gcp-servers/35968 "2021-11-05T01:09:10Z")

</div>

I have 3 Linux servers A, B and C in GCP. A is where all the developers use, B is a Ansible server that has a playbook, C is the target server that I need to run some tasks. This is the frame of the playbook - play.yml: …

---

## [Ansible-Pull Copy Error](https://forum.ansible.com/t/ansible-pull-copy-error/35962)

<div class="topic-metadata">

**Author:** [@Paul1](https://forum.ansible.com/u/Paul1)\
**Replies:** 6\
**Last updated:** [November 4, 2021, 10:58pm UTC](https://forum.ansible.com/t/ansible-pull-copy-error/35962 "2021-11-04T22:58:09Z")

</div>

I was following a tutorial from a year ago so perhaps something in Ansible has changed. My issue is I get this error: TASK \[copy sudoers\_ansible\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[localhost\]:…

---

## [FORKS --- not working as expected and also discrepecies in playbook profile task prints](https://forum.ansible.com/t/forks-not-working-as-expected-and-also-discrepecies-in-playbook-profile-task-prints/35890)

<div class="topic-metadata">

**Author:** [@Aprameya\_NDS](https://forum.ansible.com/u/Aprameya_NDS)\
**Replies:** 5\
**Last updated:** [November 4, 2021, 9:29pm UTC](https://forum.ansible.com/t/forks-not-working-as-expected-and-also-discrepecies-in-playbook-profile-task-prints/35890 "2021-11-04T21:29:23Z")

</div>

Hi, We have about 500 hosts and we were testing the ssh connections that run in parallel at a given point before running the actual playbooks as we were hitting bottlenecks. Ansible version being used: 2.10.5 Its a si…

---

## [Looping over email addresses in Mail module](https://forum.ansible.com/t/looping-over-email-addresses-in-mail-module/35966)

<div class="topic-metadata">

**Author:** [@david.burtton](https://forum.ansible.com/u/david.burtton)\
**Replies:** 2\
**Last updated:** [November 4, 2021, 8:45pm UTC](https://forum.ansible.com/t/looping-over-email-addresses-in-mail-module/35966 "2021-11-04T20:45:50Z")

</div>

Hey everyone, I’m still a bit new to Ansible, so sorry if this has an obvious answer Basically, I’ve got a list of email addresses that I want to send an email to one at a time and I’m using the Community.General Mail …

---

## [Use loop control only when condition is met](https://forum.ansible.com/t/use-loop-control-only-when-condition-is-met/35953)

<div class="topic-metadata">

**Author:** [@Aleksandar\_Ilic](https://forum.ansible.com/u/Aleksandar_Ilic)\
**Replies:** 2\
**Last updated:** [November 4, 2021, 3:26pm UTC](https://forum.ansible.com/t/use-loop-control-only-when-condition-is-met/35953 "2021-11-04T15:26:36Z")

</div>

Hello everyone, Im new to ansible and im trying to use loop\_contorl pause only for specific item. Is this something that is possible to do ? Thanks

---

## [Azure sysprep image not accepting winrm](https://forum.ansible.com/t/azure-sysprep-image-not-accepting-winrm/35964)

<div class="topic-metadata">

**Author:** [@Nitrous](https://forum.ansible.com/u/Nitrous)\
**Replies:** 1\
**Last updated:** [November 4, 2021, 3:08pm UTC](https://forum.ansible.com/t/azure-sysprep-image-not-accepting-winrm/35964 "2021-11-04T15:08:13Z")

</div>

Has anyone ever come across and issue where , after the VM has been configured for winrm and then you sysprep your VM in azure using the generalize option, shutdown and then capture using azure, ansible won’t connect to …

---

## [Ansible playbook syntax](https://forum.ansible.com/t/ansible-playbook-syntax/35959)

<div class="topic-metadata">

**Author:** [@Mauricio\_Maldonado](https://forum.ansible.com/u/Mauricio_Maldonado)\
**Replies:** 1\
**Last updated:** [November 4, 2021, 2:38pm UTC](https://forum.ansible.com/t/ansible-playbook-syntax/35959 "2021-11-04T14:38:28Z")

</div>

Good morning, I need to make an automation to run on 600+ servers and the automation needs to send configuration files such as host, port, user and password, but I’m novice on the Ansible platform, how can I set up a pla…

---

## [pass variables to main.yml of a role](https://forum.ansible.com/t/pass-variables-to-main-yml-of-a-role/35963)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 1\
**Last updated:** [November 4, 2021, 8:54am UTC](https://forum.ansible.com/t/pass-variables-to-main-yml-of-a-role/35963 "2021-11-04T08:54:15Z")

</div>

I have a couple of standalone playbooks which I am trying to transform to role-based execition. At the start I get the hostname in a user dialog, then go in with the first play when ther is no ssh available on target ye…

---

## [Find line in file](https://forum.ansible.com/t/find-line-in-file/35955)

<div class="topic-metadata">

**Author:** [@Neil\_Young](https://forum.ansible.com/u/Neil_Young)\
**Replies:** 3\
**Last updated:** [November 3, 2021, 10:57am UTC](https://forum.ansible.com/t/find-line-in-file/35955 "2021-11-03T10:57:02Z")

</div>

One of the most recommended things is to use “lineinfiles” with some special attributes for just finding a line in a file. I have a weird issue with this. If I just lookup one line, like so: name: TEST - Check /tmp/ou…

---

## [action\_plugins and ansible\_facts](https://forum.ansible.com/t/action-plugins-and-ansible-facts/35948)

<div class="topic-metadata">

**Author:** [@John\_Ratliff](https://forum.ansible.com/u/John_Ratliff)\
**Replies:** 3\
**Last updated:** [November 2, 2021, 2:59pm UTC](https://forum.ansible.com/t/action-plugins-and-ansible-facts/35948 "2021-11-02T14:59:03Z")

</div>

I’m using action plugins to collect data from an internal API. We’ve been setting the “ansible\_facts” key of the results dictionary to return values. Most of the time, this seems to work as if we had called set\_fact. But…

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

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