ansible / ansible.builtin / v2.7.7 / module / macports Package manager for MacPorts | "added in version" 1.1 of ansible.builtin" Authors: Jimmy Tang (@jcftang) preview | supported by communityansible.builtin.macports (v2.7.7) — module
pip
Install with pip install ansible==2.7.7
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 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
name: aliases: - port description: - A list of port names. required: true state: choices: - present - absent - active - inactive default: present description: - Indicates the desired state of the port. variant: aliases: - variants description: - A port variant specification. - 'C(variant) is only supported with state: I(installed)/I(present).' version_added: '2.7' version_added_collection: ansible.builtin update_ports: aliases: - update_cache default: 'no' description: - Update the ports tree first. type: bool