Skip to content

Commit

Permalink
aisloader-composer: Update oci inventory, avoid using reserved variab…
Browse files Browse the repository at this point in the history
…le name in playbooks

Signed-off-by: Aaron Wilson <[email protected]>
  • Loading branch information
aaronnw committed Nov 22, 2023
1 parent a16b602 commit ea13467
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion bench/tools/aisloader-composer/install_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ source common.sh
PLAYBOOK=playbooks/install_docker.yaml
HOST_GROUP=aisloader_hosts

run_ansible_playbook "$PLAYBOOK" "hosts=$HOST_GROUP"
run_ansible_playbook "$PLAYBOOK" "docker_hosts=$HOST_GROUP"
32 changes: 16 additions & 16 deletions bench/tools/aisloader-composer/inventory/oci.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# The hosts where the aisloader clients will run
aisloader_hosts:
hosts:
aisloader00:
aisloader1:
ansible_host: 10.51.140.6
aisloader2:
ansible_host: 10.51.140.10
aisloader3:
ansible_host: 10.51.140.9
aisloader4:
ansible_host: 10.51.140.21
aisloader5:
ansible_host: 10.51.140.23
aisloader01:
aisloader6:
ansible_host: 10.51.140.11
aisloader7:
ansible_host: 10.51.140.24
aisloader8:
ansible_host: 10.51.140.28
aisloader02:
ansible_host: 10.51.140.16
aisloader03:
ansible_host: 10.51.140.21
aisloader04:
ansible_host: 10.51.140.9
aisloader05:
aisloader9:
ansible_host: 10.51.140.15
aisloader06:
aisloader10:
ansible_host: 10.51.140.8
aisloader07:
ansible_host: 10.51.140.20
aisloader08:
ansible_host: 10.51.140.24
aisloader09:
ansible_host: 10.51.140.17

target_hosts:
hosts:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Based on https://www.digitalocean.com/community/tutorials/how-to-use-ansible-to-install-and-set-up-docker-on-ubuntu-20-04
- name: Install docker on defined hosts
hosts: "{{ hosts }}"
hosts: "{{ docker_hosts }}"
become: true
gather_facts: no

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Install Docker on defined hosts
hosts: "{{ hosts }}"
hosts: "{{ docker_hosts }}"
become: true
gather_facts: no
vars:
Expand Down

0 comments on commit ea13467

Please sign in to comment.