From 60b52d296abc2be737f8dd10796506f7fe953e01 Mon Sep 17 00:00:00 2001 From: Radar231 Date: Fri, 27 May 2022 09:20:32 -0400 Subject: [PATCH] restored base_pkgs role --- tasks/main.yml | 67 +++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 52 insertions(+), 15 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 46c979f..4ca8f5a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,24 +1,61 @@ --- ########################################################### # -# This role will set up a user for retrieving, building and installing arch -# packages from the AUR. +# This role will install a selected set of packages as a desired baseline +# package collection. # ########################################################### -# tasks file for aur_builder +# tasks file for base_pkgs -- debug: msg="Setting up aur_builder acount (Arch)" +- debug: msg="Installing desired list of base packages" -- name: Create the `aur_builder` user - ansible.builtin.user: - name: aur_builder - create_home: yes - group: wheel +- 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: 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' +- 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" +# EOF