Skip to content

Commit

Permalink
authentik: set saltbox fact user/group
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Aug 12, 2024
1 parent ca23dfc commit b35d1a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/authentik/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
instance: "authentik"
keys:
secret_key: "{{ lookup('ansible.builtin.password', '/dev/null', chars=['ascii_letters', 'digits'], length=50) }}"
owner: "{{ user.name }}"
group: "{{ user.name }}"
register: authentik_saltbox_facts

- name: Create Docker container
Expand Down
2 changes: 2 additions & 0 deletions roles/authentik/tasks/subtasks/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@
instance: "authentik"
keys:
api_token: "{{ authentik_admin_token }}"
owner: "{{ user.name }}"
group: "{{ user.name }}"

- name: Retrieve flow instances
ansible.builtin.uri:
Expand Down

0 comments on commit b35d1a4

Please sign in to comment.