Skip to content

Ansible role to install software packages with default operating system package manager.

License

Notifications You must be signed in to change notification settings

mario-slowinski/software

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

software

Install software packages with default operating system package manager.

Requirements

Role Variables

  • defaults

    software_keys: []         # list of repository keys to manage
    software_repos: []        # list of repositories to manage
    software_pkgs: []         # list of software to manage
      - name: ""              # packages name to install or remove
        deb: ""               # direct path to deb file
        state: ""             # as in ansible modules
        autoremove: bool      # remove also obsolete packages
        update_cache: bool    # update package list from configured repo
        accept_licenses: bool # accept pkg5 package licenses

Dependencies

This role has no dependencies. But it is frequently used as dependency in other roles.

Example Playbook

  • requirements.yml

    - name: software
      src: mario_slowinski.software
  • playbook usage

    - hosts: servers
      gather_facts: yes  # to determine ansible_os_family
      roles:
        - role: software
  • role dependency usage

    dependencies:
      - name: software
        src: mario_slowinski.software
        software_pkgs: "{{ <role>_pkgs }}"

License

GPL-3.0

Author Information

mario.slowinski@gmail.com

About

Ansible role to install software packages with default operating system package manager.

Topics

Resources

License

Stars

Watchers

Forks