aboutsummaryrefslogtreecommitdiff
path: root/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/main.yml')
-rw-r--r--tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 3d47915..d01f776 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -49,7 +49,6 @@
# Only generate a new config if no existing local one
- when: not google_auth_config_local.stat.exists # No existing secret
block:
-
# Create new .google_authenticator from vault config if vault defined
- name: Create .google_authenticator file
ansible.builtin.copy:
@@ -86,7 +85,7 @@
#
-# Now we deal with a .google_authernticator, regardless of whether it already existed
+# Now we deal with a .google_authenticator, regardless of whether it already existed
# or was newly created, or was created from a vault config
#
- name: Pulling in /home/{{ username }}/.google_authenticator
@@ -130,6 +129,7 @@
ansible.builtin.set_fact:
google_scratch_codes: "{{ valid_lines | select('match', '^[0-9]{8}$') | list }}"
+# If label or issuer are not set in google_auth_config then the existing default values will be used
- name: Extract label for {{ inventory_hostname }} if it exists
ansible.builtin.set_fact:
google_auth_label: "{{ google_auth_config | selectattr('name', 'equalto', inventory_hostname) | map(attribute='label') | first }}"