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 index 64fff0438d..d5e70c9d66 100644 --- a/scripts/ansible/configure.sh +++ b/scripts/ansible/configure.sh @@ -1,4 +1,12 @@ #!/bin/bash + +cat << EOF +Warning: This configure.sh is being deprecated. Run the following instead: + + ansible-playbook -i ansible_hosts configure.yaml + +EOF + ansible-playbook tmpfs.yaml -i ansible_hosts ansible-playbook go.yaml -i ansible_hosts ansible-playbook docker.yaml -i ansible_hosts