2018-11-03 12:04:04 +00:00
|
|
|
# Functions
|
|
|
|
function ansible-version(){
|
|
|
|
ansible --version
|
|
|
|
}
|
|
|
|
|
|
|
|
function ansible-role-init(){
|
2020-11-22 14:42:39 +00:00
|
|
|
if ! [ -z $1 ] ; then
|
2018-11-03 12:04:04 +00:00
|
|
|
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 aver='ansible-version'
|
|
|
|
alias arinit='ansible-role-init'
|
2019-02-23 08:00:05 +00:00
|
|
|
alias aplaybook='ansible-playbook '
|
2018-11-03 12:04:04 +00:00
|
|
|
alias ainv='ansible-inventory '
|
|
|
|
alias adoc='ansible-doc '
|
|
|
|
alias agal='ansible-galaxy '
|
|
|
|
alias apull='ansible-pull '
|
2020-11-22 14:42:39 +00:00
|
|
|
alias aval='ansible-vault'
|