macports – Package manager for MacPorts
From Get docs
Ansible/docs/2.7/modules/macports module
macports – Package manager for MacPorts
Synopsis
- Manages MacPorts packages (ports)
Parameters
Parameter | Choices/Defaults | Comments |
---|---|---|
name - / required |
A list of port names.
| |
state - |
|
Indicates the desired state of the port. |
update_ports boolean |
|
Update the ports tree first.
|
variant - added in 2.7 |
A port variant specification.
|
Examples
- name: Install the foo port
macports:
name: foo
- name: Install the universal, x11 variant of the foo port
macports:
name: foo
variant: +universal+x11
- name: Install a list of ports
macports:
name: "{{ ports }}"
vars:
ports:
- foo
- foo-tools
- name: Update the ports tree then install the foo port
macports:
name: foo
update_ports: yes
- name: Remove the foo port
macports:
name: foo
state: absent
- name: Activate the foo port
macports:
name: foo
state: active
- name: Deactivate the foo port
macports:
name: foo
state: inactive
Status
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors
- Jimmy Tang (@jcftang)
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/modules/macports_module.html