{"id":27941267,"url":"https://github.com/editd/ansible-supervisor_task","last_synced_at":"2025-06-13T17:09:57.726Z","repository":{"id":14498781,"uuid":"17211859","full_name":"EDITD/ansible-supervisor_task","owner":"EDITD","description":"A role for creating supervisor tasks.","archived":false,"fork":false,"pushed_at":"2020-04-10T20:03:24.000Z","size":27,"stargazers_count":8,"open_issues_count":2,"forks_count":9,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-05-07T10:44:26.786Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EDITD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-26T13:44:28.000Z","updated_at":"2024-05-17T16:41:55.000Z","dependencies_parsed_at":"2022-09-21T16:00:57.118Z","dependency_job_id":null,"html_url":"https://github.com/EDITD/ansible-supervisor_task","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/EDITD/ansible-supervisor_task","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDITD%2Fansible-supervisor_task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDITD%2Fansible-supervisor_task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDITD%2Fansible-supervisor_task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDITD%2Fansible-supervisor_task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EDITD","download_url":"https://codeload.github.com/EDITD/ansible-supervisor_task/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDITD%2Fansible-supervisor_task/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259686194,"owners_count":22896058,"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":"2025-05-07T10:38:52.139Z","updated_at":"2025-06-13T17:09:57.679Z","avatar_url":"https://github.com/EDITD.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-supervisor_task\n\nA role for creating supervisor tasks.\n\n\n## Actions\n\n- Ensures that supervisor is installed (using `apt`)\n- Creates a task in the supervisor conf directory.\n\n\n## Usage:\n\n```\n  roles:\n    - role: EDITD.supervisor_task\n      name: webserver\n      command: python -m SimpleHTTPServer\n      directory: /opt/web\n      user: ubuntu\n      stopsignal: HUP\n```\n\n### Restarting tasks:\n\nBy default, the role will restart the task on each run, which you could skip like so:\n\n```\n  roles:\n    - role: EDITD.supervisor_task\n      name: webserver\n      command: python -m SimpleHTTPServer\n      directory: /opt/web\n      user: ubuntu\n      restart_task: no\n```\n\nOr if you want to restart a uwsgi process gracefully you could do something like this:\n\n```\nroles:\n    - role: EDITD.supervisor_task\n      name: webserver\n      command: uwsgi --ini /path/to/you/conf\n      user: ubuntu\n      restart_task: no\n      restart_signal: HUP\n      restart_pidfile: /path/to/pid/file/defined/in/conf\n```\n\n### Removing a task\n\nTo ensure that a task is not present, you can use `state: absent`\n\n```\n  roles:\n    - role: EDITD.supervisor_task\n      name: webserver\n      state: absent\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feditd%2Fansible-supervisor_task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feditd%2Fansible-supervisor_task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feditd%2Fansible-supervisor_task/lists"}