community / community.general / 0.1.4 / module / pkgin Package manager for SmartOS, NetBSD, et al. Authors: Larry Gilbert (@L2G), Shaun Zinck (@szinck), Jasper Lievisse Adriaanse (@jasperla)community.general.pkgin (0.1.4) — module
Install with ansible-galaxy collection install community.general:==0.1.4
collections: - name: community.general version: 0.1.4
The standard package manager for SmartOS, but also usable on NetBSD or any OS that uses C(pkgsrc). (Home: U(http://pkgin.net/))
- name: Install package foo pkgin: name: foo state: present
- name: Update cache and install foo package pkgin: name: foo update_cache: yes
- name: Remove package foo pkgin: name: foo state: absent
- name: Remove packages foo and bar pkgin: name: foo,bar state: absent
- name: Update repositories as a separate step pkgin: update_cache: yes
- name: Upgrade main packages (equivalent to pkgin upgrade) pkgin: upgrade: yes
- name: Upgrade all packages (equivalent to pkgin full-upgrade) pkgin: full_upgrade: yes
- name: Force-upgrade all packages (equivalent to pkgin -F full-upgrade) pkgin: full_upgrade: yes force: yes
- name: Clean packages cache (equivalent to pkgin clean) pkgin: clean: yes
name: description: - Name of package to install/remove; - multiple names may be given, separated by commas clean: default: 'no' description: - Clean packages cache type: bool force: default: 'no' description: - Force package reinstall type: bool state: choices: - present - absent default: present description: - Intended state of the package upgrade: default: 'no' description: - Upgrade main packages to their newer versions type: bool full_upgrade: default: 'no' description: - Upgrade all packages to their newer versions type: bool update_cache: default: 'no' description: - Update repository database. Can be run with other steps or on it's own. type: bool