servers/roles/netbox/tasks/main.yml

27 lines
450 B
YAML
Raw Normal View History

- 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