-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
72 changed files
with
1,222 additions
and
1,320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.vault_pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
all: | ||
# hosts: | ||
# this is where ungrouped hosts would go | ||
children: | ||
lan: | ||
hosts: | ||
ubuntu-server: | ||
ansible_host: 10.0.0.218 | ||
ubuntu-desktop-beast: | ||
ansible_host: 10.0.0.89 | ||
ubuntu-desktop: | ||
ansible_host: 10.0.0.111 | ||
jason-ubuntu-laptop: | ||
ansible_host: 10.0.0.17 | ||
ubuntu-work-laptop: | ||
ansible_host: 10.0.0.103 | ||
development: | ||
hosts: | ||
ubuntu-server: | ||
ubuntu-desktop-beast: | ||
ubuntu-desktop: | ||
jason-ubuntu-laptop: | ||
ubuntu-work-laptop: | ||
development_gui: | ||
hosts: | ||
ubuntu-desktop: | ||
ubuntu-desktop-beast: | ||
jason-ubuntu-laptop: | ||
ubuntu-work-laptop: | ||
amd: | ||
hosts: | ||
ubuntu-desktop: | ||
ubuntu-server: | ||
nvidia: | ||
hosts: | ||
ubuntu-desktop-beast: | ||
home_jasonernst_com: | ||
hosts: | ||
ubuntu-server: | ||
www_jasonernst_com: | ||
hosts: | ||
www.jasonernst.com: | ||
lp_jasonernst_com: | ||
hosts: | ||
lp.jasonernst.com: | ||
ombi_jasonernst_com: | ||
hosts: | ||
ombi.jasonernst.com: |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
- name: Common Tasks for all Hosts | ||
hosts: all | ||
pre_tasks: | ||
- name: update apt cache if needed | ||
become: true | ||
apt: | ||
update_cache: true | ||
cache_valid_time: 86400 | ||
roles: | ||
- common/user | ||
- common/ssh | ||
- common/software | ||
|
||
- name: Tasks for LAN Hosts | ||
hosts: lan | ||
roles: | ||
- common/lan | ||
|
||
- name: Tasks for WAN hosts | ||
hosts: all, !lan | ||
roles: | ||
- common/wan | ||
|
||
- name: Non-GUI Development Software | ||
hosts: development | ||
roles: | ||
- development/shell | ||
- development/ops | ||
- development/cpp | ||
- development/android | ||
- development/python3 | ||
- development/golang | ||
- development/node | ||
- development/ziglang | ||
|
||
- name: Development Software for GUIs | ||
hosts: development-gui | ||
roles: | ||
- development-gui/ides | ||
- development-gui/tools | ||
|
||
- name: Services for home.jasonernst.com | ||
hosts: home_jasonernst_com | ||
roles: | ||
- home_jasonernst_com/plex | ||
- home_jasonernst_com/transmission | ||
- home_jasonernst_com/flaresolver | ||
- home_jasonernst_com/jackett | ||
- home_jasonernst_com/sonarr | ||
- home_jasonernst_com/radarr | ||
|
||
- name: Services for www.jasonernst.com | ||
hosts: www_jasonernst_com | ||
roles: | ||
- web_common/nginx | ||
- web_common/letsencrypt | ||
- www_jasonernst_com/goblog | ||
|
||
- name: Services for ombi.jasonernst.com | ||
hosts: www_jasonernst_com | ||
roles: | ||
# enable these when ombi moves to its own server | ||
#- web_common/nginx | ||
#- web_common/letsencrypt | ||
- ombi_jasonernst_com/ombi | ||
|
||
- name: AMD GPU related tasks | ||
hosts: amd | ||
roles: | ||
- amd/lolminer | ||
- amd/livepeer | ||
|
||
- name: Nvidia GPU related tasks | ||
hosts: nvidia | ||
roles: | ||
- nvidia/lolminer | ||
- nvidia/livepeer |
18 changes: 1 addition & 17 deletions
18
ansible/roles/mining-amd/tasks/main.yml → ansible/roles/amd/livepeer/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
- name: Deploy lolminer for AMD GPU | ||
tags: mining | ||
vars: | ||
ansible_python_interpreter: "/usr/bin/env python3-docker" | ||
docker_container: | ||
name: lolminer | ||
image: compscidr/lolminer-docker:amd-1.35 | ||
pull: true | ||
restart_policy: unless-stopped | ||
devices: | ||
- "/dev/dri:/dev/dri" | ||
ports: | ||
- 4069:4069 | ||
env: | ||
MACHINE: "{{inventory_hostname}}" |
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
- name: Update the ssh/config with each of the lan node name entries | ||
tags: ssh | ||
blockinfile: | ||
create: yes | ||
path: "/home/jason/.ssh/config" | ||
block: | | ||
Host {{ item }} | ||
Hostname {{ item }} | ||
User jason | ||
IdentityFile ~/.ssh/github_id_rsa | ||
marker: "# {mark} ANSIBLE MANAGED BLOCK {{ item }}" | ||
with_inventory_hostnames: | ||
- lan | ||
|
||
- name: Update the ssh/config with each of the wan node name entries | ||
tags: ssh | ||
blockinfile: | ||
create: yes | ||
path: "/home/jason/.ssh/config" | ||
block: | | ||
Host {{ item }} | ||
Hostname {{ item }} | ||
User jason | ||
IdentityFile ~/.ssh/id_rsa | ||
marker: "# {mark} ANSIBLE MANAGED BLOCK {{ item }}" | ||
with_inventory_hostnames: | ||
- all, !lan |
Oops, something went wrong.