这真的很慢,需要几十秒钟:
- name: Install bower.json for the plugins. sudo: no become_user: www-data bower: path=/var/www/mortgage-calculator/src/mortgage-plugin-ember-admin
相比之下,如果我chdir
到相同的位置,并运行bower install
而不是通过command
大约需要0.8s :
- name: Install bower.json for the plugins. sudo: no become_user: www-data command: bower install chdir=/var/www/mortgage-calculator/src/mortgage-plugin-ember-admin
我可以使本地缓冲模块执行得如此快吗?