exclude host in ansible adhoc command
# Adhoc command. A \ is requred before the !
ansible my_group:\!single_server -m shell -a "docker ps"
exclude host in ansible adhoc command
# Adhoc command. A \ is requred before the !
ansible my_group:\!single_server -m shell -a "docker ps"
ansible exclude a host
# By using the '!' you exclude a host from a play.
ansible-playbook --limit 'myapp:!database3' myplay.yaml
exclude host in ansible adhoc command
# Adhoc command. A \ is requred before the !
ansible my_group:\!single_server -m shell -a "docker ps"
ansible exclude a host
# By using the '!' you exclude a host from a play.
ansible-playbook --limit 'myapp:!database3' myplay.yaml
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us