Created
April 14, 2016 17:21
-
-
Save ianling/2c15fae50471a38a7d0d068aca2d2d40 to your computer and use it in GitHub Desktop.
Runs a Bash script that checks SSL certificate expiry
This file contains hidden or 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
--- | |
- name: Check if SSL certs will expire soon | |
hosts: servers-with-ssl-certs | |
remote_user: backup | |
tasks: | |
- name: Run the SSL cert check script | |
script: /usr/local/bin/check_ssl_cert.sh | |
register: scriptoutput | |
- name: Print script output | |
debug: var=scriptoutput.stdout_lines |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment