How to specify ansible pretasks for a role?

I use the pre_tasks to do some tasks before roles, thanks for Kashyap. #!/usr/bin/env ansible-playbook — – hosts: all become: true pre_tasks: – name: start tasks and sent notifiaction to HipChat hipchat: color: purple token: “{{ hipchat_token }}” room: “{{ hipchat_room }}” msg: “[Start] Run ‘foo/setup.yml’ playbook on {{ ansible_nodename }}.” roles: – chusiang.vim-and-vi-mode vars: … Read more

techhipbettruvabetnorabahisbahis forumu