From 14f6145d2de8512909650342b340b024bb0f8e5b Mon Sep 17 00:00:00 2001 From: lavenderguitar Date: Sun, 6 Feb 2022 23:16:12 -0500 Subject: [PATCH] Make a deploy user. --- tasks/deploy_user.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tasks/deploy_user.yml diff --git a/tasks/deploy_user.yml b/tasks/deploy_user.yml new file mode 100644 index 0000000..163d458 --- /dev/null +++ b/tasks/deploy_user.yml @@ -0,0 +1,15 @@ +--- +- name: jekyll_site | Deploy User | Ensure deploy group exists + group: + name: "{{ deploy_group }}" + state: present + become: yes + +- name: jekyll_site | Deploy User | Ensure deploy user exists. + user: + name: "{{ deploy_user }}" + group: "{{ deploy_group }}" + state: present + create_home: yes + shell: /bin/bash + become: yes \ No newline at end of file