{"id":18781565,"url":"https://github.com/devture/com.devture.ansible.role.systemd_service_manager","last_synced_at":"2026-03-19T06:21:39.715Z","repository":{"id":75996758,"uuid":"569606020","full_name":"devture/com.devture.ansible.role.systemd_service_manager","owner":"devture","description":"An Ansible role which manages systemd services","archived":false,"fork":false,"pushed_at":"2024-01-17T09:51:32.000Z","size":15,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-28T07:48:08.949Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devture.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-11-23T07:59:13.000Z","updated_at":"2024-10-23T07:04:43.000Z","dependencies_parsed_at":"2024-11-07T20:34:54.812Z","dependency_job_id":"176d25c2-06d9-4a00-9ff5-b7fe7fe663cc","html_url":"https://github.com/devture/com.devture.ansible.role.systemd_service_manager","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/devture/com.devture.ansible.role.systemd_service_manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fcom.devture.ansible.role.systemd_service_manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fcom.devture.ansible.role.systemd_service_manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fcom.devture.ansible.role.systemd_service_manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fcom.devture.ansible.role.systemd_service_manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devture","download_url":"https://codeload.github.com/devture/com.devture.ansible.role.systemd_service_manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fcom.devture.ansible.role.systemd_service_manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28811984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-07T20:32:37.551Z","updated_at":"2026-03-19T06:21:39.700Z","avatar_url":"https://github.com/devture.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# systemd service manager Ansible role\n\nThis is an [Ansible](https://www.ansible.com/) role which manages systemd services.\n\n\n## Features\n\n- **starting** (restarting) services, in order, according to their `priority`. Services can all be stopped cleanly and then started anew, restarted one-by-one, or started in priority batches without blocking (see `devture_systemd_service_manager_service_restart_mode`)\n\n- making services **auto-start** (see `devture_systemd_service_manager_services_autostart_enabled`)\n\n- **verifying** services managed to start (see `devture_systemd_service_manager_up_verification_enabled`)\n\n- **stopping** services, in order, according to their `priority`\n\n- starting/stopping all defined services, or a group of services (`--tags=restart-group`, `--tags=stop-group`)\n\n- restarting services by cleanly stopping them and restarting them, one by one, or by priority batches\n\n\n## Usage\n\nExample playbook:\n\n```yaml\n- hosts: servers\n  roles:\n    - when: devture_systemd_service_manager_enabled | bool\n      role: galaxy/com.devture.ansible.role.systemd_service_manager\n```\n\nExample playbook configuration (`group_vars/servers` or other):\n\n```yaml\n# See `devture_systemd_service_manager_services_list_auto` and `devture_systemd_service_manager_services_list_additional`\ndevture_systemd_service_manager_services_list_auto: |\n  {{\n    ([{'name': 'some-service.service', 'priority': 1000}])\n    +\n    ([{'name': 'another-service.service', 'priority': 1500}])\n  }}\n```\n\nExample playbook invocations tags (e.g. `ansible-playbook -i inventory/hosts setup.yml --tags=XXXXX`):\n\n- `restart`, `restart-all`, `start-all` - restarts all services and potentially makes them auto-start (depending on `devture_systemd_service_manager_services_autostart_enabled`)\n\n- `restart-group`, `start-group` - restarts services belonging to the specified group (e.g. `--extra-vars=\"group=core\"`)\n\n- `stop`, `stop-all` - stops all services\n\n- `stop-group` - stops services belonging to the specified group (e.g. `--extra-vars=\"group=core\"`)\n\nRestart mode options for `devture_systemd_service_manager_service_restart_mode`:\n\n- `all-at-once` (default) - issues a single `systemctl restart` (or `start`) command with all service names, letting systemd handle the entire transaction. See `defaults/main.yml` for detailed technical rationale\n- `clean-stop-start` - stops all services in reverse priority order, then starts them in priority order\n- `one-by-one` - restarts each service in priority order\n- `priority-batched` - starts/restarts services in priority batches and queues them without blocking inside each batch\n\nAll-at-once retry controls:\n\n- `devture_systemd_service_manager_all_at_once_retries` (default: `1`) - passed directly to task `retries` for each single all-at-once `systemctl restart ...` or `systemctl start ...` command; must be an integer `\u003e= 1` (numeric strings accepted)\n- `devture_systemd_service_manager_all_at_once_retry_delay_seconds` (default: `10`) - delay between attempts; must be a non-negative integer (numeric strings accepted)\n\nFor a detailed comparison of these modes with real-world downtime benchmarks, see [Restart Mode Comparison](docs/restart-mode-comparison.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevture%2Fcom.devture.ansible.role.systemd_service_manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevture%2Fcom.devture.ansible.role.systemd_service_manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevture%2Fcom.devture.ansible.role.systemd_service_manager/lists"}