Skip to content

Instantly share code, notes, and snippets.

@ianling
Created April 14, 2016 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianling/2c15fae50471a38a7d0d068aca2d2d40 to your computer and use it in GitHub Desktop.
Save ianling/2c15fae50471a38a7d0d068aca2d2d40 to your computer and use it in GitHub Desktop.
Runs a Bash script that checks SSL certificate expiry
---
- 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