mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
first commit
This commit is contained in:
5
ansible/ansible.cfg
Normal file
5
ansible/ansible.cfg
Normal file
@@ -0,0 +1,5 @@
|
||||
[defaults]
|
||||
inventory = inventory/hosts.yml
|
||||
roles_path = roles
|
||||
host_key_checking = False
|
||||
retry_files_enabled = False
|
||||
1
ansible/inventory/group_vars/all.yml
Normal file
1
ansible/inventory/group_vars/all.yml
Normal file
@@ -0,0 +1 @@
|
||||
# common variables
|
||||
1
ansible/inventory/group_vars/desktop.yml
Normal file
1
ansible/inventory/group_vars/desktop.yml
Normal file
@@ -0,0 +1 @@
|
||||
# desktop profile variables
|
||||
1
ansible/inventory/group_vars/server.yml
Normal file
1
ansible/inventory/group_vars/server.yml
Normal file
@@ -0,0 +1 @@
|
||||
# server profile variables
|
||||
1
ansible/inventory/group_vars/ubuntu.yml
Normal file
1
ansible/inventory/group_vars/ubuntu.yml
Normal file
@@ -0,0 +1 @@
|
||||
# variables for Ubuntu hosts
|
||||
1
ansible/inventory/group_vars/void.yml
Normal file
1
ansible/inventory/group_vars/void.yml
Normal file
@@ -0,0 +1 @@
|
||||
# variables for Void Linux hosts
|
||||
1
ansible/inventory/group_vars/workstation.yml
Normal file
1
ansible/inventory/group_vars/workstation.yml
Normal file
@@ -0,0 +1 @@
|
||||
# workstation profile variables
|
||||
1
ansible/inventory/host_vars/deadalus.yml
Normal file
1
ansible/inventory/host_vars/deadalus.yml
Normal file
@@ -0,0 +1 @@
|
||||
# deadalus specific variables
|
||||
1
ansible/inventory/host_vars/ikaros.yml
Normal file
1
ansible/inventory/host_vars/ikaros.yml
Normal file
@@ -0,0 +1 @@
|
||||
# ikaros specific variables
|
||||
1
ansible/inventory/host_vars/nymph.yml
Normal file
1
ansible/inventory/host_vars/nymph.yml
Normal file
@@ -0,0 +1 @@
|
||||
# nymph specific variables
|
||||
1
ansible/inventory/host_vars/prometheus.yml
Normal file
1
ansible/inventory/host_vars/prometheus.yml
Normal file
@@ -0,0 +1 @@
|
||||
# prometheus specific variables
|
||||
24
ansible/inventory/hosts.yml
Normal file
24
ansible/inventory/hosts.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
all:
|
||||
children:
|
||||
void:
|
||||
hosts:
|
||||
ikaros:
|
||||
nymph:
|
||||
|
||||
ubuntu:
|
||||
hosts:
|
||||
deadalus:
|
||||
prometheus:
|
||||
|
||||
desktop:
|
||||
hosts:
|
||||
ikaros:
|
||||
nymph:
|
||||
|
||||
workstation:
|
||||
hosts:
|
||||
deadalus:
|
||||
|
||||
server:
|
||||
hosts:
|
||||
prometheus:
|
||||
0
ansible/roles/.gitkeep
Normal file
0
ansible/roles/.gitkeep
Normal file
0
ansible/roles/base/.gitkeep
Normal file
0
ansible/roles/base/.gitkeep
Normal file
1
ansible/roles/base/tasks/main.yml
Normal file
1
ansible/roles/base/tasks/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
# base role tasks
|
||||
0
ansible/roles/dotfiles/.gitkeep
Normal file
0
ansible/roles/dotfiles/.gitkeep
Normal file
1
ansible/roles/dotfiles/tasks/main.yml
Normal file
1
ansible/roles/dotfiles/tasks/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
# dotfiles deployment tasks
|
||||
0
ansible/roles/packages_ubuntu/.gitkeep
Normal file
0
ansible/roles/packages_ubuntu/.gitkeep
Normal file
1
ansible/roles/packages_ubuntu/tasks/main.yml
Normal file
1
ansible/roles/packages_ubuntu/tasks/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
# install packages with apt
|
||||
0
ansible/roles/packages_void/.gitkeep
Normal file
0
ansible/roles/packages_void/.gitkeep
Normal file
1
ansible/roles/packages_void/tasks/main.yml
Normal file
1
ansible/roles/packages_void/tasks/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
# install packages with xbps
|
||||
0
ansible/roles/profile_desktop_i3/.gitkeep
Normal file
0
ansible/roles/profile_desktop_i3/.gitkeep
Normal file
1
ansible/roles/profile_desktop_i3/tasks/main.yml
Normal file
1
ansible/roles/profile_desktop_i3/tasks/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
# desktop profile tasks
|
||||
0
ansible/roles/profile_server/.gitkeep
Normal file
0
ansible/roles/profile_server/.gitkeep
Normal file
1
ansible/roles/profile_server/tasks/main.yml
Normal file
1
ansible/roles/profile_server/tasks/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
# server profile tasks
|
||||
0
ansible/roles/profile_workstation_gnome/.gitkeep
Normal file
0
ansible/roles/profile_workstation_gnome/.gitkeep
Normal file
1
ansible/roles/profile_workstation_gnome/tasks/main.yml
Normal file
1
ansible/roles/profile_workstation_gnome/tasks/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
# workstation profile tasks
|
||||
0
ansible/roles/services_runit/.gitkeep
Normal file
0
ansible/roles/services_runit/.gitkeep
Normal file
1
ansible/roles/services_runit/tasks/main.yml
Normal file
1
ansible/roles/services_runit/tasks/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
# enable runit services
|
||||
0
ansible/roles/services_systemd/.gitkeep
Normal file
0
ansible/roles/services_systemd/.gitkeep
Normal file
1
ansible/roles/services_systemd/tasks/main.yml
Normal file
1
ansible/roles/services_systemd/tasks/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
# enable systemd services
|
||||
31
ansible/site.yml
Normal file
31
ansible/site.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
- name: Converge all machines
|
||||
hosts: all
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- base
|
||||
|
||||
- role: packages_void
|
||||
when: "'void' in group_names"
|
||||
|
||||
- role: packages_ubuntu
|
||||
when: "'ubuntu' in group_names"
|
||||
|
||||
- role: services_runit
|
||||
when: "'void' in group_names"
|
||||
|
||||
- role: services_systemd
|
||||
when: "'ubuntu' in group_names"
|
||||
|
||||
- role: profile_desktop_i3
|
||||
when: "'desktop' in group_names"
|
||||
|
||||
- role: profile_workstation_gnome
|
||||
when: "'workstation' in group_names"
|
||||
|
||||
- role: profile_server
|
||||
when: "'server' in group_names"
|
||||
|
||||
- role: dotfiles
|
||||
become: false
|
||||
Reference in New Issue
Block a user