--- # reboot container - name: "reboot container" ansible.builtin.reboot: msg: "reboot container" connect_timeout: 5 reboot_timeout: 60 pre_reboot_delay: 0 post_reboot_delay: 5 test_command: "whoami"