--- - 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 }}"