Compare commits

...
7 Commits
22 changed files with 26 additions and 37 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# ---> Ansible # ---> Ansible
*.retry *.retry
.venv .venv
ssh *.swp
+20
View File
@@ -0,0 +1,20 @@
---
namespace: sertilab
name: infra
version: 0.0.1
readme: README.md
authors:
- Chernetsov Valentin (kurnesay@disroot.org)
description: >-
This collection for homelab projects
license_file: LICENSE
tags:
- linux
- infrastructure
- sertilab
repository: https://git.serti.fun/Kurnesay/sertilab-ansible
build_ignore:
- inventory.yml
- .gitignore
- '*.tar.gz'
-11
View File
@@ -1,11 +0,0 @@
main:
hosts:
wireguard:
ansible_host: 100.222.6.20
ansible_user: ansible
ansible_ssh_private_key_file: ssh/privkey
nextcloud:
ansible_host: 192.168.100.14
ansible_user: ansible
ansible_ssh_private_key_file: ssh/privkey
+2
View File
@@ -0,0 +1,2 @@
---
requires_ansible: '>=2.15'
-14
View File
@@ -1,14 +0,0 @@
---
- name: "Deploy WireGuard"
tags: configure, wireguard
hosts: wireguard
become: true
roles:
- homelab/wireguard
- name: "Deploy NextCloud"
tags: configure, nextcloud
hosts: nextcloud
become: true
roles:
- homelab/nextcloud
@@ -14,14 +14,6 @@ wireguard_clients:
address: 10.0.0.1 address: 10.0.0.1
allowed_ips: 10.0.0.0/24 allowed_ips: 10.0.0.0/24
default_packages: packages:
- vim
- curl
- wget
- qrencode
- tcpdump
- iperf3
wireguard_packages:
- wireguard - wireguard
- wireguard-tools - wireguard-tools
@@ -2,8 +2,8 @@
- name: "Install packages" - name: "Install packages"
ansible.builtin.apt: ansible.builtin.apt:
name: "{{ default_packages + wireguard_packages }}" name: "{{ packages }}"
state: present state: present
update_cache: true update_cache: true
become: true become: true
register: deps_installed register: deps_installed