restructuring
This commit is contained in:
parent
e3ea26f03d
commit
6587463aa6
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
||||
secrets.yml
|
||||
roles/*
|
||||
collections/*
|
||||
|
@ -2,3 +2,4 @@
|
||||
inventory=./inventory
|
||||
remote_user="ansible"
|
||||
roles_path=./roles
|
||||
collections_path=./collections
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: installs and setups nginx on hosts
|
||||
- name: installs and setups caddy on hosts
|
||||
hosts: aws
|
||||
become: true
|
||||
vars:
|
@ -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
|
@ -147,6 +147,3 @@
|
||||
name: gitea
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
|
||||
|
6
playbooks/helm/install_helm.yaml
Normal file
6
playbooks/helm/install_helm.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: use Jeff GeerlingGuy's role to install helm
|
||||
become: true
|
||||
hosts: helm
|
||||
roles:
|
||||
- role: geerlingguy.helm
|
@ -32,6 +32,3 @@
|
||||
groups:
|
||||
- kvm
|
||||
- libvirt
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user