{"id":21400262,"url":"https://github.com/oefenweb/ansible-systemd","last_synced_at":"2025-10-05T21:38:50.225Z","repository":{"id":54434629,"uuid":"131439831","full_name":"Oefenweb/ansible-systemd","owner":"Oefenweb","description":"Ansible role to manage systemd services in Debian-like systems","archived":false,"fork":false,"pushed_at":"2023-11-02T11:07:35.000Z","size":95,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T02:44:36.207Z","etag":null,"topics":["ansible","debian","services","systemd","ubuntu"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Oefenweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-28T19:54:33.000Z","updated_at":"2022-06-18T04:01:39.000Z","dependencies_parsed_at":"2023-02-08T19:15:38.874Z","dependency_job_id":"73e38773-6310-4803-b44b-dd90c0e55f55","html_url":"https://github.com/Oefenweb/ansible-systemd","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-systemd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-systemd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-systemd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-systemd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oefenweb","download_url":"https://codeload.github.com/Oefenweb/ansible-systemd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243893904,"owners_count":20364916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","debian","services","systemd","ubuntu"],"created_at":"2024-11-22T15:20:19.026Z","updated_at":"2025-10-05T21:38:45.181Z","avatar_url":"https://github.com/Oefenweb.png","language":"Dockerfile","readme":"## systemd\n\n[![CI](https://github.com/Oefenweb/ansible-systemd/workflows/CI/badge.svg)](https://github.com/Oefenweb/ansible-systemd/actions?query=workflow%3ACI)\n[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-systemd-blue.svg)](https://galaxy.ansible.com/Oefenweb/systemd)\n\nManage [systemd](https://www.freedesktop.org/wiki/Software/systemd/) services in Debian-like systems.\n\n#### Requirements\n\nNone\n\n#### Variables\n\n* `systemd_etc_bootchart_content`: [default: `''`]: `bootchart.conf` file content\n* `systemd_etc_journald_content`: [default: `''`]: `journald.conf` file content\n* `systemd_etc_logind_content`: [default: `''`]: `logind.conf` file content\n* `systemd_etc_resolved_content`: [default: `''`]: `resolved.conf` file content\n* `systemd_etc_system_content`: [default: `''`]: `system.conf` file content\n* `systemd_etc_timesyncd_content`: [default: `''`]: `timesyncd.conf` file content\n* `systemd_etc_user_content`: [default: `''`]: `user.conf` file content\n\n* `systemd_service_files`: [default: `[]`]: Service file declarations (files in `/etc/systemd`, e.g. `memcached.service`)\n* `systemd_service_files.{n}.unit`: [required]: Unit name (e.g. `memcached`)\n* `systemd_service_files.{n}.content`: [default: `''`]: Service file content\n* `systemd_service_files.{n}.handler_state`: [optional]: The state to be set on changes\n* `systemd_service_files.{n}.enabled`: [optional]: Whether the service should start on boot\n* `systemd_service_files.{n}.state`: [optional]: The wanted state of the service (e.g. `started`, `stopped`)\n* `systemd_service_files.{n}.masked`: [optional]: Whether the service should be masked or not, a masked service is impossible to start\n\n* `systemd_unit_files`: [default: `[]`]: Unit file declarations (files in `/etc/systemd/*.service.d/`, e.g. `limits.conf`)\n* `systemd_unit_files.{n}.unit`: [required]: Unit name (e.g. `mysql`)\n* `systemd_unit_files.{n}.file`: [required]: `conf` file name (e.g. `limits`)\n* `systemd_unit_files.{n}.content`: [default: `''`]: Unit file content\n* `systemd_unit_files.{n}.handler_state`: [optional]: The state to be set on changes\n* `systemd_unit_files.{n}.enabled`: [optional]: Whether the service should start on boot\n* `systemd_unit_files.{n}.state`: [optional]: The wanted state of the service (e.g. `started`, `stopped`)\n* `systemd_unit_files.{n}.masked`: [optional]: Whether the unit should be masked or not, a masked unit is impossible to start\n\n## Dependencies\n\nNone\n\n#### Example(s)\n\n##### Simple configuration\n\n```yaml\n---\n- hosts: all\n  roles:\n    - oefenweb.systemd\n```\n\n##### Complex configuration (memcached and mysql)\n\n```yaml\n---\n- hosts: all\n  roles:\n    - oefenweb.systemd\n  vars:\n    systemd_service_files:\n      - unit: memcached\n        content: |\n          [Unit]\n          Description=Start up memcached, a high-performance memory caching daemon\n          After=network.target\n\n          [Service]\n          ExecStartPre=/usr/bin/test -x /usr/bin/memcached\n          ExecStartPre=/usr/share/memcached/scripts/start-memcached\n          ExecStartPre=/usr/bin/install -d -o memcache -g root -m 0775 /run/memcached\n          ExecStart=/usr/share/memcached/scripts/systemd-memcached-wrapper /etc/memcached.conf\n\n          [Install]\n          WantedBy=multi-user.target\n        handler_state: restarted\n\n    systemd_unit_files:\n      - unit: mysql\n        file: limits\n        content: |\n          [Service]\n          LimitNOFILE=infinity\n          LimitMEMLOCK=infinity\n          OOMScoreAdjust=-600\n```\n\n#### License\n\nMIT\n\n#### Author Information\n\n* Mischa ter Smitten\n\n#### Feedback, bug-reports, requests, ...\n\nAre [welcome](https://github.com/Oefenweb/ansible-systemd/issues)!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fansible-systemd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foefenweb%2Fansible-systemd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fansible-systemd/lists"}