restructuring

This commit is contained in:
Ibrahim Mkusa 2024-11-04 19:05:34 -05:00
parent e3ea26f03d
commit 6587463aa6
12 changed files with 32 additions and 26 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
secrets.yml secrets.yml
roles/*
collections/*

View File

@ -2,3 +2,4 @@
inventory=./inventory inventory=./inventory
remote_user="ansible" remote_user="ansible"
roles_path=./roles roles_path=./roles
collections_path=./collections

View File

@ -1,15 +1,19 @@
[docker]
192.168.2.240
[control] [control]
localhost localhost
[dns] [dns]
192.168.2.236 192.168.2.236
[docker]
192.168.1.236 ansible_user=ansible
[aws] [aws]
aws ansible_user=ubuntu aws ansible_user=ubuntu
[helm]
192.168.1.233 ansible_user=ansible
192.168.1.237 ansible_user=ansible
[dhcp] [dhcp]
192.168.2.191 192.168.2.191
@ -30,4 +34,3 @@ bane ansible_user=ansible ansible_connection=winrm ansible_winrm_transport=basic
[servers:children] [servers:children]
doc doc
aws aws
local

View File

@ -1,5 +1,5 @@
--- ---
- name: installs and setups nginx on hosts - name: installs and setups caddy on hosts
hosts: aws hosts: aws
become: true become: true
vars: vars:

View File

@ -36,23 +36,23 @@
name: "*" name: "*"
state: latest state: latest
- name: Upgrade pihole on dns using docker compose #- name: Upgrade pihole on dns using docker compose
hosts: pihole #hosts: pihole
tasks: #tasks:
- name: pull new images via docker compose #- name: pull new images via docker compose
command: #command:
cmd: docker compose -f pihole_compose.yml pull #cmd: docker compose -f pihole_compose.yml pull
chdir: /home/pollen/pihole #chdir: /home/pollen/pihole
- name: remove the currently running container #- name: remove the currently running container
command: #command:
cmd: docker compose -f pihole_compose.yml down #cmd: docker compose -f pihole_compose.yml down
chdir: /home/pollen/pihole #chdir: /home/pollen/pihole
- name: bring back pihole container #- name: bring back pihole container
command: #command:
cmd: docker compose -f pihole_compose.yml up -d #cmd: docker compose -f pihole_compose.yml up -d
chdir: /home/pollen/pihole #chdir: /home/pollen/pihole
# work in progress for windows host # work in progress for windows host
# - name: Upgrade software on windows hosts # - name: Upgrade software on windows hosts

View File

@ -147,6 +147,3 @@
name: gitea name: gitea
state: started state: started
enabled: yes enabled: yes

View File

@ -0,0 +1,6 @@
---
- name: use Jeff GeerlingGuy's role to install helm
become: true
hosts: helm
roles:
- role: geerlingguy.helm

View File

@ -32,6 +32,3 @@
groups: groups:
- kvm - kvm
- libvirt - libvirt