mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
Ansible require double backslashes, e.g. with \b "word boundary" anchors
This commit is contained in:
parent
ebb1ac6cc1
commit
5bbcacbe00
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@
|
|||
|
||||
- name: Pre-check that IIAB's "XYZ_install" + "XYZ_enabled" vars (1) are defined, (2) are boolean-not-string variables, and (3) contain plausible values. Also checks that "XYZ_install" is True when "XYZ_installed" is defined.
|
||||
include_tasks: validate_vars.yml
|
||||
when: not (rpi_model | regex_search('\bW\b'))
|
||||
when: not (rpi_model | regex_search('\\bW\\b')) # Ansible require double backslashes, e.g. with \b "word boundary" anchors: https://www.regular-expressions.info/wordboundaries.html https://stackoverflow.com/questions/56869119/ansible-regular-expression-to-match-a-string-and-extract-the-line/56869801#56869801
|
||||
|
||||
- name: "Time Zone / TZ: Set symlink /etc/localtime to UTC if it doesn't exist?"
|
||||
include_tasks: tz.yml
|
||||
|
|
Loading…
Reference in a new issue