Last active
August 29, 2015 13:58
-
-
Save martineg/10327121 to your computer and use it in GitHub Desktop.
Check for listening on :443 on all RHEL 6.5 hosts
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
--- | |
- hosts: all | |
tasks: | |
- name: Check if we listen on 443 on RHEL 6.5 | |
command: nc -z {{ ansible_default_ipv4.address }} 443 | |
when: ansible_distribution_version == '6.5' | |
register: rc | |
ignore_errors: true | |
changed_when: rc|success |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment