community.general.macports – Управляющий пакетами MacPorts
Примечание
Этот плагин входит в коллекцию community.general (версия 2.0.1).
Для его установки используйте: ansible-galaxy collection install community.general
Для использования в плейбуке укажите: community.general.macports
Обзор
- Управляет пакетами (портами) MacPorts
Параметры
| Параметр | Варианты/Значения по умолчанию | Комментарии |
|---|---|---|
| name список / элементы=строка | Список имён портов. псевдонимы: порт | |
| selfupdate булево |
| Обновление Macports и дерева портов, либо перед установкой портов, либо как отдельный шаг. Эквивалентно выполнению port selfupdateпсевдонимы: update_cache, update_ports |
| state строка |
| Указывает желаемое состояние порта. |
| upgrade булево |
| Обновление всех устаревших портов, либо перед установкой портов, либо как отдельный шаг. Эквивалентно выполнению port upgrade outdated |
| variant строка | Спецификация варианта порта. variant поддерживается только при state: installed/present.псевдонимы: variants |
Примеры
- 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
Авторы
- Jimmy Tang (@jcftang)
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.11/collections/community/general/macports_module.html