Experimenting with Ansible to start managing the configuration of my laptop. I primarily use it for browsing and coding, the occasional light gaming on steam.
To use it for yourself, place necessary vars in vars/main.yml and vars/secret.yml:
---
secret:
user:
name: "username"
comment: "user comment"
password: "changeme"
---
user:
name: "{{ secret.user.name }}"
comment: "{{ secret.user.comment }}"
password: "{{ secret.user.password }}"
paths:
home: "/home/{{ secret.user.name }}"
data: "/home/{{ secret.user.name }}/.data"
- better project name to likely come later
- Refer to Ansible's documentation for ways to store a crypted password in this file