1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Express saving of remoteit_license_key to /etc/remoteit/registration

This commit is contained in:
root 2022-04-08 00:34:41 -04:00
parent 97e82e44e5
commit 1dd525dfe4

View file

@ -1,11 +1,11 @@
- name: Copy OPTIONAL remoteit_license_key, e.g. from /etc/iiab/local_vars.yml to /etc/remoteit/registration, if remoteit_enabled and remoteit_license_key is defined - name: Copy OPTIONAL remoteit_license_key, e.g. from /etc/iiab/local_vars.yml to /etc/remoteit/registration, if remoteit_license_key is defined
# shell: echo {{ remoteit_license_key }} > /etc/remoteit/registration # shell: echo {{ remoteit_license_key }} > /etc/remoteit/registration
template: template:
src: registration.j2 src: registration.j2
dest: /etc/remoteit/registration dest: /etc/remoteit/registration
when: remoteit_license_key is defined when: remoteit_license_key is defined
- name: Redact OPTIONAL remoteit_license_key from /etc/iiab/local_vars.yml, if remoteit_enabled and remoteit_license_key is defined - name: Redact OPTIONAL remoteit_license_key from /etc/iiab/local_vars.yml, if remoteit_license_key is defined
# shell: sed -i '/^remoteit_license_key:/d' {{ iiab_local_vars_file }} # shell: sed -i '/^remoteit_license_key:/d' {{ iiab_local_vars_file }}
lineinfile: lineinfile:
path: "{{ iiab_local_vars_file }}" path: "{{ iiab_local_vars_file }}"