Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f5a2525bb
|
||
|
|
427826c0c7
|
||
|
|
7992a7e724
|
||
|
|
cebdc0f66d | ||
|
|
db2674df8b | ||
|
|
28d52d6dfb | ||
|
|
d4dee416c3 |
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
# ---> Ansible
|
# ---> Ansible
|
||||||
*.retry
|
*.retry
|
||||||
.venv
|
.venv
|
||||||
ssh
|
*.swp
|
||||||
|
|||||||
+20
@@ -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'
|
||||||
@@ -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
|
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
requires_ansible: '>=2.15'
|
||||||
@@ -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
|
||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
- 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
|
||||||
Reference in New Issue
Block a user