{"id":19518410,"url":"https://github.com/projectpotos/ansible-role-potos_apt","last_synced_at":"2026-03-04T06:01:57.266Z","repository":{"id":215423898,"uuid":"658682328","full_name":"projectpotos/ansible-role-potos_apt","owner":"projectpotos","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-12T08:18:19.000Z","size":193,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-12T09:29:58.250Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/projectpotos.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,"zenodo":null}},"created_at":"2023-06-26T09:29:23.000Z","updated_at":"2024-05-16T12:47:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"c276bd90-e5f3-4f55-b745-db61ba44dbd9","html_url":"https://github.com/projectpotos/ansible-role-potos_apt","commit_stats":null,"previous_names":["projectpotos/ansible-role-potos_apt"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/projectpotos/ansible-role-potos_apt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectpotos%2Fansible-role-potos_apt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectpotos%2Fansible-role-potos_apt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectpotos%2Fansible-role-potos_apt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectpotos%2Fansible-role-potos_apt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectpotos","download_url":"https://codeload.github.com/projectpotos/ansible-role-potos_apt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectpotos%2Fansible-role-potos_apt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30073676,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:31:57.858Z","status":"ssl_error","status_checked_at":"2026-03-04T05:31:38.462Z","response_time":59,"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-11T00:11:29.382Z","updated_at":"2026-03-04T06:01:57.245Z","avatar_url":"https://github.com/projectpotos.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Ansible Role - potos\\_apt\n\nThis role provides the ability to:\n\n- Add new apt gpg keys\n- Add new apt repositories\n- Install apt packages\n\nbut also:\n\n- remove apt gpg keys by its GPG ID\n- remove previously added apt repositories\n- make sure certain apt packages are removed\n\n## How to use\n\nUsually you want to reference this role in your own Potos requirements.yml.j2 and define all the to-be-installed `apt keys`+ `apt repositories` + `apt packages` as variables [in your Potos specs](https://potos.dev/guide/specs-repo/structure.html#files-template-requirements-yml-j2).\n\nExamples see below.\n\n## Role Variable Defaults\n\nThere aren't default vars defined for this Role. Please have a look at our examples below or check out `default/main.yml` for even more details.\n\n## Role Variables Examples\n\nIn this example, we're going to add the Microsoft + Google Repository GPG key's, add their repositories and install chrome + edge browser.\n\n```yaml\n---\n# Example apt_key from Microsoft or Google\npotos_apt_key:\n  microsoft-packages:\n    url: https://packages.microsoft.com/keys/microsoft.asc\n    filename: microsoft-packages\n  chrome-signing-key:\n    url: https://dl.google.com/linux/linux_signing_key.pub\n    filename: chrome-signing-key\n\n# Example adding repository for MS Edge and Google Chrome\npotos_apt_repository:\n  edge:\n    filename: microsoft-edge\n    repo: deb [arch=amd64] https://packages.microsoft.com/repos/edge/ stable main\n  chrome:\n    filename: google-chrome\n    repo: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main\n\npotos_apt_packages:\n  - microsoft-edge-stable\n  - google-chrome-stable\n```\n\nThe other way around, you can also make sure certain apt keys IDs, repos or packages are removed. In this example, we're going to remove the Microsoft apt key by its ID, we remove the repository and the edge browser package.\n\nNote: The GPG key ID consists of the last 16 characters. The full key signature be viewed with e.g. `gpg microsoft.asc` or run directly `gpg --list-packets microsoft.asc` to see the `keyid: `\n\n```yaml\n---\npotos_apt_key_remove: \n  - EB3E94ADBE1229CF\n  \npotos_apt_repository_remove:\n  edge:\n    filename: microsoft-edge\n    repo: deb [arch=amd64] https://packages.microsoft.com/repos/edge/ stable main\n\npotos_apt_packages_remove:\n  - microsoft-edge-stable\n```\n\n## Requirements\n\nPotos [ansible-role-potos_basics](https://github.com/projectpotos/ansible-role-potos_basics)\n\n## License\n\nSee [LICENSE](./LICENSE)\n\n## Author Information\n\n[Project Potos](https://github.com/projectpotos)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectpotos%2Fansible-role-potos_apt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectpotos%2Fansible-role-potos_apt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectpotos%2Fansible-role-potos_apt/lists"}