diff --git a/scripts/ansible/README.md b/scripts/ansible/README.md index 78a9d218d8..649de815e6 100644 --- a/scripts/ansible/README.md +++ b/scripts/ansible/README.md @@ -1,23 +1,28 @@ -# Ansible playbook to automatically configure environment for Acto to run a baremetal machine +# Ansible playbook to automatically configure environment for Acto to run on a baremetal machine + To run the script, you first need an `ansible_hosts` file. Each line in the file should contain a worker in your cluster. See https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html for details. An example: + ```ini c220g5-110417.wisc.cloudlab.us ansible_connection=ssh ansible_user=tylergu ansible_port=22 c220g5-110418.wisc.cloudlab.us ansible_connection=ssh ansible_user=tylergu ansible_port=22 ``` -If you haven't installed `ansible playbook` on your control node, run +If you haven't installed `ansible-playbook` on your control node, run + ```sh pip3 install ansible ansible-galaxy collection install ansible.posix ansible-galaxy collection install community.general -``` - -Then just run ``` -bash configure.sh + +Then just run + +```sh +ansible-playbook -i ansible_hosts configure.yaml ``` + and the proper environment will be setup on the workers. diff --git a/scripts/ansible/configure.sh b/scripts/ansible/configure.sh deleted file mode 100644 index 64fff0438d..0000000000 --- a/scripts/ansible/configure.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -ansible-playbook tmpfs.yaml -i ansible_hosts -ansible-playbook go.yaml -i ansible_hosts -ansible-playbook docker.yaml -i ansible_hosts -ansible-playbook python.yaml -i ansible_hosts -ansible-playbook kind.yaml -i ansible_hosts -ansible-playbook kubectl.yaml -i ansible_hosts -ansible-playbook helm.yaml -i ansible_hosts -ansible-playbook sysctl.yaml -i ansible_hosts -ansible-playbook k3d.yaml -i ansible_hosts -ansible-playbook k9s.yaml -i ansible_hosts -ansible-playbook htop.yaml -i ansible_hosts -ansible-playbook acto.yaml -i ansible_hosts