initial implementation: common config repo

This commit is contained in:
2026-08-05 08:46:14 -07:00
parent 811086b177
commit 8c585fb355
8 changed files with 60 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
[defaults]
inventory = localhost,
roles_path = ./roles
retry_files_enabled = False
interpreter_python = auto_silent
+4
View File
@@ -0,0 +1,4 @@
---
# Version of the common config repo, rendered into example.conf.
group_version: "common-1.0.0"
+11
View File
@@ -0,0 +1,11 @@
---
# Common playbook. Imported by the node-specific playbook in the local repo;
# can also be run on its own for testing.
- name: Common node configuration
hosts: all
become: true
vars_files:
- group_vars/all.yml
roles:
- role: base_packages
- role: example_config
+6
View File
@@ -0,0 +1,6 @@
---
apt_packages:
- xz-utils
- tree
- nano
+8
View File
@@ -0,0 +1,8 @@
---
- name: Install baseline packages
ansible.builtin.apt:
name: "{{ apt_packages }}"
state: present
update_cache: true
cache_valid_time: 3600
+7
View File
@@ -0,0 +1,7 @@
---
signalytic_config_dir: /etc/signalytic
# Overridden by group_vars/all.yml (common repo) and host_vars.yml (local repo).
group_version: "unset"
host_version: "unset"
+17
View File
@@ -0,0 +1,17 @@
---
- name: Create signalytic config directory
ansible.builtin.file:
path: "{{ signalytic_config_dir }}"
state: directory
owner: root
group: root
mode: "0755"
- name: Render example.conf
ansible.builtin.template:
src: example.conf.j2
dest: "{{ signalytic_config_dir }}/example.conf"
owner: root
group: root
mode: "0644"
@@ -0,0 +1,2 @@
group_version = {{ group_version }}
host_version = {{ host_version }}