From 80d5bb49c334193adb9006fce1347268c794f062 Mon Sep 17 00:00:00 2001
From: lilly
Date: Thu, 30 Apr 2026 23:01:32 +0200
Subject: [PATCH] add role tag to base_config role
---
roles/base_config/tasks/main.yaml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/roles/base_config/tasks/main.yaml b/roles/base_config/tasks/main.yaml
index ab737b7..8d06303 100644
--- a/roles/base_config/tasks/main.yaml
+++ b/roles/base_config/tasks/main.yaml
@@ -1,10 +1,12 @@
# Ensure the ssh module is disabled, so a cloud-init config change doesn't regenerate the host keys for no reason.
-- name: check if cloud-init config file exists
+- tags: ["base_config"]
+ name: check if cloud-init config file exists
ansible.builtin.stat:
path: /etc/cloud/cloud.cfg
register: base_config__stat_cloud_cfg
-- name: ensure the cloud-init ssh module is disabled
+- tags: ["base_config"]
+ name: ensure the cloud-init ssh module is disabled
ansible.builtin.replace:
path: /etc/cloud/cloud.cfg
regexp: " - ssh$"
@@ -13,7 +15,8 @@
when: base_config__stat_cloud_cfg.stat.exists
# Ensure a base set of admin tools is installed.
-- name: ensure a base set of admin tools is installed
+- tags: ["base_config"]
+ name: ensure a base set of admin tools is installed
ansible.builtin.apt:
name:
- vim