Commit fd657219 authored by Ralph Giles's avatar Ralph Giles

Add user creation.

Add a list of users to create accounts for. Installs ssh public
keys from `$user.sshkey` files in a local `keys` directory.

These files are not currently checked into the repository,
since we're unsure about publishing them.
parent 7be142d7
# Ansible playbook for mf4.xiph.org.
- name: Configure storage
- name: Configure motherfish
# Run the remaining steps on the target instance.
hosts: mf4.xiph.org
remote_user: root
# Users to maintain accounts for.
vars:
users:
- xiphmont
- giles
- epirat
# Debian installer defaults to `lvm` for the volume group name.
vg: lvm
......@@ -51,3 +57,14 @@
fstype: ext4
opts: defaults,errors=remount-ro
passno: 2
- name: user accounts
user:
name: "{{ item }}"
loop: "{{ users }}"
- name: ssh key access
authorized_key:
user: "{{ item }}"
key: "{{ lookup('file', 'keys/{{ item }}.sshkey') }}"
loop: "{{ users }}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment