Base requirements for Wabbit device
Platforms Supported:
Platform | Versions |
---|---|
Fedora | all |
Raspian | all |
Ansible >= 7.
None.
ansible-galaxy collection install lunik.wabbit
Basic usage is:
- hosts: all
roles:
- role: lunik.wabbit.base
vars:
base_user: yourself
base_ssh_key_path: /home/yourself/.ssh/id_rsa
Variables are divided in three types.
The default vars section shows you which variables you may override in your ansible inventory. As a matter of fact, all variables should be defined there for explicitness, ease of documentation as well as overall role manageability.
The context variables are shown in section below hint you on how runtime context may affects role execution.
Role default variables from defaults/main.yml
.
Variable Name | Required | Type | Default | Description |
---|---|---|---|---|
base_user |
Yes | String | N/A | User on wich to perform actions |
base_package_upgrade |
No | Boolean | False |
Upgrade all system packages |
base_ssh_key_path |
Yes | String | N/A | Path on Ansible server where is store the SSH key to add to base_user Authorized keys |
base_pi_rf_device_state |
No | Object | See defaults/main.yml | Block or unblock wireless services (wlan, bluetooth) using rfkill . The remote should be in the pi group |
Those variables from vars/*.{yml,json}
are loaded dynamically during task
runtime of the module.
Tiwabbit / Guillaume MARTINEZ