itnok.manage_pkg_ubuntu
manage-pkg-ubuntu
==================
This tool helps you add DEB repositories and install software packages on Ubuntu.
Here are the steps it performs:
- Collect current information about the Ubuntu system
- Update the list of available packages
- Ensure all required packages are installed
- Add keys for verifying trusted packages
- Add the required package repositories
- Refresh the package list for new repositories
- Install the specified DEB packages
:exclamation: Requirements
None.
:abcd: Role Variables
Variable | Description | Default Value |
---|---|---|
__manage_pkg_dependency |
Default dependencies needed by the role | [apt-transport-https, ca-certificates, gnupg-agent] |
manage_pkg_key_do |
Action to take on keys (present or absent ) |
present |
manage_pkg_key |
List of keys to add (See Example) | [{key: <HEX-KEY>, url: <key-server-url>}] |
manage_pkg_repo_do |
Action to take on repositories (present or absent ) |
present |
manage_pkg_repo |
List of DEB repositories (See Example for formats) | [] |
manage_pkg_dependency |
List of dependencies | "{{ __manage_pkg_dependency }}" |
manage_pkg_app_do |
Action to take on packages (present or absent ) |
present |
manage_pkg_app_install_recommends |
Decide whether to install recommended packages too | no |
manage_pkg_app |
List of applications to install | [] |
:link: Dependencies
- itnok.is_ubuntu (:octocat: ansible-role-is-ubuntu)
To install dependencies use:
$ ansible-galaxy install <dependency.name>
You can also install all required Ansible Roles by using:
$ ansible-galaxy install -r requirements.yml
:notebook: Example Playbook
Here's an example of how to use this role in your playbook:
---
- hosts: servers
remote_user: ubuntu # optional (your remote user)
gather_facts: yes # optional
become: yes
roles:
- { role: itnok.manage_pkg_ubuntu }
vars:
docker_dependency: # optional (Choose any name you like for this variable)
- curl
- software-properties-common
manage_pkg_dependency: "{{ manage_pkg_dependency + docker_dependency }}"
manage_pkg_key:
- { key: "", url: "https://download.docker.com/linux/ubuntu/gpg" }
manage_pkg_repo:
- "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
- "ppa:embrosyn/cinnamon"
- "ppa:noobslab/macbuntu"
manage_pkg_app:
- "cinnamon"
- "docker-ce"
- "macbuntu-os-icons-v1804"
- "macbuntu-os-ithemes-v1804"
- "macbuntu-os-plank-theme-v1804"
- "plank"
:guardsman: License
MIT (read more)
Informazioni sul progetto
Makes it easier to add/remove DEB repositories and install/purge packages on an Ubuntu host.
Installa
ansible-galaxy install itnok.manage_pkg_ubuntu
Licenza
mit
Download
6k
Proprietario