Skip to content

Commit a4ea64a

Browse files
committed
fix: remove service variables
1 parent 077cccc commit a4ea64a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

infra/ansible/playbooks/batcher.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
host: batcher
2525

2626
- hosts: batcher
27-
vars:
28-
service: "batcher"
2927

3028
tasks:
3129
# Install required packages
@@ -43,7 +41,7 @@
4341
# Create directories for each service
4442
- name: Create directories for each service if do not exist
4543
ansible.builtin.file:
46-
path: /home/{{ ansible_user }}/repos/{{ service }}
44+
path: /home/{{ ansible_user }}/repos/batcher
4745
state: directory
4846
mode: '0755'
4947
owner: '{{ ansible_user }}'
@@ -53,21 +51,21 @@
5351
- name: Clone Aligned repository
5452
ansible.builtin.git:
5553
repo: https://github.com/yetanotherco/aligned_layer.git
56-
dest: /home/{{ ansible_user }}/repos/{{ service }}/aligned_layer
54+
dest: /home/{{ ansible_user }}/repos/batcher/aligned_layer
5755
version: batcher_ansible
5856
recursive: false
5957

6058
# Build the batcher
6159
- name: Install deps
6260
make:
63-
chdir: /home/{{ ansible_user }}/repos/{{ service }}/aligned_layer
61+
chdir: /home/{{ ansible_user }}/repos/batcher/aligned_layer
6462
target: deps
6563
environment:
6664
PATH: "{{ ansible_env.PATH }}:/usr/local/go/bin:/home/{{ ansible_user }}/.cargo/bin"
6765

6866
- name: Install batcher
6967
make:
70-
chdir: /home/{{ ansible_user }}/repos/{{ service }}/aligned_layer
68+
chdir: /home/{{ ansible_user }}/repos/batcher/aligned_layer
7169
target: install_batcher
7270
environment:
7371
PATH: "{{ ansible_env.PATH }}:/usr/local/go/bin:/home/{{ ansible_user }}/.cargo/bin"

0 commit comments

Comments
 (0)