gabops.packages_os

gabops.packages_os

Build Status

This tool installs system packages on various GNU/Linux distributions.

Requirements

None.

Role Variables

Variable Default Value Description
packages_os {} Specifies the packages to be installed or removed. Packages can be grouped under the key all, or under a key formatted as distro_version. Refer to Notes and Example playbook for more information.
packages_os_yum_enablerepo "" Enables a specific repository when using yum to install packages.
packages_os_yum_disablerepo "" Disables a specific repository when using yum to install packages.
packages_os_apt_default_release "" Targets a specific release when using apt to install packages.
packages_os_apt_update_cache true Updates the package cache when installing packages using apt.

Notes:

Packages grouped by distro_version take priority over those in all. For example:

  packages_os:
    all:
      vim: present
    centos_7:
      vim: absent

Here, the vim package will not be installed on any host that is centos_7 where this variable is defined.

Dependencies

None.

Example Playbook

- hosts: all
  vars:
    packages_os:
      all:
        tcpdump: present
        vim: present
      centos_6:
        iptables: present
        curl: present
      centos_7:
        httpd: present
        zip: present
        tcpdump: absent
        traceroute: present
        python-devel: present
      amazon_1:
        telnet: present
      amazon_2:
        zsh: present
      ubuntu_18.04:
        apt-file: present
  roles:
    - role: gabops.packages_os

License

MIT

Author Information

Gabriel Suarez (Gabops)

Informazioni sul progetto

Installs system packages on multiple GNU/Linux distributions

Installa
ansible-galaxy install gabops.packages_os
Licenza
mit
Download
13.4k
Proprietario
I am a DevOps engineer who likes Python, Go, AWS, Kubernetes and climbing with friends.