--- - name: groot | copy bash-completion copy: src: bash_completion dest: /etc/bash_completion.d/groot owner: root group: root mode: 0644 tags: ['groot'] - name: groot | copy script copy: src: groot dest: /usr/local/bin/groot owner: root group: root mode: 0755 tags: ['groot'] - name: groot | create sudo priv template: src: sudoers.j2 dest: /etc/sudoers.d/groot owner: root group: root mode: 0440 validate: "/usr/sbin/visudo -cf %s" with_dict: "{{ groot }}"