ansible/roles/packages
2021-11-13 14:33:05 +01:00
..
defaults Added package role 2021-11-13 14:33:05 +01:00
meta Added package role 2021-11-13 14:33:05 +01:00
tasks Added package role 2021-11-13 14:33:05 +01:00
tests Added package role 2021-11-13 14:33:05 +01:00
.travis.yml Added package role 2021-11-13 14:33:05 +01:00
README.md Added package role 2021-11-13 14:33:05 +01:00

Ansible Role: Packages

Build Status

A simple Ansible role used to install, remove, and update distrobution base repository software packages.

(No feature currently exists for enabling additional, third-party repositories.)

Requirements

Ansible minimum version: 2.4

Role Variables

Available default values are listed below (See defaults/main.yml):

# for software package updates
install_all_package_updates: true

# list of packages to install
install_packages: []

# list of packages to remove
remove_packages: []

# list of packages to update
update_packages: []

Set install_all_package_updates to true to enable the automated installation of all software package updates. Set it to false to disable all updates.

install_packages, remove_packages, and update_packages expect to receive a list of package names that are specific to whichever Linux distribution you are running.

NOTE: If you've already set install_all_package_updates to true, then there is naturally no requirement to redundantly list additional packages in update_packages; however, program logic would still allow this (since there is probably no harm done).

Dependencies

None.

Example Playbook

- hosts: all

  vars:
    install_all_package_updates: true
    install_packages:
    - vim-enhanced
    
  roles:
    - brentwg.packages