Ansible role for installing any packages without it's configuration, for example: atop, htop, ethtool and so on. Additionally this role allows you to add repositories you want.
No requirements.
This role contains only two variables:
- packages_repositories - list of repositories you want to add. Supported by Yum and APT with different Attributes.
- APT (one of the following):
- key - url to repository key
- url - url to repository.
- Yum:
- name - The name of the package repository.
- description - Optional description.
- baseurl - Optional URL for the package repository base
- mirrorlist - Optional URL for the package repository list of mirrors
- enabled - Optional activation of the package repository (defaults to yes).
- gpgcheck - Optional gpg check of the package repository (defaults to no).
- state - Optional state override (defaults to present).
- APT (one of the following):
- packages - list of packages you want to install (ntp, htop, atop and so on)
No dependencies.
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: all
roles:
- { role: neel.packages, packages: ['atop', 'htop'] }
See the molecule tests for more.
Apache
- Follow step one in How To Test Ansible Roles with Molecule to set up environment.
- Please use
ansible-lint
to check syntax. Install:pip install ansible-lint
- Please submit Pull Request via github.