|
|
@ -3,24 +3,8 @@ |
|
|
|
## Usage |
|
|
|
## Usage |
|
|
|
|
|
|
|
|
|
|
|
Boot the live iso and set a root password, something simple is fine as it's |
|
|
|
Boot the live iso and set a root password, something simple is fine as it's |
|
|
|
changed to key based auth anyway. Find the ip address (e.g. by `ip a`) and |
|
|
|
changed to key based auth anyway. To run the playbook: |
|
|
|
add to `inventory/hosts.yml` under the `all` group. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Before running any playbook, generate a new SSH key-pair: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bash |
|
|
|
|
|
|
|
$ ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N "" |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Now run the `install` playbook: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bash |
|
|
|
|
|
|
|
$ ansible-playbook install.yml -k |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When the `install` playbook finishes, wait for the restart. Then find the new |
|
|
|
|
|
|
|
ip address and put in the inventory file under the `all` group. Then run: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bash |
|
|
|
```bash |
|
|
|
$ ansible-playbook configure.yml |
|
|
|
$ ./ansible.sh |
|
|
|
``` |
|
|
|
``` |
|
|
|