Skip to content

sparknsh/ansible-role-package

Repository files navigation

Ansible Role: Package

Version: 1.2.4

Development of this project is managed in a private repository then pushed out to GitHub when we have a new version for you. If you have any issues please contact sparknsh

Role Variables

package__https: false
package__update_cache: true
package__cache_valid_time: 3600

package__list: []

package__list_host: []

package__list_group: []

package__custom_repo:
  apt: []
  yum: []

package__apt_debsrc: true
package__apt_backports: true
package__apt_experimental: true
package__apt_contrib_nonfree: true

package__yum_epel: true

Example

package__custom_repo:
  apt:
    - name: HAProxy
      repo_url: "deb https://haproxy.debian.net bullseye-backports-2.6 main"
      key_url: "https://haproxy.debian.net/bernat.debian.org.gpg"
      state: present
      filename: haproxy
  yum: []

package__list:
  - name: sudo
  - name: htop
    dnf_ignore: true
  - name: haproxy
    apt_default_release: bullseye-backports
    yum_ignore: true
    dnf_ignore: true
  - name: tree
    state: absent

Example Playbook

- hosts: all
  vars_files:
    - vars/main.yml
  roles:
     - { role: sparknsh.package }

License

MIT

Author Information

This role was created in 2022 by sparknsh at Rebel Media, Inc.