Add user creation for ddns script
This commit is contained in:
parent
f29cd352bd
commit
fb017565f4
8 changed files with 71 additions and 7 deletions
14
roles/cloudflare-ddns/tasks/main.yml
Normal file
14
roles/cloudflare-ddns/tasks/main.yml
Normal 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 }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue