Add options and tags
This commit is contained in:
parent
c1c18a628c
commit
e1c45e45c9
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue