Allow applications postfix to be configured

The postfix _hosts appended to applications to create host groups is now
configurable.

Signed-off-by: martin f. krafft <madduck@madduck.net>
diff --git a/adapters/ansible b/adapters/ansible
index 2e485ec..53b8f52 100755
--- a/adapters/ansible
+++ b/adapters/ansible
@@ -48,6 +48,9 @@
         classes_uri = options['nodes_uri']
     options['classes_uri'] = classes_uri
 
+if 'applications_postfix' not in options:
+    options['applications_postfix'] = '_hosts'
+
 # Invoke reclass according to what Ansible wants.
 # If the 'node' option is set, we want node information. If the option is
 # False instead, we print the inventory. Yeah for option abuse!
@@ -70,7 +73,8 @@
 
 try:
     data = reclass.get_data(options['storage_type'], options['nodes_uri'],
-                            options['classes_uri'], options['node'])
+                            options['classes_uri'],
+                            options['applications_postfix'], options['node'])
 
     if options['node']:
         # Massage and shift the data like Ansible wants it