Add user creation for ddns script

This commit is contained in:
Thomas Kleinendorst 2024-04-10 20:09:34 +02:00
parent f29cd352bd
commit fb017565f4
8 changed files with 71 additions and 7 deletions

View file

@ -0,0 +1,14 @@
---
- include_vars: defaults.yml
# TODO: Configure ZSH correctly by reasusing the zsh role by running the commands as the new user.
# see: https://serverfault.com/questions/662443/running-ansible-task-as-a-specific-user
- name: Create a new user
ansible.builtin.include_role:
name: singleplatform-eng.users
apply:
become: true
vars:
users:
- username: cloudflare_ddns
name: '-'
password: "{{ cloudflare_ddns_user_password_hash }}"