Skip to content

Commit

Permalink
docs: make instructions for Ansible consistent here and there
Browse files Browse the repository at this point in the history
  • Loading branch information
whentojump committed Aug 2, 2023
1 parent f04010b commit 3aad0a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
17 changes: 11 additions & 6 deletions scripts/ansible/README.md
Original file line number Diff line number Diff line change
@@ -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.
13 changes: 0 additions & 13 deletions scripts/ansible/configure.sh

This file was deleted.

0 comments on commit 3aad0a6

Please sign in to comment.