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
roles/*
collections/*

View File

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

View File

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

View File

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

View File

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

View File

@ -147,6 +147,3 @@
name: gitea
state: started
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:
- kvm
- libvirt