From e1c45e45c9ee0004cf1200724d45c855ed18ad8c Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Fri, 7 Jul 2023 23:21:03 +0200 Subject: [PATCH] Add options and tags --- provision.sh | 3 ++- roles/os_config/tasks/main.yml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/provision.sh b/provision.sh index c0ee697..a2bab0e 100755 --- a/provision.sh +++ b/provision.sh @@ -7,6 +7,7 @@ usage() { printf '$ %s\n' "$0 [-h|--help]" printf '$ %s\n' "$0 [--dry] os" printf '$ %s\n' "$0 [--dry] docker" + printf '$ %s\n' "$0 [--dry] docker_config" printf '$ %s\n' "$0 [--dry] users [-i|--init]" printf '$ %s\n' "$0 [--dry] reboot [-f|--force]" printf '$ %s\n' "$0 [--dry] services [-d|--down] [SINGLE_SERVICE]" @@ -36,7 +37,7 @@ fi case $TAG in "") install_modules; $BASE_CMD ;; - os|docker) + os|docker|docker_config|firewall|ssh) 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 588c061..489d968 100644 --- a/roles/os_config/tasks/main.yml +++ b/roles/os_config/tasks/main.yml @@ -15,6 +15,10 @@ - name: Configure firewall ansible.builtin.import_tasks: firewall.yml + tags: + - firewall - name: Configure SSH ansible.builtin.import_tasks: ssh.yml + tags: + - ssh