initial checkin

This commit is contained in:
Radar231 2022-05-10 13:17:49 -04:00
parent 117d50a4b2
commit e3c27b5bf4
2 changed files with 18 additions and 55 deletions

View File

@ -1,7 +1,7 @@
# Ansible Role: base_pkgs
# Ansible Role: aur_builder
## Introduction
This role will install a selected set of packages as a desired baseline
package collection.
This role will set up a user for retrieving, building and installing arch
packages from the AUR.

View File

@ -1,61 +1,24 @@
---
###########################################################
#
# This role will install a selected set of packages as a desired baseline
# package collection.
# This role will set up a user for retrieving, building and installing arch
# packages from the AUR.
#
###########################################################
# tasks file for base_pkgs
# tasks file for aur_builder
- debug: msg="Installing desired list of base packages"
- debug: msg="Setting up aur_builder acount (Arch)"
- name: Installed desired list of base packages (Debian based distros)
apt:
name:
- build-essential
- conspy
- cron
- curl
- dnsutils
- elinks
- git
- htop
- logrotate
- multitail
- net-tools
- pandoc
- pylint
- python3
- python3-pip
- rsyslog
- sudo
- tmux
- tree
- vim
- vim-scripts
- wget
state: latest
when: ansible_os_family == "Debian"
- name: Create the `aur_builder` user
ansible.builtin.user:
name: aur_builder
create_home: yes
group: wheel
- name: Installed desired list of base packages (Arch based distros)
pacman:
name:
- cronie
- curl
- elinks
- git
- htop
- inetutils
- multitail
- net-tools
- python3
- tmux
- tree
- vim
- wget
state: present
force: true
update_cache: true
when: ansible_os_family == "Archlinux"
- name: Allow the `aur_builder` user to run `sudo pacman` without a password
ansible.builtin.lineinfile:
path: /etc/sudoers.d/11-install-aur_builder
line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
create: yes
validate: 'visudo -cf %s'
# EOF