{"id":19806018,"url":"https://github.com/cycloidio/ansible-systemd","last_synced_at":"2026-03-03T03:45:21.478Z","repository":{"id":83786329,"uuid":"105653919","full_name":"cycloidio/ansible-systemd","owner":"cycloidio","description":"Complement of https://github.com/tumf/ansible-role-systemd-service.git to provide features like mount and timer","archived":false,"fork":false,"pushed_at":"2020-01-17T08:52:31.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-28T17:54:38.420Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/cycloidio.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":"2017-10-03T13:17:30.000Z","updated_at":"2020-01-17T08:52:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"72c925eb-7602-4b36-94c7-e3100e17cc26","html_url":"https://github.com/cycloidio/ansible-systemd","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.375,"last_synced_commit":"663695c7bbdb1e3233d4c71a0123a5c4abc7d96e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cycloidio/ansible-systemd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycloidio%2Fansible-systemd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycloidio%2Fansible-systemd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycloidio%2Fansible-systemd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycloidio%2Fansible-systemd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cycloidio","download_url":"https://codeload.github.com/cycloidio/ansible-systemd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cycloidio%2Fansible-systemd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30031449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T03:27:35.548Z","status":"ssl_error","status_checked_at":"2026-03-03T03:27:09.213Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-12T09:06:10.199Z","updated_at":"2026-03-03T03:45:21.462Z","avatar_url":"https://github.com/cycloidio.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"ansible-systemd\n===============\n\nExtend features of https://github.com/tumf/ansible-role-systemd-service.\n\nGive a way to create timer, mount and droppin on systemd\n\nRole Variables\n--------------\n\n**Dropin:**\n\n| **Variable**              | **Description**            | **Default**                                                     |\n|---------------------------|----------------------------|-----------------------------------------------------------------|\n| `systemd_mount_dir`       | Systemd mount dir          | `/etc/systemd/system`                                           |\n| `systemd_dropin_dir`      | Systemd dropin dir         | `/etc/systemd/system/{{systemd_dropin_service_name}}.service.d` |\n| `systemd_dropin_name`     | Name of the dropin         | `{{systemd_dropin_service_name}}`                               |\n| `systemd_dropin_priority` | Dropin priority level      | `40`                                                            |\n| `systemd_dropin_content`  | Content list of the dropin | `[]`                                                            |\n\n**Timer:**\n\n| **Variable**                      | **Description**                 | **Default**           | **Required** |\n|-----------------------------------|---------------------------------|-----------------------|--------------|\n| `systemd_timer_service_name`      | Name of the timer service       |                       | **Yes**      |\n| `systemd_timer_onbootsec`         | Define systemd OnBootSec        | `5min`                |              |\n| `systemd_timer_onunitactivesec`   | Define systemd OnUnitActiveSec  | `60min`               |              |\n| `systemd_timer_dir`               | Systemd directory for timers    | `/etc/systemd/system` |              |\n| `systemd_timer_OnCalendar`        | Systemd timer onCalendar        |                       |              |\n| `systemd_timer_RemainAfterElapse` | Systemd timer RemainAfterElapse |                       |              |\n| `systemd_timer_service_enabled`   | Timer enabled at boot           | True                  |              |\n\n\n**Mount:** (https://www.freedesktop.org/software/systemd/man/systemd.mount.html)\n\n| **Variable**               | **Description**             | **Default** | **Required** |\n|----------------------------|-----------------------------|-------------|--------------|\n| `systemd_mount_device`     | Device to mount             |             | **Yes**      |\n| `systemd_mount_mountpoint` | Mountpoint of the device    |             | **Yes**      |\n| `systemd_mount_type`       | Type of filesystem to mount | `ext4`      |              |\n| `systemd_mount_options`    | Option to pass to mount     | `None`      |              |\n\nExample Playbook\n----------------\n\n```\n    - hosts: servers\n      roles:\n        - role: cycloid.systemd\n          systemd_type: mount\n          systemd_mount_device: \"{{etcd_volume_device}}\"\n          systemd_mount_mountpoint: /var/lib/etcd2\n\n        - role: cycloid.systemd\n          systemd_type: dropin\n          systemd_dropin_service_name: \"{{etcd_service}}\"\n          systemd_dropin_name: persistent-storage\n          systemd_dropin_priority: \"01\"\n          systemd_dropin_content:\n            - \"[Unit]\"\n            - \"After=var-lib-etcd2.mount\"\n            - \"Requires=var-lib-etcd2.mount\"\n\n        - role: cycloid.systemd\n          systemd_type: timer\n          systemd_timer_service_name: etcd2-backup\n          systemd_timer_onbootsec: 5min\n          systemd_timer_onunitactivesec: \"{{etcd_backup_timer_every}}\"\n```\n\nLicense\n-------\n\nBSD\n\nAuthor Information\n------------------\n\nGael Lambert at Cycloid.io\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcycloidio%2Fansible-systemd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcycloidio%2Fansible-systemd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcycloidio%2Fansible-systemd/lists"}