chore: update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Installation et configuration du frontend et backend
|
||||
hosts: all
|
||||
hosts: uber-stup
|
||||
become: true
|
||||
gather_facts: true
|
||||
|
||||
@@ -94,7 +94,6 @@
|
||||
owner: "{{ user_deploy }}"
|
||||
group: "{{ user_deploy }}"
|
||||
mode: "0755"
|
||||
tags: backend
|
||||
|
||||
- name: Synchroniser le backend Go
|
||||
ansible.builtin.synchronize:
|
||||
@@ -111,6 +110,20 @@
|
||||
recursive: yes
|
||||
tags: backend
|
||||
|
||||
- name: Fix backend ownership after rsync (rsync tourne en root)
|
||||
ansible.builtin.file:
|
||||
path: "{{ backend_dir }}"
|
||||
owner: "{{ user_deploy }}"
|
||||
group: "{{ user_deploy }}"
|
||||
recurse: yes
|
||||
tags: backend
|
||||
|
||||
- name: Remove old binary if owned by another user
|
||||
ansible.builtin.file:
|
||||
path: "{{ backend_dir }}/main"
|
||||
state: absent
|
||||
tags: backend
|
||||
|
||||
- name: Compile backend as deploy user
|
||||
become_user: "{{ user_deploy }}"
|
||||
ansible.builtin.shell: |
|
||||
|
||||
Reference in New Issue
Block a user