servers/roles/netbox/tasks/main.yml
Timotej Lazar 22f363d06a Add postgres role
Or rather rip it out of netbox. Improve DB password handling.
2024-06-05 12:54:55 +02:00

27 lines
450 B
YAML

- name: Install redis
package:
name: redis
- name: Enable redis service
service:
name: redis
enabled: true
state: started
- name: Create group for web service
group:
name: '{{ user }}'
system: yes
- name: Create user for web service
user:
name: '{{ user }}'
group: '{{ user }}'
home: '/srv/{{ user }}'
shell: /bin/sh
system: yes
register: user_info
- name: Set up app
import_tasks: app.yml