aboutsummaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorHalfwalker <deano-gitea@areyes.com>2024-12-21 18:43:37 -0700
committerNicholas Johnson <mail@nicholasjohnson.ch>2025-01-29 00:00:00 +0000
commit926ed183259c6bb28245153b70aa6d28ff1f604d160d648e6c4b5fabaf1d029e (patch)
tree30da4b4a6d41782280b0bd21c455dd21a43c4e08cc929870a125776706a57921 /tasks
parent40489e5b26bc741b15bbea5cf2ee634880d40384393bdc319d23c482b89a62c8 (diff)
downloadansible-role-google-authenticator-926ed183259c6bb28245153b70aa6d28ff1f604d160d648e6c4b5fabaf1d029e.tar.gz
ansible-role-google-authenticator-926ed183259c6bb28245153b70aa6d28ff1f604d160d648e6c4b5fabaf1d029e.zip
Minor doc updates in README.md and tasks/main.yml
Diffstat (limited to 'tasks')
-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 }}"