Skip to content

Commit 508fc0d

Browse files
committed
docs: make instructions for Ansible consistent here and there
1 parent f909777 commit 508fc0d

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

scripts/ansible/README.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
1-
# Ansible playbook to automatically configure environment for Acto to run a baremetal machine
1+
# Ansible playbook to automatically configure environment for Acto to run on a baremetal machine
2+
23
To run the script, you first need an `ansible_hosts` file. Each line in the file should contain
34
a worker in your cluster. See https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html
45
for details.
56

67
An example:
8+
79
```ini
810
c220g5-110417.wisc.cloudlab.us ansible_connection=ssh ansible_user=tylergu ansible_port=22
911
c220g5-110418.wisc.cloudlab.us ansible_connection=ssh ansible_user=tylergu ansible_port=22
1012
```
1113

12-
If you haven't installed `ansible playbook` on your control node, run
14+
If you haven't installed `ansible-playbook` on your control node, run
15+
1316
```sh
1417
pip3 install ansible
1518
ansible-galaxy collection install ansible.posix
1619
ansible-galaxy collection install community.general
17-
```
18-
19-
Then just run
2020
```
21-
bash configure.sh
21+
22+
Then just run
23+
24+
```sh
25+
ansible-playbook -i ansible_hosts configure.yaml
2226
```
27+
2328
and the proper environment will be setup on the workers.

scripts/ansible/configure.sh

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
#!/bin/bash
2+
3+
cat << EOF
4+
Warning: This configure.sh is being deprecated. Run the following instead:
5+
6+
ansible-playbook -i ansible_hosts configure.yaml
7+
8+
EOF
9+
210
ansible-playbook tmpfs.yaml -i ansible_hosts
311
ansible-playbook go.yaml -i ansible_hosts
412
ansible-playbook docker.yaml -i ansible_hosts

0 commit comments

Comments
 (0)