mnussbaum.ansible_yay

ansible-yay

An Ansible module for installing packages from the AUR using the yay AUR helper.

This requires that your target machine already has yay and its necessary dependencies installed.

Dependencies (Managed Node)

Installation

  1. Clone this repository.
  2. Copy or link the yay file into your global Ansible library (usually /usr/share/ansible) or into the ./library folder next to your main playbook.

Usage

The usage is very similar to the pacman module. Keep in mind that the commands for checking package status and removing packages use pacman commands (-Q, -R, etc.).

Options

Parameter Required Default Choices Description
name No Name of the AUR package you want to install.
recurse No No yes/no Whether to remove packages and their dependencies. See pacman module docs.
state No No absent/present/latest Whether the package should be installed or updated.
update_cache No No yes/no Whether to refresh the list of available packages. This can happen during installation or separately.
upgrade No No yes/no Whether to upgrade the entire system.

Examples

# Install package foo
- yay: name=foo state=present

# Make sure the package fuzz is installed and updated
- yay: name=fuzz state=latest

# Remove packages foo and bar
- yay: name=foo,bar state=absent

# Recursively remove package baz
- yay: name=baz state=absent recurse=yes

# Effectively run yay -Syu
- yay: update_cache=yes upgrade=yes
Informazioni sul progetto

An Ansible module for installing Arch Linux User Repository (AUR) packages via the yay AUR helper

Installa
ansible-galaxy install mnussbaum.ansible_yay
Licenza
mit
Download
145
Proprietario