Add base tag
This commit is contained in:
parent
ca73aa5b9b
commit
dd1d185b7e
|
@ -6,10 +6,11 @@ usage() {
|
||||||
printf '%s\n' "Usage:"
|
printf '%s\n' "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] base"
|
||||||
printf '$ %s\n' "$0 [--dry] docker_config"
|
|
||||||
printf '$ %s\n' "$0 [--dry] firewall"
|
printf '$ %s\n' "$0 [--dry] firewall"
|
||||||
printf '$ %s\n' "$0 [--dry] ssh"
|
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] 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]"
|
||||||
|
@ -39,7 +40,7 @@ fi
|
||||||
case $TAG in
|
case $TAG in
|
||||||
"")
|
"")
|
||||||
install_modules; $EXEC "$BASE_CMD" ;;
|
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'" ;;
|
install_modules; $EXEC "$BASE_CMD --tags '$TAG'" ;;
|
||||||
users)
|
users)
|
||||||
install_modules
|
install_modules
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
- name: Configure system base
|
- name: Configure system base
|
||||||
ansible.builtin.import_tasks: base.yml
|
ansible.builtin.import_tasks: base.yml
|
||||||
|
tags:
|
||||||
|
- base
|
||||||
|
|
||||||
- name: Reboot if needed
|
- name: Reboot if needed
|
||||||
ansible.builtin.import_tasks: reboot.yml
|
ansible.builtin.import_tasks: reboot.yml
|
||||||
|
|
Reference in a new issue