removed pmps and pmpsa as aliases and made .local/bin files to add color

formatting
This commit is contained in:
barry 2024-02-15 18:12:37 -06:00
parent 26974dd8df
commit 3b4ab4155b
4 changed files with 16 additions and 10 deletions

View File

@ -138,14 +138,4 @@
length_minutes = {{ update_schedule_length }} length_minutes = {{ update_schedule_length }}
tags: config tags: config
- name: Create pmls / pmlsa alias
ansible.builtin.blockinfile:
path: ~/.bashrc
block: |
alias pmls="podman ps --format {% raw %}'{{.Names}} \t{{.Status}}'{% endraw %}"
alias pmls="podman ps -a --format {% raw %}'{{.Names}} \t{{.Status}}'{% endraw %}"
state: present
create: true
tags: config

3
roles/install/files/pmps Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
podman ps --format '{{.Names}} \t{{.Status}}' | awk '{print "\033[1;33m"$1"\033[0m" "\t\t\t" "\033[1;34m"$2"\033[0m"}'

View File

@ -0,0 +1,3 @@
#!/bin/sh
podman ps -a --format '{{.Names}} \t{{.Status}}' | awk '{print "\033[1;33m"$1"\033[0m" "\t\t\t" "\033[1;34m"$2"\033[0m"}'

View File

@ -46,6 +46,16 @@
- smartmontools - smartmontools
- caddy - caddy
tags: install tags: install
- name: Install local tools
ansible.builtin.copy:
src: "{{item}}"
dest: ~/.local/bin/{{item}}
mode: '0770'
status: present
with_items:
- 'pmps'
- 'pmpsa'
- name: Reboot System - name: Reboot System
become: yes become: yes