Skip to content

Commit

Permalink
Merge pull request #41 from i386x/default-vars-test
Browse files Browse the repository at this point in the history
Add default vars test
  • Loading branch information
pcahyna authored Jun 13, 2019
2 parents 983656e + cc0e1ef commit 924650d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/tests_default_vars.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
- name: Ensure that the role declares all parameters in defaults
hosts: all

tasks:
- block:
- import_role:
name: linux-system-roles.timesync
when: false

- assert:
that: "vars[item] is defined"
loop:
- timesync_ntp_servers
- timesync_ptp_domains
- timesync_dhcp_ntp_servers
- timesync_step_threshold
- timesync_min_sources
- timesync_ntp_provider
when: "ansible_version.full is version_compare('2.7', '>=')"

0 comments on commit 924650d

Please sign in to comment.