ansible.plugin.zsh 662 Bytes
Newer Older
Deepankumar's avatar
Deepankumar committed
1
2
3
4
5
6
# Functions
function ansible-version(){
    ansible --version
}

function ansible-role-init(){
7
    if ! [ -z $1 ] ; then
Deepankumar's avatar
Deepankumar committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
        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'
Deepankumar's avatar
Deepankumar committed
23
alias aplaybook='ansible-playbook '
Deepankumar's avatar
Deepankumar committed
24
25
26
27
alias ainv='ansible-inventory '
alias adoc='ansible-doc '
alias agal='ansible-galaxy '
alias apull='ansible-pull '
28
alias aval='ansible-vault'