Added docs
This commit is contained in:
@@ -72,17 +72,13 @@
|
||||
groups: mock
|
||||
append: yes
|
||||
|
||||
- name: Delete previously cloned project
|
||||
ansible.builtin.file:
|
||||
path: "/home/mockgui/mock-gui"
|
||||
state: absent
|
||||
|
||||
- name: Clone project to the mockgui
|
||||
ansible.builtin.git:
|
||||
repo: https://dev.brepo.ru/brepo/mock-gui.git
|
||||
dest: /home/mockgui/mock-gui
|
||||
single_branch: yes
|
||||
version: master
|
||||
ignore_errors: true
|
||||
|
||||
- name: Add ccache to PATH
|
||||
ansible.builtin.lineinfile:
|
||||
@@ -99,10 +95,7 @@
|
||||
group: mockgui
|
||||
|
||||
- name: Install needed ruby gems
|
||||
ansible.builtin.command: /opt/brepo/ruby33/bin/bundle install
|
||||
become: yes
|
||||
become_user: mockgui
|
||||
become_method: su
|
||||
ansible.builtin.command: su - mockgui -c "cd /home/mockgui/mock-gui; /opt/brepo/ruby33/bin/bundle install"
|
||||
args:
|
||||
chdir: /home/mockgui/mock-gui
|
||||
register: myout
|
||||
@@ -111,10 +104,7 @@
|
||||
|
||||
|
||||
- name: Create database
|
||||
ansible.builtin.command: /opt/brepo/ruby33/bin/bundle exec sequel -m db/migrations sqlite://db/workbase.sqlite3
|
||||
become: yes
|
||||
become_user: mockgui
|
||||
become_method: su
|
||||
ansible.builtin.command: su - mockgui -c "cd /home/mockgui/mock-gui; /opt/brepo/ruby33/bin/bundle exec sequel -m db/migrations sqlite://db/workbase.sqlite3"
|
||||
args:
|
||||
chdir: /home/mockgui/mock-gui
|
||||
register: myout
|
||||
@@ -124,8 +114,10 @@
|
||||
|
||||
- name: Copy systemd service file to server
|
||||
ansible.builtin.copy:
|
||||
remote_src: true
|
||||
src: /home/mockgui/mock-gui/mockgui.service
|
||||
dest: /etc/systemd/system
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
|
||||
Reference in New Issue
Block a user