diff --git a/roles/fakeroot/README.md b/roles/fakeroot/README.md new file mode 100644 index 00000000..c6a505d0 --- /dev/null +++ b/roles/fakeroot/README.md @@ -0,0 +1,24 @@ +# Fakeroot + +## Description + +This Ansible role installs **fakeroot** on Arch Linux systems using the Pacman package manager. Fakeroot enables non-privileged users to simulate root-level file manipulations—ideal for building packages or performing file operations that normally require root permissions. + +Learn more about fakeroot on [Wikipedia](https://en.wikipedia.org/wiki/Fakeroot) and check out its details on the [Arch Linux Package Repository](https://archlinux.org/packages/?q=fakeroot). + +## Purpose + +The purpose of this role is to automate the installation of fakeroot so that users can simulate superuser operations without requiring elevated privileges. This is particularly useful in development environments and during package building processes. + +## Features + +- **Automated Installation:** Uses Pacman to install fakeroot. +- **Idempotent Execution:** Ensures that fakeroot is installed and remains up to date. +- **Simplified Setup:** Minimizes manual installation steps for environments where fakeroot is required. + +## Credits + +Developed and maintained by **Kevin Veen-Birkenbach**. +Learn more at [www.veen.world](https://www.veen.world) + +License: [CyMaIS NonCommercial License (CNCL)](https://s.veen.world/cncl) diff --git a/roles/fakeroot/meta/main.yml b/roles/fakeroot/meta/main.yml new file mode 100644 index 00000000..dd7fe342 --- /dev/null +++ b/roles/fakeroot/meta/main.yml @@ -0,0 +1,21 @@ +--- +galaxy_info: + author: "Kevin Veen-Birkenbach" + description: "Installs fakeroot on Arch Linux using Pacman, enabling non-privileged file manipulations required for package building and development." + license: "CyMaIS NonCommercial License (CNCL)" + license_url: "https://s.veen.world/cncl" + company: | + Kevin Veen-Birkenbach + Consulting & Coaching Solutions + https://www.veen.world + min_ansible_version: "2.9" + platforms: + - name: Archlinux + versions: + - rolling + galaxy_tags: + - fakeroot + - pacman + - archlinux + - development +dependencies: [] \ No newline at end of file diff --git a/roles/fakeroot/tasks/main.yml b/roles/fakeroot/tasks/main.yml new file mode 100644 index 00000000..01713807 --- /dev/null +++ b/roles/fakeroot/tasks/main.yml @@ -0,0 +1,11 @@ +--- +- name: Install fakeroot + pacman: + name: fakeroot + state: present + when: run_once_fakeroot is not defined + +- name: run the fakeroot tasks once + set_fact: + run_once_fakeroot: true + when: run_once_fakeroot is not defined \ No newline at end of file diff --git a/roles/system-aur-helper/meta/main.yml b/roles/system-aur-helper/meta/main.yml index 7e9c175d..85502a55 100644 --- a/roles/system-aur-helper/meta/main.yml +++ b/roles/system-aur-helper/meta/main.yml @@ -21,4 +21,5 @@ galaxy_info: repository: "https://s.veen.world/cymais" issue_tracker_url: "https://s.veen.world/cymaisissues" documentation: "https://s.veen.world/cymais" -dependencies: [] +dependencies: + - fakeroot diff --git a/roles/system-aur-helper/tasks/main.yml b/roles/system-aur-helper/tasks/main.yml index 390dc334..3b3c83f9 100644 --- a/roles/system-aur-helper/tasks/main.yml +++ b/roles/system-aur-helper/tasks/main.yml @@ -1,6 +1,9 @@ - name: install yay community.general.pacman: - name: yay + name: + - yay + - patch + - base-devel state: present - name: Create the `aur_builder` user