No description
Find a file
semantic-release-bot 03a7a635cb chore(release): 1.10.0 [skip ci]
# [1.10.0](https://github.com/de-it-krachten/ansible-role-reboot/compare/v1.9.0...v1.10.0) (2026-05-10)

### Bug Fixes

* No need to become=true for local actions ([ccdf8ff](ccdf8ffbc6))

### Features

* Added support for Ubuntu 26.04 LTS ([b23e9df](b23e9dfa08))
2026-05-10 10:28:34 +00:00
.github/workflows fix: No need to become=true for local actions 2026-05-09 18:36:00 +02:00
defaults fix: Fix for async reboot 2024-12-17 00:59:02 +01:00
meta Update CI 2026-03-14 19:56:52 +01:00
molecule/default fix: No need to become=true for local actions 2026-05-09 18:36:00 +02:00
tasks fix: No need to become=true for local actions 2026-05-09 18:36:00 +02:00
.ansible-lint fix: No need to become=true for local actions 2026-05-09 18:36:00 +02:00
.cicd fix: No need to become=true for local actions 2026-05-09 18:36:00 +02:00
.cicd.overwrite Update CI 2026-03-14 19:56:52 +01:00
.collections feat: Move to FQCN 2022-10-10 16:24:09 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 11:47:51 +01:00
.releaserc.yml Update CI 2026-03-06 23:04:59 +01:00
.roles feat: Update CI to latest standards 2022-10-10 16:24:43 +02:00
.yamllint Update CI 2024-12-17 01:00:33 +01:00
CHANGELOG.md chore(release): 1.10.0 [skip ci] 2026-05-10 10:28:34 +00:00
README.md fix: No need to become=true for local actions 2026-05-09 18:36:00 +02:00

CI

ansible-role-reboot

Reboot a server By default, only when reboot is pending but it can be forced

Dependencies

Roles

None

Collections

None

Platforms

Supported platforms

  • Red Hat Enterprise Linux 81
  • Red Hat Enterprise Linux 91
  • Red Hat Enterprise Linux 101
  • RockyLinux 8
  • RockyLinux 9
  • RockyLinux 10
  • OracleLinux 8
  • OracleLinux 9
  • OracleLinux 10
  • AlmaLinux 8
  • AlmaLinux 9
  • AlmaLinux 10
  • Debian 11 (Bullseye)
  • Debian 12 (Bookworm)
  • Debian 13 (Trixie)
  • Ubuntu 20.04 LTS
  • Ubuntu 22.04 LTS
  • Ubuntu 24.04 LTS
  • Ubuntu 26.04 LTS
  • Fedora 42
  • Fedora 43

Note: 1 : no automated testing is performed on these platforms

Role Variables

defaults/main.yml


# Set default for the need of a reboot
reboot_needed: false

# Should the reboot be postponed (and not be executed by this role)
reboot_postponed: false

# Should a reboot be forced
reboot_forced: false

# Amount of seconds to wait for host to become active before throwing an error
reboot_timeout: 300

# Reboot in async mode
reboot_async: false

# Port to check for in async mode
reboot_port_check: 22

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'reboot'
  hosts: all
  become: 'yes'
  vars:
    molecule_driver: '{{ lookup(''env'', ''MOLECULE_DRIVER_NAME'') }}'
    reboot_forced: true
  tasks:
    - name: Include role 'reboot'
      ansible.builtin.include_role:
        name: reboot