Skip to content

Commit

Permalink
Merge pull request #25 from lambchop4prez/deprecate-workstation-playbook
Browse files Browse the repository at this point in the history
Removing workstation playbook. Add deprecation notice
  • Loading branch information
lambchop4prez authored Sep 24, 2023
2 parents 5692e89 + 0f2e8dc commit 5287d30
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 394 deletions.
18 changes: 0 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
bin/**
lib/**
.terraform
.secrets.env
secrets.yaml

# Local .terraform directories
**/.terraform/*
Expand Down Expand Up @@ -40,21 +38,5 @@ override.tf.json
.terraformrc
terraform.rc

# vscode-sops
.decrypted~*.yaml
.config.env

key.txt

# ansible dependencies

xanmanning.k3s*
elliotweiser.osx-command-line-tools*
geerlingguy.dotfiles*
ansible-role-k3s

# ansible collections
provision/ansible/collections

# NodeJS cruft
node_modules
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

6 changes: 0 additions & 6 deletions .sops.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ Infrastructure as code for my network.

The following Ansible playbooks are defined for various purposes.

### Workstations

This keeps my Macbook and Mac Mini synchronized in terms of installed applications and configuration.

To quickly run the playbook, run:

```sh
task playbook:workstation -- --limit 'workstation:<host>'
```

### GPC

GPC is a single-node proxmox instance which acts as both a Hypervisor and NAS.
Expand Down
12 changes: 0 additions & 12 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,11 @@ includes:
# servonet: .taskfiles/servonet.yaml

tasks:

ping:
desc: Pings all nodes in inventory
cmds:
- ansible workstations -i {{.INVENTORY}} --one-line -m 'ping' {{.CLI_ARGS}}

ansible:deps:
desc: Installs ansible dependencies
dir: provision/ansible
cmds:
- ansible-galaxy install -r requirements.yaml --force

playbook:workstation:
desc: Runs the workstation playbook, use args to pass in additional arguments
cmds:
- ansible-playbook {{.PLAYBOOK_DIR}}/workstation.yml --ask-become-pass {{.CLI_ARGS}}

default:
silent: true
cmds:
Expand Down
179 changes: 0 additions & 179 deletions provision/ansible/inventory/group_vars/workstations.yaml

This file was deleted.

22 changes: 4 additions & 18 deletions provision/ansible/inventory/hosts.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
---
local:
hosts:
workstation:
ansible_connection: local
workstations:
hosts:
rudy:
ansible_host: rudy.lan
ansible_connection: local
jocelyn:
ansible_host: jocelyn.lan
ansible_connection: local
hypervisors:
hosts:
gypsy:
ansible_host: gypsy.lan
gpc:
ansible_host: gpc.lan
media:
hosts:
# cambot:
# ansible_host: cambot.lan
# ansible_user: root
cambot:
ansible_host: cambot.lan
ansible_user: root
cambot-2:
ansible_host: cambot-2.lan
ansible_user: root
routers:
hosts:
crow:
ansible_host: 10.4.20.1
ansible_host: crow.lan
31 changes: 3 additions & 28 deletions provision/ansible/playbooks/workstation.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
- name: MacOS workstation setup
hosts: workstations
become: true
become_user: tmc
gather_facts: true

pre_tasks:
- name: Pausing for 3 seconds...
ansible.builtin.pause:
seconds: 3

roles:
- role: elliotweiser.osx-command-line-tools
- role: geerlingguy.mac.homebrew
tags: ["homebrew"]
- role: geerlingguy.dotfiles
when: configure_dotfiles
tags: ["dotfiles"]
# - role: geerlingguy.mac.mas
# when: mas_installed_apps or mas_installed_app_ids
# tags: ['mas']
- role: geerlingguy.mac.dock
when: configure_dock
tags: ["dock"]
- role: workstation.macos
tags: ["workstation"]
- role: workstation.dev
tags: ["workstation.dev"]
# DEPRECATED
# I have replaced this playbook with my dotfiles repo and dotbot
# https://github.com/lambchop4prez/dotfiles
10 changes: 0 additions & 10 deletions provision/ansible/requirements.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions provision/ansible/roles/workstation.dev/tasks/main.yml

This file was deleted.

17 changes: 0 additions & 17 deletions provision/ansible/roles/workstation.macos/files/.zshrc.j2

This file was deleted.

Loading

0 comments on commit 5287d30

Please sign in to comment.