Skip to content

Some simple smoketests that can be run by Ansible to verify a site is loading.

License

Notifications You must be signed in to change notification settings

philcryer/smoketests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smoketests

Some simple smoketests that can be run by Ansible to verify a site is loading.

Requirements

none

Role Variables

optional (see Defaults)

Dependencies

none

Examples

  • Defaults

If you don't define any variables, this playbook will use the defaults found in defaults/main.yml

---
smoketests_host: "{{ ansible_fqdn }}"
smoketests_path: "/"
smoketests_port: "443"
smoketests_status: "200"
smoketests_content: "Copyright"
smoketests_protocol: "https"
  • Usage

To run the smoketests with the default variables, just include it as a role

    - hosts: servers
      roles:
         - smoketests
  • Override

If you want to override a default variable (likely), pass it as a parameter to the role:

roles:
   - { role: smoketests, smoketests_path: "/solr", smoketests_content: "Apache" }
Smoke testing in progress

License

BSD 2-Clause

Author Information

philcryer

Thanks

About

Some simple smoketests that can be run by Ansible to verify a site is loading.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published