--- - hosts: localhost become: yes tasks: - name: install proper editor apt: name=vim-scripts install_recommends=yes state=latest - name: configure default editor alternatives: name=editor path=/usr/bin/vim.basic ...