Add options and tags

This commit is contained in:
Sam A. 2023-07-07 23:21:03 +02:00
parent c1c18a628c
commit e1c45e45c9
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 6 additions and 1 deletions

View file

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

View file

@ -15,6 +15,10 @@
- name: Configure firewall - name: Configure firewall
ansible.builtin.import_tasks: firewall.yml ansible.builtin.import_tasks: firewall.yml
tags:
- firewall
- name: Configure SSH - name: Configure SSH
ansible.builtin.import_tasks: ssh.yml ansible.builtin.import_tasks: ssh.yml
tags:
- ssh