ansible.builtin.macports (v2.6.20) — module

Package manager for MacPorts

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

Authors: Jimmy Tang (@jcftang)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.6.20

Description

Manages MacPorts packages

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- macports:
    name: foo
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- macports:
    name: foo
    state: present
    update_cache: yes
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- macports:
    name: foo
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- macports:
    name: foo
    state: active
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- macports:
    name: foo
    state: inactive

Inputs

    
name:
    description:
    - name of package to install/remove
    required: true

state:
    choices:
    - present
    - absent
    - active
    - inactive
    default: present
    description:
    - state of the package

update_cache:
    default: 'no'
    description:
    - update the package db first
    type: bool