summaryrefslogtreecommitdiffstats
path: root/roles/bbb/tasks/main.yml
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2025-01-23 09:01:12 -0500
committerSacha Chua <sacha@sachachua.com>2025-01-23 09:01:12 -0500
commit802e2341157a5a6a74022acb49ccf81d4e075deb (patch)
tree8d01cd7f49eb988849882f99049aac2a75d57fe1 /roles/bbb/tasks/main.yml
parent1a75fcb89d54225ae67f34b3a2894e7cf9021815 (diff)
downloademacsconf-ansible-802e2341157a5a6a74022acb49ccf81d4e075deb.tar.xz
emacsconf-ansible-802e2341157a5a6a74022acb49ccf81d4e075deb.zip
bbb role?
Diffstat (limited to '')
-rw-r--r--roles/bbb/tasks/main.yml18
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