unable to install vim plugin via shell module

30 views
Skip to first unread message

Eric Chang

unread,
Jan 15, 2020, 9:19:42 PM1/15/20
to Ansible Project
I want to install vim plugins with ansible shell module
the task is quite simple as follow

- name: install vim vundle plugin
  shell: "vim +PluginInstall +qall"

but the playbook will hang at this task like forever.

even with -vv or -vvv , there`s no more detail log , it just hangs !

any suggestions ??

Kai Stian Olstad

unread,
Jan 20, 2020, 12:21:01 PM1/20/20
to ansible...@googlegroups.com
When you run the shell module Ansible would use non-interactive shell.
Non-interactive shell read very few environment files so the environment
variables vim expect is probably not there.


--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages