ansible.plugin.zsh 660 B

12345678910111213141516171819202122232425262728
  1. # Functions
  2. function ansible-version(){
  3. ansible --version
  4. }
  5. function ansible-role-init(){
  6. if ! [ -z $1] ; then
  7. echo "Ansible Role : $1 Creating...."
  8. ansible-galaxy init $1
  9. tree $1
  10. else
  11. echo "Usage : ansible-role-init <role name>"
  12. echo "Example : ansible-role-init role1"
  13. fi
  14. }
  15. # Alias
  16. alias a='ansible '
  17. alias aconf='ansible-config '
  18. alias acon='ansible-console '
  19. alias aver='ansible-version'
  20. alias arinit='ansible-role-init'
  21. alias aplaybook='ansible-playbook '
  22. alias ainv='ansible-inventory '
  23. alias adoc='ansible-doc '
  24. alias agal='ansible-galaxy '
  25. alias apull='ansible-pull '
  26. alias aval='ansible-vault'