mirror of
https://github.com/DO1JLR/ansible_role_nginx.git
synced 2024-08-16 16:19:48 +02:00
L3D
7d5e029961
+ Improved some linting + Using FQCN more often + Using absolute path in template copy SOLVE Issue https://github.com/DO1JLR/ansible_role_nginx/issues/2
17 lines
393 B
YAML
17 lines
393 B
YAML
---
|
|
- name: "Create Group {{ nginx__group }}"
|
|
become: true
|
|
ansible.builtin.group:
|
|
name: "{{ nginx__group }}"
|
|
system: true
|
|
state: 'present'
|
|
|
|
- name: "Create user {{ nginx__user }}"
|
|
become: true
|
|
ansible.builtin.user:
|
|
name: "{{ nginx__user }}"
|
|
comment: "NGINX user"
|
|
home: '/var/www'
|
|
groups: "{{ nginx__group }}"
|
|
shell: '/usr/sbin/nologin'
|
|
system: true
|