--- - name: create ~/.config/autostart directory file: state: directory path: ~/.config/autostart - name: create autostart desktop file copy: dest: '{{ansible_env.HOME}}/.config/autostart/1password.desktop' content: | [Desktop Entry] Name=1Password Exec=/opt/1Password/1password %U Terminal=false Type=Application Icon=1password StartupWMClass=1Password Comment=Password manager and secure wallet MimeType=x-scheme-handler/onepassword;x-scheme-handler/onepassword8; Categories=Office;