community / community.general / 0.1.4 / module / macports Package manager for MacPorts Authors: Jimmy Tang (@jcftang)community.general.macports (0.1.4) — module
Install with ansible-galaxy collection install community.general:==0.1.4
collections: - name: community.general version: 0.1.4
Manages MacPorts packages (ports)
- 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 Macports and the ports tree, then upgrade all outdated ports macports: selfupdate: yes upgrade: yes
- name: Update Macports and the ports tree, then install the foo port macports: name: foo selfupdate: 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
name: aliases: - port description: - A list of port names. elements: str type: list state: choices: - present - absent - active - inactive default: present description: - Indicates the desired state of the port. 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).' 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