pull/14/head
Cian Hatton 3 years ago
parent d4f00df129
commit f5053299e4

@ -0,0 +1,10 @@
#!/usr/bin/python
class FilterModule(object):
def filters(self):
return {
'a_filter': self.a_filter,
}
def a_filter(self, a_variable):
a_new_variable = a_variable + ' CRAZY NEW FILTER'
return a_new_variable

@ -5,6 +5,8 @@
- name: Determine backup timestamp.
ansible.builtin.set_fact: backup_time="{{ ansible_date_time.iso8601 }}"
- debug: msg="{{ 'test' | a_filter }}"
- name: Install Python dependencies
ansible.builtin.pip:
name:

@ -1,3 +1,4 @@
[defaults]
roles_path = roles
vault_password_file=tests/vault_key.sh
filter_plugins = plugins/filter

@ -4,6 +4,7 @@
become: true
tasks:
# - debug: msg="{{ 'test' | a_filter }}"
- name: Install Docker Module for Python
pip:
name:

Loading…
Cancel
Save