1
0
mirror of https://github.com/geerlingguy/ansible-for-devops.git synced 2024-05-19 06:50:03 +00:00
Files
geerlingguy-ansible-for-devops/test-plugin/test_plugins/blue.py

15 lines
324 B
Python
Raw Normal View History

# blue Ansible test plugin definition.
def is_blue(string):
blue_values = ['blue', '#0000ff', '#00f', 'rgb(0,0,255)']
if string in blue_values:
return True
else:
return False
class TestModule(object):
''' custom playbook jinja2 tests '''
def tests(self):
return dict(blue=is_blue)