Skip to content

Commit e1b4b04

Browse files
committed
ci: improve imported playbooks run
1 parent cdbd2d4 commit e1b4b04

File tree

6 files changed

+29
-10
lines changed

6 files changed

+29
-10
lines changed

infra/ansible/playbooks/batcher.yaml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
1-
- import_playbook: setup.yaml
2-
- import_playbook: webserver.yaml
3-
- import_playbook: rust.yaml
4-
- import_playbook: go.yaml
5-
- import_playbook: eigenlayer-cli.yaml
1+
- name: Run setup playbook
2+
ansible.builtin.import_playbook: setup.yaml
3+
vars:
4+
host: batcher
5+
6+
- name: Run webserver playbook
7+
ansible.builtin.import_playbook: webserver.yaml
8+
vars:
9+
host: batcher
10+
11+
- name: Run go playbook
12+
ansible.builtin.import_playbook: go.yaml
13+
vars:
14+
host: batcher
15+
16+
- name: Run rust playbook
17+
ansible.builtin.import_playbook: rust.yaml
18+
vars:
19+
host: batcher
20+
21+
- name: Run eigenlayer-cli playbook
22+
ansible.builtin.import_playbook: eigenlayer-cli.yaml
23+
vars:
24+
host: batcher
625

726
- hosts: batcher
827
vars:

infra/ansible/playbooks/eigenlayer-cli.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- name: Eigenlayer CLI Setup
2-
hosts: all
2+
hosts: "{{ host }}"
33

44
tasks:
55
- name: check if eigenlayer is installed

infra/ansible/playbooks/go.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://everythingcoding.in/go-setup-through-ansible/
22
- name: Go Setup
3-
hosts: all
3+
hosts: "{{ host }}"
44
vars:
55
version: 1.22.2
66

infra/ansible/playbooks/rust.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- name: Rust Setup
2-
hosts: all
2+
hosts: "{{ host }}"
33

44
pre_tasks:
55
- name: update repositories

infra/ansible/playbooks/setup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- hosts: all
1+
- hosts: "{{ host }}"
22

33
tasks:
44
# Install required packages

infra/ansible/playbooks/webserver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
44
#sudo apt update
55
#sudo apt install caddy
6-
- hosts: all
6+
- hosts: "{{ host }}"
77

88
tasks:
99
- name: Allow all access to tcp port 80

0 commit comments

Comments
 (0)