diff --git a/roles/arch/files/pacup.sh b/roles/arch/files/pacup.sh new file mode 100644 index 0000000..7a94582 --- /dev/null +++ b/roles/arch/files/pacup.sh @@ -0,0 +1,2 @@ +#!/bin/sh +/usr/bin/pacman -Syu --needed diff --git a/roles/arch/tasks/localbin.yml b/roles/arch/tasks/localbin.yml new file mode 100644 index 0000000..fe1fa29 --- /dev/null +++ b/roles/arch/tasks/localbin.yml @@ -0,0 +1,20 @@ +--- +# Copyright 2021 Anthony Perkins +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +- name: Copy pacup script + ansible.builtin.copy: + src: pacup.sh + dest: "/usr/local/bin/pacup" + mode: '0755' diff --git a/roles/arch/tasks/main.yml b/roles/arch/tasks/main.yml index 6a1631e..07075c0 100644 --- a/roles/arch/tasks/main.yml +++ b/roles/arch/tasks/main.yml @@ -21,3 +21,4 @@ - include: solokeys.yml - include: locale.yml - include: printing.yml +- include: localbin.yml diff --git a/roles/home-cli/files/bashrc b/roles/home-cli/files/bashrc index 28b76b8..f9f6945 100644 --- a/roles/home-cli/files/bashrc +++ b/roles/home-cli/files/bashrc @@ -98,7 +98,6 @@ alias ll="ls -l --color=auto" alias ls="ls -F --color=auto" alias now="date +%Y%m%dT%H%M%S%z" alias nowu="date -u +%Y%m%dT%H%M%SZ" -alias pacup="sudo pacman -Syu --needed" alias streamenc="openssl aes-256-cbc -pbkdf2 -in - -out - -e" alias streamdec="openssl aes-256-cbc -pbkdf2 -in - -out - -d" alias ta="$HOME/opt/textadept/textadept"