Add base tag

This commit is contained in:
Sam A. 2023-07-20 19:10:02 +02:00
parent ca73aa5b9b
commit dd1d185b7e
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 6 additions and 3 deletions

View file

@ -6,10 +6,11 @@ usage() {
printf '%s\n' "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] 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]"
printf '$ %s\n' "$0 [--dry] reboot [-f|--force]"
printf '$ %s\n' "$0 [--dry] services [-d|--down] [SINGLE_SERVICE]"
@ -39,7 +40,7 @@ fi
case $TAG in
"")
install_modules; $EXEC "$BASE_CMD" ;;
os|docker|docker_config|firewall|ssh)
os|base|firewall|ssh|docker|docker_config)
install_modules; $EXEC "$BASE_CMD --tags '$TAG'" ;;
users)
install_modules

View file

@ -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