{"id":21400230,"url":"https://github.com/oefenweb/ansible-apt","last_synced_at":"2025-07-13T21:31:05.846Z","repository":{"id":19732981,"uuid":"22989278","full_name":"Oefenweb/ansible-apt","owner":"Oefenweb","description":"Ansible role to manage packages and up(date|grade)s in Debian-like systems","archived":false,"fork":false,"pushed_at":"2024-10-17T08:01:59.000Z","size":149,"stargazers_count":25,"open_issues_count":0,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-19T10:39:44.036Z","etag":null,"topics":["ansible","apt","aptitude","debian","dpkg","package-manager","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Jinja","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/Oefenweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2014-08-15T12:44:59.000Z","updated_at":"2024-10-17T07:59:28.000Z","dependencies_parsed_at":"2023-01-11T20:34:54.619Z","dependency_job_id":"3bba1ae4-e189-40b3-a31b-eea90fb387a0","html_url":"https://github.com/Oefenweb/ansible-apt","commit_stats":null,"previous_names":[],"tags_count":73,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-apt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-apt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-apt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-apt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oefenweb","download_url":"https://codeload.github.com/Oefenweb/ansible-apt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225917588,"owners_count":17544922,"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":["ansible","apt","aptitude","debian","dpkg","package-manager","ubuntu"],"created_at":"2024-11-22T15:19:57.503Z","updated_at":"2025-07-13T21:31:05.827Z","avatar_url":"https://github.com/Oefenweb.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"## apt\n\n[![CI](https://github.com/Oefenweb/ansible-apt/workflows/CI/badge.svg)](https://github.com/Oefenweb/ansible-apt/actions?query=workflow%3ACI)\n[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-apt-blue.svg)](https://galaxy.ansible.com/Oefenweb/apt)\n\nManage packages and up(date|grade)s in Debian-like systems.\n\n#### Requirements\n\n* `python3-apt` (or `python-apt` for Debian 7)\n* `aptitude`\n\n#### Variables\n\n* `apt_manage_sources_list`: [default: `false`]: Whether to manage `/etc/apt/sources.list`\n* `apt_ubuntu_mirror`: [default: `mirror://mirrors.ubuntu.com/mirrors.txt`]: The mirror to use\n* `apt_ubuntu_security_mirror`: [default: `https://security.ubuntu.com/ubuntu`]: The security-mirror to use\n* `apt_src_enable`: [default: `true`]: Whether to enable source code repositories\n* `apt_backports_enable`: [default: `true`]: Whether to enable the `backports` repository\n* `apt_ubuntu_restricted_enable`: [default: `true`]: Whether to enable the `restricted` repository\n* `apt_ubuntu_universe_enable`: [default: `true`]: Whether to enable the `universe` repository\n* `apt_ubuntu_multiverse_enable`: [default: `true`]: Whether to enable the `multiverse` repository\n* `apt_ubuntu_backports_enable`: [default: `true`]: Whether to enable the `backports` repository [deprecated in favour of `apt_backports_enable`]\n* `apt_ubuntu_partner_enable`: [default: `false`]: Whether to enable the `partner` repository\n* `apt_ubuntu_extras_enable`: [default: `false`]: Whether to enable the `extras` repository (only applies to \u003c 16.04)\n* `apt_debian_mirror`: [default: `https://deb.debian.org/debian/`]: The mirror to use\n* `apt_debian_security_mirror`: [default: `https://security.debian.org/`]: The security-mirror to use\n* `apt_debian_contrib_nonfree_enable`: [default: `false`]: Whether to enable the `contrib` `non-free` `non-free-firmware` repository\n\n* `apt_dependencies`: [default: `[python3-apt, aptitude]`]: General dependencies for apt modules to work\n* `apt_update`: [default: `true`]: Whether to update\n* `apt_update_cache_valid_time`: [default: `3600`]: Number of seconds the apt cache stays valid\n* `apt_upgrade`: [default: `true`]: Whether to upgrade\n* `apt_upgrade_type`: [default: `dist`]: If yes or safe, performs an aptitude safe-upgrade. If full, performs an aptitude full-upgrade. If dist, performs an apt-get dist-upgrade\n* `apt_upgrade_dpkg_options`: [default: `['force-confdef', 'force-confold']`]: Add `dpkg` options to `apt` command\n* `apt_clean`: [default: `true`]: Whether to clean\n* `apt_dpkg_configure`: [default: `false`]: Whether to run `dpkg --configure -a`\n* `apt_autoremove`: [default: `true`]: Whether to autoremove\n* `apt_install`: [default: `[]`]: Packages to install\n* `apt_install_state`: [default: `latest`]: State of packages to install (e.g. `present`)\n* `apt_remove`: [default: `[]`]: Packages to remove\n* `apt_remove_purge`: [default: `false`]: Whether to purge\n\n* `apt_etc_apt_apt_conf`: [default: `[]`]: List of lines to be added to `/etc/apt/apt.conf`\n* `apt_etc_apt_apt_conf_d_files_absent`: [default: `[]`]: List of files to be removed from `/etc/apt/apt.conf.d`\n\n## Dependencies\n\nNone\n\n#### Example\n\n```yaml\n---\n- hosts: all\n  roles:\n    - oefenweb.apt\n  vars:\n    apt_etc_apt_apt_conf:\n      - |\n        APT {\n          Install-Recommends \"false\";\n          Install-Suggests \"false\";\n          Get {\n            Fix-Broken \"true\";\n          };\n        };\n    apt_etc_apt_apt_conf_d_files_absent:\n      - 20auto-upgrades\n```\n\n#### License\n\nMIT\n\n#### Author Information\n\nMischa ter Smitten (based on work of [kosssi](https://github.com/kosssi) and [Ansibles](https://github.com/Ansibles))\n\n#### Feedback, bug-reports, requests, ...\n\nAre [welcome](https://github.com/Oefenweb/ansible-apt/issues)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fansible-apt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foefenweb%2Fansible-apt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fansible-apt/lists"}