Add SCAENAE role (git pull)
This commit is contained in:
34
roles/scaenae/tasks/main.yml
Normal file
34
roles/scaenae/tasks/main.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
- name: Ensure ACL is installed
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- acl
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Ensure git is installed
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- git
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Pull from manifest repo
|
||||
ansible.builtin.git:
|
||||
repo: "{{ scaenae_repo_url }}"
|
||||
dest: /opt/aton/wapps/scaenae
|
||||
update: true
|
||||
clone: false
|
||||
version: master
|
||||
become: true
|
||||
# To be changed!!
|
||||
become_user: nicolo
|
||||
|
||||
- name: Install Yarn dependencies based on package.json
|
||||
community.general.yarn:
|
||||
path: /opt/aton/wapps/scaenae
|
||||
executable: "{{ yarn_exec }}"
|
||||
production: true
|
||||
become: true
|
||||
# To be changed!!
|
||||
become_user: nicolo
|
||||
Reference in New Issue
Block a user