--- - hosts: all become: true tasks: - name: change bash promp and color copy: src={{ item.src }} dest={{ item.dest }} with_items: - {src: 'bashrc', dest: '/root/.bashrc'} - {src: 'bashrc', dest: '/home/sebastian/.bashrc'}