1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

iiab-support: Summarize mechanics

This commit is contained in:
A Holt 2021-08-20 06:07:49 -04:00 committed by GitHub
parent 03a4e217e4
commit 244c67243f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,17 +13,18 @@ DEBUG=false # Using /usr/bin/true or /usr/bin/false
# PARSE local_vars.yml JUST AS Ansible & /etc/openvpn/scripts/announcer DO:
# (1) In case var's defined multiple times, 'tail 1' takes the last assignment.
# (2) sed: Strip 'varname:\s' on left. Not applicable for live/keyboard input.
# (2) sed: Strip 'varname:\s' on left.
# (3) sed: Strip '#comment' on right.
# (4) sed: Strip any outer spacing.
# (5) sed: Strip up-to-1 pair of matching outer quotes.
# Steps (1) and (2) are not applicable with live/keyboard input.
# Steps (3), (4) and (5) are optional with live/keyboard input (we do it!)
# /etc/openvpn/scripts/announcer ALSO GOES ONE STEP FURTHER THAN ANSIBLE:
# (6) Convert remaining spaces to underscores.
# Steps (1) and (2) are not applicable with live/keyboard input.
# Steps (3), (4) and (5) are optional with live/keyboard input (we do it!)
# Step (6) is always required for OpenVPN here (file or live/keyboard input!)
# NOTE Ansible vars can have non-string value null. This is different from
# undefined -- from Ansible's perspective -- SEE /opt/iiab/iiab/test.yml
# BUT HERE IN BASH, we focus only on string values e.g. "" empty string if nec: