Variables

Default variables

The common variables for all distributions are in the directory defaults/main/. These variables can be customized in the file vars/main.yml. The file vars/main.yml will be preserved by the update of the role.

Warning

  • Don’t make any changes to the file defaults/main.yml. The changes will be overwritten by the update of the role. Customize the default values in the file vars/main.yml.

  • Default value of lp_passwords_debug_classified and lp_wpasupplicant_debug_classified is False. Passwords will be displayed if these variables are enabled.

See also

  • The examples of the customization vars/main.yml.sample

  • Defaults of lp_vars_ defaults/main/vars.yml

[defaults/main/vars.yml]

1---
2
3lp_vars_distro: firstfound
4lp_vars_distro_firstfound_skip: true  # issue #43833
5lp_vars_flavors: firstfound

Default OS specific variables

The files in the directories vars/defaults and vars/defaults.incr keep OS specific variables. The difference between them is the method how the files are included.

  • firstfound: A file in the directory vars/defaults in the order ansible_distribution_release, ansible_distribution, and ansible_os_family is included with the lookup plugin first_found.

  • incremental: All files in the directory vars/defaults.incr in the order ansible_os_family, ansible_distribution, and ansible_distribution_release are included in the loop. The variables in the files overwrite each other.

In addition, also files defaults.yml and/or default.yml can be included.

The method is determined by the variable lp_vars_distro (default: firstfound)

lp_vars_distro: firstfound

Warning

  • Don’t change these file. The changes will be overwritten by the update of the role. Customize the default OS values in the files placed in the directory vars/

See also

Custom OS specific variables

Os specific variables can be customized in files placed in the directory vars/. These files will be preserved by the update.

See also

  • The examples of the customization vars/defaults.yml.sample

Flavors specific variables (WIP)

The files in the directories vars/flavors and vars/flavors.incr keep flavors specific variables. The difference between them is the method how the files are included

  • firstfound: A file in the directory vars/flavors in the order <TBD> is included with the lookup plugin first_found.

  • incremental: All files in the directory vars/defaults.incr in the order <TBD> are included in the loop. The variables in the files overwrite each other.

In addition, also files defaults.yml and/or default.yml can be included.

The method is determined by the variable lp_vars_flavor (default: firstfound)

lp_vars_flavor: firstfound

Note