https://github.com/aboutbits/ansible-base
Ansible - Base Role
https://github.com/aboutbits/ansible-base
ansible ansible-role base
Last synced: 5 days ago
JSON representation
Ansible - Base Role
- Host: GitHub
- URL: https://github.com/aboutbits/ansible-base
- Owner: aboutbits
- Created: 2026-05-04T11:34:05.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-05-09T05:47:35.000Z (26 days ago)
- Last Synced: 2026-05-09T07:32:27.320Z (26 days ago)
- Topics: ansible, ansible-role, base
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Ansible Base
============
Base setup of a server.
## Role Variables
- `base_timezone`: Timezone to configure on the host
- `base_unattended_update_enabled`: Whether unattended updates should be enabled (default: `true`)
- `base_unattended_reboot_enabled`: Whether unattended upgrades may reboot automatically if needed (default: `true`)
- `base_unattended_reboot_time`: Time when unattended-upgrades should reboot if needed (default: `"05:00"`)
- `base_unattended_reboot_k3s_drain_hook`: Whether to install a k3s drain pre-reboot hook (default: `false`)
- `base_unattended_reboot_k3s_drain_timeout`: Timeout for `k3s kubectl drain` in the optional k3s hook (default: `"120s"`)
## Example Playbook
```yaml
- hosts: all
tasks:
- ansible.builtin.include_role:
name: ansible-base
vars:
base_timezone: "Europe/Rome"
```
## Build & Publish
To build and publish the role, visit the GitHub Actions page of the repository and trigger the workflow "Release Package" manually.