--- - name: deploy /etc/shrc blockinfile: block: "{{ lookup('file', 'blockinfile/shrc') }}" path: /etc/shrc create: true - name: remove /root/.shrc file: path: /root/.shrc state: absent - name: tune /root/.profile copy: src: dot.profile dest: /root/.profile - name: root shell is ksh user: name: root shell: /bin/ksh #- name: helper scripts # copy: # src: bsd/log_flat # dest: /root/log # mode: 0755