--- - hosts: localhost connection: local become: true tasks: - name: install packages package: name: - htop - name: copy wallpaper file copy: src: files/wallpaper.png dest: /usr/share/backgrounds/ansible-wallpaper.png owner: root group: root - name: set wallpaper become_user: user dconf: key: "/org/gnome/desktop/background/picture-uri" value: "'file:///usr/share/backgrounds/ansible-wallpaper.png'" - name: set wallpaper position become_user: user dconf: key: "/org/gnome/desktop/background/picture-options" value: "'zoom'" - name: copy .bashrc file copy: src: files/zshrc dest: /home/user/.zshrc owner: user group: user - name: add ansible-pull cron job cron: name: ansible auto-provision user: velociraptor minute: "*/10" job: ansible-pull -o -U https://github.com/jlacroix82/ansible_pull_tutorial.git