feat: initial playbook, group_vars, README

This commit is contained in:
Artemis
2026-05-21 12:24:55 -04:00
commit 5583c6d67c
3 changed files with 116 additions and 0 deletions

71
local.yml Normal file
View File

@@ -0,0 +1,71 @@
---
- hosts: localhost
connection: local
become: true
tasks:
- name: Print start message
debug:
msg: "Ansible Pull baseline running on {{ ansible_hostname }} ({{ inventory_hostname }})"
- name: Ensure apt packages are updated
apt:
update_cache: yes
cache_valid_time: 3600
when: ansible_os_family == "Debian"
tags: [baseline]
- name: Ensure common packages installed
apt:
name:
- curl
- git
- htop
- tmux
- jq
- vim
state: present
when: ansible_os_family == "Debian"
tags: [baseline]
# --- Artemis-specific placeholder ---
- name: Ensure Artemis monitoring packages
apt:
name:
- nethogs
- iotop
state: present
when: inventory_hostname == "Artemis"
tags: [artemis]
# --- Mark44 GPU node placeholder ---
- name: Ensure GPU node tools
package:
name:
- nvidia-smi
state: present
when: inventory_hostname == "mk44"
ignore_errors: true
tags: [gpu]
# --- Mark5 laptop node placeholder ---
- name: Ensure laptop power management (example)
package:
name:
- powertop
state: present
when: inventory_hostname == "mk5"
ignore_errors: true
tags: [laptop]
# --- Bones headless placeholder ---
- name: Ensure headless essentials
apt:
name:
- cpufrequtils
state: present
when: inventory_hostname == "bones"
tags: [bones]
- name: Print completion message
debug:
msg: "Baseline complete on {{ ansible_hostname }}"