Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markahesketh/ansible-role-apt
Ansible role to install and uninstall packages via Apt
https://github.com/markahesketh/ansible-role-apt
ansible ansible-role apt apt-get debian ubuntu
Last synced: 20 days ago
JSON representation
Ansible role to install and uninstall packages via Apt
- Host: GitHub
- URL: https://github.com/markahesketh/ansible-role-apt
- Owner: markahesketh
- License: mit
- Created: 2017-10-15T13:51:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-07T19:04:28.000Z (over 4 years ago)
- Last Synced: 2024-11-01T23:41:59.343Z (2 months ago)
- Topics: ansible, ansible-role, apt, apt-get, debian, ubuntu
- Language: Python
- Homepage: https://galaxy.ansible.com/markahesketh/apt/
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: Apt
[![Build Status](https://travis-ci.org/markahesketh/ansible-role-apt.svg?branch=master)](https://travis-ci.org/markahesketh/ansible-role-apt)
Ansible role to install and uninstall packages via Apt, a package manager for Debian-based systems.
## Installation
```
ansible-galaxy install markahesketh.apt
```## Role Variables
Default values are listed below (see [`defaults/main.yml`](defaults/main.yml)):
```yml
apt_packages_install: []
apt_packages_uninstall: []
```The `apt_packages_install` and `apt_packages_uninstall` variables take an array of package names. For example:
```yml
apt_packages_install:
- vim
- htop
- treeapt_packages_install:
- cowsay
```## Dependencies
None.
## Example Playbook
```yml
- hosts: web
roles:
- markahesketh.apt
```## Testing
molecule test
Requires [Molecule](https://molecule.readthedocs.io/en/latest/) and [Docker](https://docs.docker.com/engine/installation/).
## License
This role is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).
## Author
By [Mark Hesketh](https://www.markhesketh.co.uk/), a web developer from Manchester, UK.