removed pmps and pmpsa as aliases and made .local/bin files to add color
formatting
This commit is contained in:
parent
26974dd8df
commit
3b4ab4155b
@ -138,14 +138,4 @@
|
||||
length_minutes = {{ update_schedule_length }}
|
||||
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
3
roles/install/files/pmps
Normal 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"}'
|
||||
3
roles/install/files/pmpsa
Normal file
3
roles/install/files/pmpsa
Normal 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"}'
|
||||
@ -47,6 +47,16 @@
|
||||
- caddy
|
||||
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
|
||||
become: yes
|
||||
become_method: sudo
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user