diff options
author | Sacha Chua <sacha@sachachua.com> | 2025-01-23 09:01:12 -0500 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2025-01-23 09:01:12 -0500 |
commit | 802e2341157a5a6a74022acb49ccf81d4e075deb (patch) | |
tree | 8d01cd7f49eb988849882f99049aac2a75d57fe1 /roles/bbb/tasks/main.yml | |
parent | 1a75fcb89d54225ae67f34b3a2894e7cf9021815 (diff) | |
download | emacsconf-ansible-802e2341157a5a6a74022acb49ccf81d4e075deb.tar.xz emacsconf-ansible-802e2341157a5a6a74022acb49ccf81d4e075deb.zip |
bbb role?
Diffstat (limited to '')
-rw-r--r-- | roles/bbb/tasks/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/bbb/tasks/main.yml b/roles/bbb/tasks/main.yml new file mode 100644 index 0000000..1a4b115 --- /dev/null +++ b/roles/bbb/tasks/main.yml @@ -0,0 +1,18 @@ +--- +- name: Create group + group: + name: "{{ emacsconf_group }}" + state: present +- name: Create user + user: + name: "{{ emacsconf_user }}" + group: "{{ emacsconf_group }}" + state: present +- name: Add public key for authorized access + ansible.posix.authorized_key: + user: "{{ emacsconf_user }}" + state: present + key: '{{ item }}' + with_file: + - ../../base/files/keys/sachac + - ../../base/files/keys/orga |