Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 2.46 KB

README.md

File metadata and controls

78 lines (52 loc) · 2.46 KB

Ansible role lunik.wabbit.base

License Release Ansible Galaxy Ansible version

Base requirements for Wabbit device

Platforms Supported:

Platform Versions
Fedora all
Raspian all

⚠️ Requirements

Ansible >= 7.

Ansible role dependencies

None.

⚡ Installation

Install with Ansible Galaxy

ansible-galaxy collection install lunik.wabbit

✏️ Example Playbook

Basic usage is:

- hosts: all
  roles:
    - role: lunik.wabbit.base
      vars:
        base_user: yourself
        base_ssh_key_path: /home/yourself/.ssh/id_rsa

⚙️ Role Variables

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.

Default variables

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

Context variables

Those variables from vars/*.{yml,json} are loaded dynamically during task runtime of the module.

See vars/main.yml

Author Information

Tiwabbit / Guillaume MARTINEZ