summaryrefslogtreecommitdiffstats
path: root/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/main.yml')
-rw-r--r--tasks/main.yml26
1 files changed, 13 insertions, 13 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 14ff81e..4ffde51 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,31 +1,31 @@
---
# tasks file for MicroJoe.staticwebsite
-- name: Make sure {{ upload_user }} user exists
+- name: Make sure {{ nginx_upload_user }} user exists
user:
- name: "{{ upload_user }}"
- group: "{{ upload_group }}"
+ name: "{{ nginx_upload_user }}"
+ group: "{{ nginx_upload_group }}"
-- name: Make sure {{ upload_user }} has .ssh directory
+- name: Make sure {{ nginx_upload_user }} has .ssh directory
file:
- path: "/home/{{ upload_user }}/.ssh"
+ path: "/home/{{ nginx_upload_user }}/.ssh"
state: directory
- owner: "{{ upload_user }}"
- group: "{{ upload_group }}"
+ owner: "{{ nginx_upload_user }}"
+ group: "{{ nginx_upload_group }}"
-- name: Make sure {{ upload_user }} has .ssh/authorized_keys file
+- name: Make sure {{ nginx_upload_user }} has .ssh/authorized_keys file
copy:
src: ~/.ssh/id_rsa.pub
- dest: "/home/{{ upload_user }}/.ssh/authorized_keys"
- owner: "{{ upload_user }}"
- group: "{{ upload_group }}"
+ dest: "/home/{{ nginx_upload_user }}/.ssh/authorized_keys"
+ owner: "{{ nginx_upload_user }}"
+ group: "{{ nginx_upload_group }}"
- name: Make sure root directory {{ nginx_root }} exists
file:
path: "{{ nginx_root }}"
state: directory
- owner: "{{ upload_user }}"
- group: "{{ upload_group }}"
+ owner: "{{ nginx_upload_user }}"
+ group: "{{ nginx_upload_group }}"
- name: Install nginx configuration file {{ nginx_filename }}
template: