Add dokku and "ansible-vault-manager list" commands

This commit is contained in:
Tobias Reisinger 2024-10-29 22:45:13 +01:00
parent cf2f755791
commit f9eb7c32a0
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 5 additions and 1 deletions

View file

@ -49,6 +49,9 @@ case "$action" in
show) show)
echo "$pass_content" | head -n 1 echo "$pass_content" | head -n 1
exit 0 ;; exit 0 ;;
list)
echo "$pass_content" | grep "^path:" | cut -d' ' -f2-
exit 0 ;;
view) view)
ansible-vault view "${pass_paths[@]}" ansible-vault view "${pass_paths[@]}"
exit 0 ;; exit 0 ;;
@ -65,6 +68,6 @@ case "$action" in
pass edit "ansible/$project" pass edit "ansible/$project"
exit 0 ;; exit 0 ;;
*) *)
echo "Usage: ansible-vault-manager [show|view|edit|deploy|save|pass-edit]" echo "Usage: ansible-vault-manager [show|list|view|edit|deploy|save|pass-edit]"
exit 0 ;; exit 0 ;;
esac esac

View file

@ -25,6 +25,7 @@ alias dns-flush='sudo systemctl restart systemd-resolved.service && sudo systemd
alias doas='doas -- ' alias doas='doas -- '
alias doasu='\doas -u ' alias doasu='\doas -u '
alias docker-caddy-reload='docker compose exec app sh -c "caddy validate --config /etc/caddy/Caddyfile && caddy reload --config /etc/caddy/Caddyfile"' alias docker-caddy-reload='docker compose exec app sh -c "caddy validate --config /etc/caddy/Caddyfile && caddy reload --config /etc/caddy/Caddyfile"'
alias dokku='ssh dokku.docker'
alias du='du -h' alias du='du -h'
alias free='free -h' alias free='free -h'