community / community.general / 0.1.1 / module / portinstall Installing packages from FreeBSD's ports system Authors: berenddeboer (@berenddeboer) preview | supported by communitycommunity.general.portinstall (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
Manage packages for FreeBSD using 'portinstall'.
# Install package foo - portinstall: name: foo state: present
# Install package security/cyrus-sasl2-saslauthd - portinstall: name: security/cyrus-sasl2-saslauthd state: present
# Remove packages foo and bar - portinstall: name: foo,bar state: absent
name: description: - name of package to install/remove required: true state: choices: - present - absent default: present description: - state of the package required: false use_packages: default: true description: - use packages instead of ports whenever available required: false type: bool