Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ https://www.ansible.com/
3. Add hosts to `inventory/inventory.yaml`
4. Assign roles to hosts in `playbooks/`
5. Run `apply-<playbook>.sh` to execute a playbook
- If you use a non-root user and `sudo` requires a password (indicated by the "Missing sudo password" error message), use `apply-<playbook>.sh --ask-become-pass` and specify the password when requested ("BECOME password" message)
- The playbook will set up passwordless `sudo`, so next time the `--ask-become-pass` parameter will not be required
6. When the administrative user is already created, use that user in the inventory instead of `root` (`ansible_user: <adminuser>`). This is more secure and also required by Homebrew.

## Bootstrapping hosts with authentication
Expand Down
3 changes: 2 additions & 1 deletion ansible/bootstrap-ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ install_ansible_on_ubuntu() {
add-apt-repository --yes --update ppa:ansible/ansible
apt-get install --yes --no-install-recommends ansible python3-pip

pip install passlib ansible-lint --break-system-packages
# "--ignore-installed" is added to fix error "Cannot uninstall PyYAML 6.0.1 ... The package was installed by debian."
pip install passlib ansible-lint --ignore-installed --break-system-packages
Comment thread
bubacoder marked this conversation as resolved.
ansible-galaxy install -r "${ANSIBLE_DIR}/requirements.yml"
}

Expand Down
2 changes: 2 additions & 0 deletions ansible/inventory/inventory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ debian:
proxmox:
ansible_host: 192.168.1.50
nas: {}
hive:
ansible_host: 192.168.1.243
nest:
install_storage_packages: true

Expand Down
3 changes: 1 addition & 2 deletions ansible/playbooks/homelab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
hosts:
- nas
- nest
- nest2
- hive
roles:
- role: debian_docker_host

- name: Setup Samba client + developer tools
hosts:
- nest
- nest2
roles:
- role: debian_samba_client
- role: markosamuli.linuxbrew
Expand Down
1 change: 1 addition & 0 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ After setting up the VM, configure the following on the router:
- HTTPS - Port 443 TCP & UDP
- WireGuard - Port 51820 UDP
- Configure the local DNS service to resolve your domain name to the main Docker host. This is to provide uninterrupted DNS name resolution of the local services in case of the internet access fails.
- In AdGuard Home: Filters -> DNS Rewrites -> Add <hostname> AND *.<hostname>

Note: Query and refresh IP configuration on Windows:
```sh
Expand Down
2 changes: 1 addition & 1 deletion proxmox/ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In addition to the previous, this script also configures the installer for unatt
```
ssh root@proxmox "bash -s" -- < create-ubuntu-server-vm.sh
```
- Start the VM and confirm the installation
- Start the VM and confirm the installation ("Continue with autoinstall?" prompt)

**Details:**

Expand Down