# \#systemd

**URL:** https://forum.ansible.com/tag/systemd/293.md

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

---

## [Re: Custom name for a template’s temporary file name?](https://forum.ansible.com/t/re-custom-name-for-a-template-s-temporary-file-name/45405)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 0\
**Last updated:** [February 25, 2026, 3:38pm UTC](https://forum.ansible.com/t/re-custom-name-for-a-template-s-temporary-file-name/45405 "2026-02-25T15:38:42Z")

</div>

While doing maintenance on some roles/playbooks, I came across several template tasks that create systemd service unit files. A few years ago I had a question about how to validate those: Custom name for a template's te…

---

## [Chronyd start fails post OS installation](https://forum.ansible.com/t/chronyd-start-fails-post-os-installation/45314)

<div class="topic-metadata">

**Author:** [@mtwest](https://forum.ansible.com/u/mtwest)\
**Replies:** 3\
**Last updated:** [February 11, 2026, 7:17pm UTC](https://forum.ansible.com/t/chronyd-start-fails-post-os-installation/45314 "2026-02-11T19:17:16Z")

</div>

After installing a fresh version of RHEL9.6 on some of our DELL PowerEdge servers, I need to start up the chronyd service to do the usual time sync things. Feels like a pretty straightforward task: - name: enable and st…

---

## [What is the best way to test (verify existence) for a systemd user service?](https://forum.ansible.com/t/what-is-the-best-way-to-test-verify-existence-for-a-systemd-user-service/42591)

<div class="topic-metadata">

**Author:** [@daks](https://forum.ansible.com/u/daks)\
**Replies:** 6\
**Last updated:** [May 19, 2025, 4:09pm UTC](https://forum.ansible.com/t/what-is-the-best-way-to-test-verify-existence-for-a-systemd-user-service/42591 "2025-05-19T16:09:01Z")

</div>

I have a role task which executes a script to install a systemd user (systemctl --user) service. I want to add a when condition to only execute the script when the service is not already installed. I’m looking for the b…

---

## [Ansible-pull systemd unit fails](https://forum.ansible.com/t/ansible-pull-systemd-unit-fails/39298)

<div class="topic-metadata">

**Author:** [@Hipska](https://forum.ansible.com/u/Hipska)\
**Replies:** 4\
**Last updated:** [January 24, 2025, 3:30pm UTC](https://forum.ansible.com/t/ansible-pull-systemd-unit-fails/39298 "2025-01-24T15:30:58Z")

</div>

I now have the very weird problem ansible-pull works perfectly fine as user ansible, but when doing the same from a systemd service fails without any useful logs apart from this: systemd\[1\]: ansible-pull.service: Main p…

---

## [Systemd exact commands for sudoers file](https://forum.ansible.com/t/systemd-exact-commands-for-sudoers-file/8366)

<div class="topic-metadata">

**Author:** [@nilshee](https://forum.ansible.com/u/nilshee)\
**Replies:** 3\
**Last updated:** [September 10, 2024, 4:21pm UTC](https://forum.ansible.com/t/systemd-exact-commands-for-sudoers-file/8366 "2024-09-10T16:21:50Z")

</div>

Hello everyone, I’m currently trying to update a couple of configuration scripts of a server. The steps I want to do: Stop service Copy new configuration files for this service Start service I have a sudoers file th…

---

## [Containers.podman idempotency?](https://forum.ansible.com/t/containers-podman-idempotency/7735)

<div class="topic-metadata">

**Author:** [@monotux](https://forum.ansible.com/u/monotux)\
**Replies:** 0\
**Last updated:** [August 8, 2024, 9:52am UTC](https://forum.ansible.com/t/containers-podman-idempotency/7735 "2024-08-08T09:52:37Z")

</div>

Trying to setup containers with podman in a predictable manner, but failing. Not sure if an issue with containers.podman or me not understanding the documentation. When I first encountered this issue, I had exit code 1…

---

## [Service\_facts doesn't gather facts on systemd timers](https://forum.ansible.com/t/service-facts-doesnt-gather-facts-on-systemd-timers/4052)

<div class="topic-metadata">

**Author:** [@dstubq](https://forum.ansible.com/u/dstubq)\
**Replies:** 3\
**Last updated:** [February 26, 2024, 5:27pm UTC](https://forum.ansible.com/t/service-facts-doesnt-gather-facts-on-systemd-timers/4052 "2024-02-26T17:27:30Z")

</div>

I want to disable a systemd timer So i see there is an example on enabling a timer: - name: enable a timer for dnf-automatic systemd: name: dnf-automatic.timer state: started enabled: yes But i would lik…

---

## [Podman container w/ systemd for molecule doesn't run init?](https://forum.ansible.com/t/podman-container-w-systemd-for-molecule-doesnt-run-init/3529)

<div class="topic-metadata">

**Author:** [@wzzrd](https://forum.ansible.com/u/wzzrd)\
**Replies:** 3\
**Last updated:** [January 30, 2024, 2:52pm UTC](https://forum.ansible.com/t/podman-container-w-systemd-for-molecule-doesnt-run-init/3529 "2024-01-30T14:52:44Z")

</div>

I’m working on a collection for gitea that will include both a server role and a role to set up act\_runner instances for Gitea Actions. In order to properly test this, I would like to use molecule and podman. I’m trying…

---

## [Ansible in a docker container ("Service is in unknown state" error)](https://forum.ansible.com/t/ansible-in-a-docker-container-service-is-in-unknown-state-error/2006)

<div class="topic-metadata">

**Author:** [@macfreek](https://forum.ansible.com/u/macfreek)\
**Replies:** 2\
**Last updated:** [November 11, 2023, 12:23pm UTC](https://forum.ansible.com/t/ansible-in-a-docker-container-service-is-in-unknown-state-error/2006 "2023-11-11T12:23:49Z")

</div>

Hi, I have a playbook which tried to start the nginx daemon in a docker container: - name: start and enable nginx service: name: nginx state: started enabled: true When I run this in docker container, bas…
