Created
March 2, 2022 08:49
-
-
Save unbelauscht/c9fae99b9e77e96ac1f12b8f7d5d068b to your computer and use it in GitHub Desktop.
Ansible commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# restart icinga2 service on all hosts | |
ansible -i hosts.live.yml all -b -m service -a "name=nginx state=restarted" | |
# check if host is reachable from Ansible hosts | |
ansible -i hosts.live.yml all -m wait_for -a "host=google.com port=443" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment