- name: install root SSH config into /home/root/.ssh copy: src: ssh-config dest: /home/root/.ssh/config - name: install root SSH authorized keys into /home/root/.ssh copy: src: ssh-config dest: /home/root/.ssh/config - name: symlink /root/.ssh to /home/root/.ssh file: state: link src: /home/root/.ssh path: /root/.ssh - name: create soile group group: name: soile gid: 501 - name: create soile account user: name: soile comment: Soile Mottisenkangas createhome: no group: soile uid: 501 - name: install NFS server apt: name: nfs-kernel-server - name: install /etc/exports copy: src: exports dest: /etc/exports owner: root group: root mode: 0644 notify: restart_nfsd - name: enable statd systemd: name: rpc-statd state: started enabled: yes - name: install backup scripting copy: src: "{{ item }}" dest: /root owner: root group: root mode: 0755 with_items: - rsync-to-nalanda - rsync-to-nalanda-all - name: run backups from cron copy: content: | 40 10 * * * root /root/rsync-to-nalanda-all dest: /etc/cron.d/local-backup owner: root group: root mode: 0755