{"id":20111498,"url":"https://github.com/openstack/ansible-role-systemd_service","last_synced_at":"2025-05-06T11:30:44.657Z","repository":{"id":66174589,"uuid":"125905459","full_name":"openstack/ansible-role-systemd_service","owner":"openstack","description":"Ansible role to manage systemd services. Mirror of code maintained at opendev.org.","archived":false,"fork":false,"pushed_at":"2024-06-06T11:18:02.000Z","size":1182,"stargazers_count":8,"open_issues_count":0,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-06-06T12:42:52.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://opendev.org/openstack/ansible-role-systemd_service","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","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-03-19T18:51:11.000Z","updated_at":"2024-06-06T11:18:06.000Z","dependencies_parsed_at":"2023-02-20T23:15:47.775Z","dependency_job_id":"ee4e05d9-5c4e-4922-9c66-1fb08b93ae66","html_url":"https://github.com/openstack/ansible-role-systemd_service","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fansible-role-systemd_service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fansible-role-systemd_service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fansible-role-systemd_service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fansible-role-systemd_service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openstack","download_url":"https://codeload.github.com/openstack/ansible-role-systemd_service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224499851,"owners_count":17321605,"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":[],"created_at":"2024-11-13T18:16:20.133Z","updated_at":"2025-05-06T11:30:44.650Z","avatar_url":"https://github.com/openstack.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### Ansible systemd_service\n\nThis Ansible role that installs and configures systemd unit files and all of its\ncorresponding services. This role requires the ``openstack-ansible-plugins``\nrepository to be available on your local system. The Ansible galaxy resolver\nwill not retrieve this role for you. To get this role in place clone the\nplugins repository **before** installing this role.\n\n``` bash\n# git clone https://github.com/openstack/openstack-ansible-plugins /etc/ansible/roles/plugins\n```\nRelease notes for the project can be found at:\n  https://docs.openstack.org/releasenotes/ansible-role-systemd_service\n\nYou can also use the ``ansible-galaxy`` command on the ``requirements.yml`` file.\n\n``` bash\n# ansible-galaxy install -r requirements.yml\n```\n\n----\n\n###### Example playbook\n\n``` yaml\n- name: Create a systemd unit file for ServiceX\n  hosts: localhost\n  become: true\n  roles:\n    - role: \"systemd_service\"\n      systemd_services:\n        # Normal Service\n        - service_name: ServiceX\n          execstarts:\n            - /path/ServiceX --flag1\n\n        # Timer Service (AKA CRON)\n        - service_name: TimerServiceX\n          execstarts:\n            - /path/TimerServiceX --flag1\n          timer:\n            state: \"started\"\n            options:\n              OnBootSec: 30min\n              OnUnitActiveSec: 1h\n              Persistent: true\n      tags:\n        - servicex-init\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstack%2Fansible-role-systemd_service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenstack%2Fansible-role-systemd_service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstack%2Fansible-role-systemd_service/lists"}