|
|
@@ -65,7 +65,18 @@
|
|
|
ansible.builtin.systemd_service:
|
|
|
name: "{{ app_container_prefix }}-{{ app_domain }}-fpm-{{ app_php_fpm_port }}"
|
|
|
enabled: true
|
|
|
- state: restarted
|
|
|
+ state: started
|
|
|
+ scope: user
|
|
|
+
|
|
|
+- name: Start mint php-fpm
|
|
|
+ hosts:
|
|
|
+ - ai_translate
|
|
|
+ tasks:
|
|
|
+ - name: Start ai-translate service
|
|
|
+ ansible.builtin.systemd_service:
|
|
|
+ name: "{{ app_container_prefix }}-{{ app_domain }}-worker-mq-ai.translate"
|
|
|
+ enabled: true
|
|
|
+ state: started
|
|
|
scope: user
|
|
|
|
|
|
- name: Setup nginx
|
|
|
@@ -81,6 +92,6 @@
|
|
|
- name: Enable schedule run timer
|
|
|
ansible.builtin.systemd_service:
|
|
|
name: "{{ app_domain }}-scheduler.timer"
|
|
|
- state: restarted
|
|
|
+ state: started
|
|
|
enabled: true
|
|
|
scope: user
|