From f399d9c1caddc96d0b64ac00e7ff7446b94aa857 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Thu, 20 Jul 2023 19:21:24 +0200 Subject: [PATCH] Add base tag --- provision.sh | 5 ++++- roles/os_config/tasks/main.yml | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/provision.sh b/provision.sh index a2bab0e..9e828fa 100755 --- a/provision.sh +++ b/provision.sh @@ -6,6 +6,9 @@ usage() { printf '%s\n' "Usage:" printf '$ %s\n' "$0 [-h|--help]" printf '$ %s\n' "$0 [--dry] os" + printf '$ %s\n' "$0 [--dry] base" + printf '$ %s\n' "$0 [--dry] firewall" + printf '$ %s\n' "$0 [--dry] ssh" printf '$ %s\n' "$0 [--dry] docker" printf '$ %s\n' "$0 [--dry] docker_config" printf '$ %s\n' "$0 [--dry] users [-i|--init]" @@ -37,7 +40,7 @@ fi case $TAG in "") install_modules; $BASE_CMD ;; - os|docker|docker_config|firewall|ssh) + os|base|firewall|ssh|docker|docker_config) install_modules; $BASE_CMD --tags "$TAG" ;; users) install_modules diff --git a/roles/os_config/tasks/main.yml b/roles/os_config/tasks/main.yml index 489d968..a0189c7 100644 --- a/roles/os_config/tasks/main.yml +++ b/roles/os_config/tasks/main.yml @@ -7,6 +7,8 @@ - name: Configure system base ansible.builtin.import_tasks: base.yml + tags: + - base - name: Reboot if needed ansible.builtin.import_tasks: reboot.yml