master
Andrew Wang 1 year ago
parent 9ed7dcf0c3
commit 895d9e3251
  1. 4
      libvirt/README.md
  2. 2
      libvirt/main.yml
  3. 5
      mirror/README.md
  4. 1
      mirror/main.yml
  5. 12
      roles/ssh/tasks/main.yml

@ -58,7 +58,7 @@ and ssh
ssh local@192.168.123.XXX
```
in the machine switch to root and update before installing some packages and cloning the repo
In the vm switch to root, install some packages, and clone the repo.
```
$ sudo su
$ cd
@ -66,7 +66,7 @@ $ apt update && apt upgrade
$ apt install git ansible
$ git clone https://git.csclub.uwaterloo.ca/public/mirror-env.git
```
then enter `mirror-env/mirror` and use the instructions listed there
Then enter `mirror-env/mirror` and follow the instructions there.
## Troubleshooting
```

@ -1,7 +1,7 @@
---
- name: setup mirror vm
hosts: 127.0.0.1
gather_facts: false
gather_facts: no
tasks:
- name: mirbr0 network exists
command: "virsh net-dumpxml mirbr0"

@ -1,2 +1,5 @@
# Mirror Playbook
This playbook will be run inside a vm to set up the mirror's services
This playbook will be run inside a vm to set up the mirror's services
```
ansible-playbook main.yml
```

@ -1,5 +1,6 @@
- name: setup mirror vm
hosts: 127.0.0.1
gather_facts: no
roles:
- "../roles/system"
- "../roles/mirror"

@ -30,12 +30,12 @@
-N ""
creates: /etc/ssh/{{ item.file }}
loop:
- { file: ssh_host_dsa_key, type: dsa }
- { file: ssh_host_ecdsa_key, type: ecdsa }
- { file: ssh_host_ed25519_key, type: ed25519 }
- { file: ssh_host_rsa_key, type: rsa }
- { file: ssh_mirror_ed25519_key, type: ed25519 }
- { file: ssh_mirror_rsa_key, type: rsa }
- { file: ssh_host_dsa_key, type: dsa }
- { file: ssh_host_ecdsa_key, type: ecdsa }
- { file: ssh_host_ed25519_key, type: ed25519 }
- { file: ssh_host_rsa_key, type: rsa }
- { file: ssh_mirror_host_ed25519_key, type: ed25519 }
- { file: ssh_mirror_host_rsa_key, type: rsa }
- name: create .ssh for mirror and push
file:

Loading…
Cancel
Save