{"id":21870345,"url":"https://github.com/playingfield/ansible_skeleton","last_synced_at":"2026-05-02T23:39:41.107Z","repository":{"id":75577689,"uuid":"526148175","full_name":"playingfield/ansible_skeleton","owner":"playingfield","description":"🩻 Skeleton for molecule role init \u0026 ansible-runner boilerplate","archived":false,"fork":false,"pushed_at":"2024-02-28T20:55:23.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-06T12:55:46.659Z","etag":null,"topics":["ansible","ansible-lint","ansible-role-skeleton","execution-environment","molecule","yamllint-configuration"],"latest_commit_sha":null,"homepage":"","language":"YAML","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/playingfield.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-18T09:40:18.000Z","updated_at":"2023-04-03T07:56:56.000Z","dependencies_parsed_at":"2025-01-26T16:44:45.045Z","dependency_job_id":"e0bdcf6c-7881-4cf2-87d7-f99a729eeac3","html_url":"https://github.com/playingfield/ansible_skeleton","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/playingfield/ansible_skeleton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playingfield%2Fansible_skeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playingfield%2Fansible_skeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playingfield%2Fansible_skeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playingfield%2Fansible_skeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/playingfield","download_url":"https://codeload.github.com/playingfield/ansible_skeleton/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playingfield%2Fansible_skeleton/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32553689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T22:28:24.418Z","status":"ssl_error","status_checked_at":"2026-05-02T22:28:14.225Z","response_time":132,"last_error":"SSL_read: 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":["ansible","ansible-lint","ansible-role-skeleton","execution-environment","molecule","yamllint-configuration"],"created_at":"2024-11-28T06:11:08.876Z","updated_at":"2026-05-02T23:39:41.090Z","avatar_url":"https://github.com/playingfield.png","language":"YAML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible role skeleton\nSkeleton for `ansible-galaxy role init`\n\n# Using the template\nThis template is designed for desired_state convergence with molecule.\n\n`desired_state` is a variable that drives the role.\n`present` is the default, and absent is the alterative for `desired_state`.\n\nThe template is very generic for a systemd service installed from a corresponding package.\nNote that the tasks are split by state, for convergence, and that verify always runs.\n\nThese 2 files control most of the play:\n- `tasks/main.yml`\n- `handlers/main.yml`\n\n\nTo try it:\n\n```sh\nansible-galaxy role init httpd\ncd httpd\nmolecule converge\nmolecule converge -- -e desired_state=absent\n```\n\nThe same thing works for Nginx:\n```sh\nansible-galaxy role init nginx\nmolecule test\n```\n\n# Configure first!\n\nIn a codespace\n\n```bash\ncp ansible.cfg ~\n```\n\n## On your own machine\n\n```sh\nmkdir -p $HOME/git ~/.ansible/roles\ncd $HOME/git\ngit clone https://github.com/playingfield/ansible_skeleton.git\n```\nAdd these lines to your ~/.ansible.cfg\n```ini\n[galaxy]\nrole_skeleton = ~/git/ansible_skeleton/role\nrole_skeleton_ignore = ^.git$,^.*/.git_keep$,README.md\n```\n\n## matrix testing in a generated role\n\n```sh\npip3 install --user tox\n# edit tox.ini for a relevant setup\ntox\n```\n\n## pre-commit hooks in a generated role\n\n```sh\npip3 install --user pre-commit\n# edit .pre-commit-config.yaml for a relevant setup\ngit init\npre-commit install\ngit add .\ncommit -m \"initial commit\"\npre-commit run --all-files\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplayingfield%2Fansible_skeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplayingfield%2Fansible_skeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplayingfield%2Fansible_skeleton/lists"}