+++ /dev/null
----
-certificates:
-  organization_name: MoleculeTesters
-  state_or_province_name: Poland
-  country_name: PL
-  locality_name: Krakow
-app_data_path: /opt/moleculetestapp
 
+++ /dev/null
----
-cluster_ip: 1.2.3.4
 
     ANSIBLE_ROLES_PATH: ../../../../test/roles
     ANSIBLE_LIBRARY: ../../../../library
   inventory:
-    links:
-      group_vars: ../../../../group_vars/
-scenario:
-  test_sequence:
-    - lint
-    - cleanup
-    - destroy
-    - dependency
-    - syntax
-    - create
-    - prepare
-    - converge
-    # - idempotence
-    #  --> Action: 'idempotence'
-    #  ERROR: Idempotence test failed because of the following tasks:
-    #  * [infrastructure-server -> localhost] => certificates : Generate an OpenSSL CSR.
-    #  * [infrastructure-server -> localhost] => certificates : Generate root CA certificate
-    #  * [infrastructure-server] => certificates : Upload certificates to infrastructure server
-    #  * [infrastructure-server] => certificates : Copy root certificate
-    #  * [infrastructure-server] => certificates : Extract root certificate
-    #  * [infrastructure-server] => docker : Setup docker dns settings
-    #  * [kubernetes-node-1] => certificates : Copy root certificate
-    #  * [kubernetes-node-1] => certificates : Extract root certificate
-    #  * [kubernetes-node-1] => certificates : Extract root certificate
-    - side_effect
-    - verify
-    - cleanup
-    - destroy
+    group_vars:
+      all:
+        certificates:
+          organization_name: MoleculeTesters
+          state_or_province_name: Poland
+          country_name: PL
+          locality_name: Krakow
+        app_data_path: /opt/moleculetestapp
+        all_simulated_hosts:
+          - molecule.sim.host1
+          - molecule.sim.host2
+      infrastructure-server:
+        cluster_ip: 1.2.3.4
 verifier:
   name: testinfra
   options:
 
 
 @pytest.fixture
 def group_vars(host):
-    all_file = "file=group_vars/all.yml name=all"
-    return host.ansible("include_vars", all_file)["ansible_facts"]["all"]
+    return host.ansible.get_variables()
 
 
 @pytest.mark.parametrize('cert_file', [
     assert f.user == 'root'
     assert f.group == 'root'
 
-    os = host.system_info.distribution
-    if (os == "centos"):
-        node_directory = "certs/"
-    elif (os == "ubuntu"):
-        node_directory = "../default/certs/"
-
     # Verify cert files content locally is as in node
-    with open(node_directory + cert_file) as local_cert_file:
+    with open("molecule/default/certs/" + cert_file) as local_cert_file:
         local_content = local_cert_file.read().strip()
-    assert local_content == f.content_string
+    assert local_content == f.content_string.strip()
 
+++ /dev/null
-../default/group_vars/
\ No newline at end of file
 
+++ /dev/null
-../default/host_vars/
\ No newline at end of file
 
     converge: ../default/converge.yml
     cleanup: ../default/cleanup.yml
   inventory:
-    links:
-      group_vars: ../../../../group_vars/
-scenario:
-  test_sequence:
-    - lint
-    - cleanup
-    - destroy
-    - dependency
-    - syntax
-    - create
-    - prepare
-    - converge
-    # - idempotence
-    #  --> Action: 'idempotence'
-    #  ERROR: Idempotence test failed because of the following tasks:
-    #  * [infrastructure-server -> localhost] => certificates : Generate an OpenSSL CSR.
-    #  * [infrastructure-server -> localhost] => certificates : Generate root CA certificate
-    #  * [infrastructure-server] => certificates : Upload certificates to infrastructure server
-    #  * [infrastructure-server] => certificates : Copy root certificate
-    #  * [infrastructure-server] => certificates : Extract root certificate
-    #  * [infrastructure-server] => docker : Setup docker dns settings
-    #  * [kubernetes-node-1] => certificates : Copy root certificate
-    #  * [kubernetes-node-1] => certificates : Extract root certificate
-    #  * [kubernetes-node-1] => certificates : Extract root certificate
-    - side_effect
-    - verify
-    - cleanup
-    - destroy
+    group_vars:
+      all:
+        certificates:
+          organization_name: MoleculeTesters
+          state_or_province_name: Poland
+          country_name: PL
+          locality_name: Krakow
+        app_data_path: /opt/moleculetestapp
+        all_simulated_hosts:
+          - molecule.sim.host1
+          - molecule.sim.host2
+      infrastructure-server:
+        cluster_ip: 1.2.3.4
 verifier:
   name: testinfra
   options: