ansible.builtin.portinstall (v2.9.27) — module

Installing packages from FreeBSD's ports system

| "added in version" 1.3 of ansible.builtin"

Authors: berenddeboer (@berenddeboer)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Manage packages for FreeBSD using 'portinstall'.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Install package foo
- portinstall:
    name: foo
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Install package security/cyrus-sasl2-saslauthd
- portinstall:
    name: security/cyrus-sasl2-saslauthd
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Remove packages foo and bar
- portinstall:
    name: foo,bar
    state: absent

Inputs

    
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