40 lines
884 B
YAML
40 lines
884 B
YAML
---
|
|
|
|
- name: install schleuder-web dependencies
|
|
ansible.builtin.apt:
|
|
name:
|
|
- ruby
|
|
- ruby-dev
|
|
- sqlite3
|
|
- haveged
|
|
- libssl-dev
|
|
- acl # only needed so ansible can become_user=schleuder
|
|
|
|
- name: create schleuder group
|
|
ansible.builtin.group:
|
|
name: schleuder
|
|
system: yes
|
|
|
|
- name: create schleuder user
|
|
ansible.builtin.user:
|
|
name: schleuder
|
|
group: schleuder
|
|
home: /var/lib/schleuder
|
|
system: yes
|
|
shell: /usr/sbin/nologin
|
|
|
|
- name: gather service facts
|
|
ansible.builtin.service_facts:
|
|
|
|
- name: stop schleuder service
|
|
ansible.builtin.service:
|
|
name: schleuder
|
|
state: stopped
|
|
when: "'schleuder.service' in ansible_facts.services"
|
|
|
|
- name: install schleuder gem
|
|
become: yes
|
|
become_user: schleuder
|
|
ansible.builtin.command:
|
|
cmd: gem install schleuder
|
|
creates: /var/lib/schleuder-web/schleuder-web
|