Module helpers

Module helpers 

Source
Expand description

Additional built-in helpers

Functions§

get_mine
A templating helper that retrieves the value for current host from a map, returns a default value when current host is not recorded in the map.
if_host
A templating helper that tests if current machine’s hostname matches a set of given string(s).
if_os
A templating helper that conditions on values parsed from target machine’s /etc/os-release file. The querying keys are case agnostic.
if_uid
A templating helper that tests if current user’s effective uid matches a set of given integer(s).
if_user
A templating helper that tests if current user’s username matches a set of given string(s).
unless_host
A templating helper that tests if current machine’s hostname matches a set of given string(s). It is the negated version of if_host
unless_os
A templating helper that conditions on values parsed from target machine’s /etc/os-release file. It is the negated version of if_os. The querying keys are case agnostic.
unless_uid
A templating helper that tests if current user’s effective uid matches a set of given integer(s). It is the negated version of if_uid.
unless_user
A templating helper that tests if current user’s username does not match a set of given string(s). It is the negated version of if_user.