community.general.portage – Package manager for Gentoo¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.portage
.
Parameters¶
Examples¶
- name: Make sure package foo is installed
community.general.portage:
package: foo
state: present
- name: Make sure package foo is not installed
community.general.portage:
package: foo
state: absent
- name: Update package foo to the latest version (os specific alternative to latest)
community.general.portage:
package: foo
update: yes
- name: Install package foo using PORTAGE_BINHOST setup
community.general.portage:
package: foo
getbinpkg: yes
- name: Re-install world from binary packages only and do not allow any compiling
community.general.portage:
package: '@world'
usepkgonly: yes
- name: Sync repositories and update world
community.general.portage:
package: '@world'
update: yes
deep: yes
sync: yes
- name: Remove unneeded packages
community.general.portage:
depclean: yes
- name: Remove package foo if it is not explicitly needed
community.general.portage:
package: foo
state: absent
depclean: yes
Authors¶
William L Thomson Jr (@wltjr)
Yap Sok Ann (@sayap)
Andrew Udvare (@Tatsh)