mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
29 lines
690 B
Bash
29 lines
690 B
Bash
|
# Functions
|
||
|
function ansible-version(){
|
||
|
ansible --version
|
||
|
}
|
||
|
|
||
|
function ansible-role-init(){
|
||
|
if ! [ -z $1] ; then
|
||
|
echo "Ansible Role : $1 Creating...."
|
||
|
ansible-galaxy init $1
|
||
|
tree $1
|
||
|
else
|
||
|
echo "Usage : ansible-role-init <role name>"
|
||
|
echo "Example : ansible-role-init role1"
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
# Alias
|
||
|
alias a='ansible '
|
||
|
alias aconf='ansible-config '
|
||
|
alias acon='ansible-console '
|
||
|
alias aconn='ansible-connection '
|
||
|
alias aver='ansible-version'
|
||
|
alias arinit='ansible-role-init'
|
||
|
alias aplay='ansible-playbook '
|
||
|
alias ainv='ansible-inventory '
|
||
|
alias adoc='ansible-doc '
|
||
|
alias agal='ansible-galaxy '
|
||
|
alias apull='ansible-pull '
|
||
|
alias aval='ansible-vault'
|