Merge "Switch lodgeit to run under a dedicated user"
This commit is contained in:
commit
0645a481d0
@ -1,3 +1,18 @@
|
||||
- name: Create lodgeit group
|
||||
group:
|
||||
name: "lodgeit"
|
||||
gid: "10100"
|
||||
system: yes
|
||||
- name: Create lodgeit user
|
||||
user:
|
||||
name: "lodgeit"
|
||||
group: "lodgeit"
|
||||
uid: "10100"
|
||||
home: "/var/lib/lodgeit"
|
||||
create_home: yes
|
||||
shell: /bin/bash
|
||||
system: yes
|
||||
|
||||
- name: Ensure /etc/lodgeit-compose directory
|
||||
file:
|
||||
state: directory
|
||||
|
@ -25,6 +25,7 @@ services:
|
||||
- mariadb
|
||||
restart: always
|
||||
network_mode: host
|
||||
user: "10100:10100"
|
||||
command: ['/bin/bash', '-c', 'echo "*** Starting"; sleep 30; /usr/local/bin/uwsgi']
|
||||
logging:
|
||||
driver: syslog
|
||||
|
Loading…
Reference in New Issue
Block a user