Moved bash aliases and functions from playbook files to lockdown role files
This commit is contained in:
13
.ansible/roles/lockdown/files/bash/bash_functions.example
Normal file
13
.ansible/roles/lockdown/files/bash/bash_functions.example
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/bash
|
||||
# podman bash function
|
||||
conman () {
|
||||
if command -v podman &> /dev/null; then
|
||||
CONTAINER_MANAGER="podman"
|
||||
elif command -v docker &> /dev/null; then
|
||||
CONTAINER_MANAGER="docker"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
$CONTAINER_MANAGER
|
||||
}
|
||||
Reference in New Issue
Block a user