community / community.general / 1.3.14 / module / macports Package manager for MacPorts Authors: Jimmy Tang (@jcftang)community.general.macports (1.3.14) — module
Install with ansible-galaxy collection install community.general:==1.3.14
collections: - name: community.general version: 1.3.14
Manages MacPorts packages (ports)
- 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
name: aliases: - port description: - A list of port names. elements: str type: list state: choices: - present - absent - active - inactive - installed - removed default: present description: - Indicates the desired state of the port. type: str upgrade: default: 'no' description: - Upgrade all outdated ports, either prior to installing ports or as a separate step. - Equivalent to running C(port upgrade outdated). type: bool variant: aliases: - variants description: - A port variant specification. - 'C(variant) is only supported with state: I(installed)/I(present).' type: str selfupdate: aliases: - update_cache - update_ports default: 'no' description: - Update Macports and the ports tree, either prior to installing ports or as a separate step. - Equivalent to running C(port selfupdate). type: bool