- name: Copy firstboot script file ansible.builtin.copy: src: firstboot.sh dest: /opt/firstboot.sh owner: root group: root mode: o+x - name: Create @reboot crontab job ansible.builtin.cron: name: "firstboot" special_time: reboot job: "/opt/firstboot.sh"