Skip to content
This repository was archived by the owner on Aug 21, 2022. It is now read-only.

Commit 3453efc

Browse files
committed
refactor: setup sudo permissions for nginx
1 parent 940acec commit 3453efc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tasks/steps/setup.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# This task list sets up Nginx during server setup
22
---
3+
- name: Ensure stackhead user can reload nginx
4+
blockinfile:
5+
path: '/etc/sudoers.d/stackhead'
6+
block: |
7+
%stackhead ALL= NOPASSWD: /bin/systemctl reload nginx
8+
mode: 0440
9+
create: yes
10+
state: present
11+
validate: 'visudo -cf %s'
312
- name: Deploy additional h5bp Nginx files
413
synchronize:
514
src: "{{ module_role_path | default(role_path) }}/vendor/server-configs-nginx/h5bp"

0 commit comments

Comments
 (0)