community.general.macports – Package manager for MacPorts¶
Note
This plugin is part of the community.general collection (version 2.5.1).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.macports
.
Parameters¶
Examples¶
- name: Install the foo port
community.general.macports:
name: foo
- name: Install the universal, x11 variant of the foo port
community.general.macports:
name: foo
variant: +universal+x11
- name: Install a list of ports
community.general.macports:
name: "{{ ports }}"
vars:
ports:
- foo
- foo-tools
- name: Update Macports and the ports tree, then upgrade all outdated ports
community.general.macports:
selfupdate: yes
upgrade: yes
- name: Update Macports and the ports tree, then install the foo port
community.general.macports:
name: foo
selfupdate: yes
- name: Remove the foo port
community.general.macports:
name: foo
state: absent
- name: Activate the foo port
community.general.macports:
name: foo
state: active
- name: Deactivate the foo port
community.general.macports:
name: foo
state: inactive
Authors¶
Jimmy Tang (@jcftang)