- No longer using web user to copy static content
+ init.yml now creates web user properly
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
state: present
|
||||
|
||||
- name: Install Nginx
|
||||
become: yes
|
||||
become_method: sudo
|
||||
apt:
|
||||
name: nginx
|
||||
update_cache: yes
|
||||
@@ -42,6 +40,20 @@
|
||||
comment: Website maintainer account
|
||||
state: present
|
||||
|
||||
- name: Create /home/web/.ssh directory
|
||||
file:
|
||||
path: /home/web/.ssh
|
||||
state: directory
|
||||
owner: web
|
||||
group: web
|
||||
mode: 0700
|
||||
|
||||
- name: Copy public web key to beta
|
||||
authorized_key:
|
||||
user: web
|
||||
key: "{{ lookup('file', 'files/'+'web.pub') }}"
|
||||
|
||||
|
||||
- name: Create Web root directory under new web account
|
||||
file:
|
||||
path: /var/www
|
||||
|
||||
Reference in New Issue
Block a user