install: move tasks to more fitting files
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
6a9e7381a8
commit
99f41225b2
|
@ -1,4 +1,24 @@
|
|||
---
|
||||
- name: Clone Git repository
|
||||
win_shell: |
|
||||
git --no-pager clone \
|
||||
{{ beacon_node_repo_url }} \
|
||||
{{ beacon_node_repo_path }} \
|
||||
--branch {{ beacon_node_repo_branch }}
|
||||
args:
|
||||
creates: '{{ beacon_node_repo_path }}'
|
||||
|
||||
- name: Update Git repo branch
|
||||
win_shell: |
|
||||
git checkout --force {{ beacon_node_repo_branch }}
|
||||
args:
|
||||
chdir: '{{ beacon_node_repo_path }}'
|
||||
|
||||
- name: Fix repo permissions
|
||||
win_owner:
|
||||
path: '{{ beacon_node_repo_path }}'
|
||||
user: '{{ beacon_node_service_user_name }}'
|
||||
|
||||
- name: Create build script
|
||||
win_template:
|
||||
src: 'build.sh.j2'
|
||||
|
|
|
@ -1,4 +1,32 @@
|
|||
---
|
||||
- name: Create service folders
|
||||
win_file:
|
||||
path: '{{ item }}'
|
||||
state: 'directory'
|
||||
with_items:
|
||||
- '{{ beacon_node_service_path }}'
|
||||
- '{{ beacon_node_service_logs_path }}'
|
||||
- '{{ beacon_node_service_bin_path }}'
|
||||
- '{{ beacon_node_data_path }}'
|
||||
|
||||
- name: Fix service folder permissions
|
||||
win_owner:
|
||||
path: '{{ beacon_node_service_path }}'
|
||||
user: '{{ beacon_node_service_user_name }}'
|
||||
|
||||
- name: Disable inheritance on data dir
|
||||
win_acl_inheritance:
|
||||
path: '{{ beacon_node_data_path }}'
|
||||
state: 'absent'
|
||||
|
||||
- name: Fix data folder ownership
|
||||
win_acl:
|
||||
path: '{{ beacon_node_data_path }}'
|
||||
user: '{{ beacon_node_service_user_name }}'
|
||||
rights: 'FullControl'
|
||||
inherit: 'ContainerInherit, ObjectInherit'
|
||||
type: 'allow'
|
||||
|
||||
- name: Create JWT secret file (optional)
|
||||
when: beacon_node_web3_jwt_secret is defined
|
||||
copy:
|
||||
|
|
|
@ -1,52 +1,4 @@
|
|||
---
|
||||
- name: Create service folders
|
||||
win_file:
|
||||
path: '{{ item }}'
|
||||
state: 'directory'
|
||||
with_items:
|
||||
- '{{ beacon_node_service_path }}'
|
||||
- '{{ beacon_node_service_logs_path }}'
|
||||
- '{{ beacon_node_service_bin_path }}'
|
||||
- '{{ beacon_node_data_path }}'
|
||||
|
||||
- name: Fix service folder permissions
|
||||
win_owner:
|
||||
path: '{{ beacon_node_service_path }}'
|
||||
user: '{{ beacon_node_service_user_name }}'
|
||||
|
||||
- name: Disable inheritance on data dir
|
||||
win_acl_inheritance:
|
||||
path: '{{ beacon_node_data_path }}'
|
||||
state: 'absent'
|
||||
|
||||
- name: Fix data folder ownership
|
||||
win_acl:
|
||||
path: '{{ beacon_node_data_path }}'
|
||||
user: '{{ beacon_node_service_user_name }}'
|
||||
rights: 'FullControl'
|
||||
inherit: 'ContainerInherit, ObjectInherit'
|
||||
type: 'allow'
|
||||
|
||||
- name: Clone Git repository
|
||||
win_shell: |
|
||||
git --no-pager clone \
|
||||
{{ beacon_node_repo_url }} \
|
||||
{{ beacon_node_repo_path }} \
|
||||
--branch {{ beacon_node_repo_branch }}
|
||||
args:
|
||||
creates: '{{ beacon_node_repo_path }}'
|
||||
|
||||
- name: Update Git repo branch
|
||||
win_shell: |
|
||||
git checkout --force {{ beacon_node_repo_branch }}
|
||||
args:
|
||||
chdir: '{{ beacon_node_repo_path }}'
|
||||
|
||||
- name: Fix repo permissions
|
||||
win_owner:
|
||||
path: '{{ beacon_node_repo_path }}'
|
||||
user: '{{ beacon_node_service_user_name }}'
|
||||
|
||||
- name: Install GCC to compile Nim
|
||||
win_shell: 'scoop install --global gcc'
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
- import_tasks: checks.yml
|
||||
- import_tasks: user.yml
|
||||
- import_tasks: install.yml
|
||||
- import_tasks: build.yml
|
||||
- import_tasks: config.yml
|
||||
- import_tasks: build.yml
|
||||
- import_tasks: service.yml
|
||||
- import_tasks: validators.yml
|
||||
when: beacon_node_dist_validators_enabled
|
||||
|
|
Loading…
Reference in New Issue