diff --git a/README.md b/README.md
index 9a7bfcd..354e7e7 100644
--- a/README.md
+++ b/README.md
@@ -108,14 +108,14 @@ To install from [GitHub](https://github.com/OneIdentity/ansible-authentication-s
 
 Using `ansible-galaxy` command:
 ```bash
-ansible-galaxy collection install https://github.com/OneIdentity/ansible-authentication-services/releases/download/v0.2.1/oneidentity-authentication_services-0.2.1.tar.gz
+ansible-galaxy collection install https://github.com/OneIdentity/ansible-authentication-services/releases/download/v0.2.2/oneidentity-authentication_services-0.2.2.tar.gz
 ```
 
 The collection can also be added to a project's `requirements.yml` file
 ```yaml
 ---
 collections:
-  - name: https://github.com/OneIdentity/ansible-authentication-services/releases/download/v0.2.1/oneidentity-authentication_services-0.2.1.tar.gz
+  - name: https://github.com/OneIdentity/ansible-authentication-services/releases/download/v0.2.2/oneidentity-authentication_services-0.2.2.tar.gz
 ```
 
 and installed using the `ansible-galaxy` command.  This method allows all required collections for a project to be specified in one place and installed with one command.
@@ -145,7 +145,7 @@ For local build and installation, you can clone the Git repository, build the co
     The build command will generate an Ansible Galaxy collection artifact with a `tar.gz` file extension, sample output will look like the following:
 
     ```
-    Created collection for oneidentity.authentication_services at /home/user/ansible-authentication-services/oneidentity-authentication_services-0.2.1.tar.gz
+    Created collection for oneidentity.authentication_services at /home/user/ansible-authentication-services/oneidentity-authentication_services-0.2.2.tar.gz
     ```
 
     `Pleae note the path shown above is just an example, the path to your build artifact will be in the root directory of the cloned repository.`
@@ -155,14 +155,14 @@ For local build and installation, you can clone the Git repository, build the co
     Using `ansible-galaxy` command:
 
     ```bash
-    ansible-galaxy collection install /home/user/ansible-authentication-services/oneidentity-authentication_services-0.2.1.tar.gz
+    ansible-galaxy collection install /home/user/ansible-authentication-services/oneidentity-authentication_services-0.2.2.tar.gz
     ```
 
     The collection can also be added to a project's `requirements.yml` file
     ```yaml
     ---
     collections:
-    - name: /home/user/ansible-authentication-services/oneidentity-authentication_services-0.2.1.tar.gz
+    - name: /home/user/ansible-authentication-services/oneidentity-authentication_services-0.2.2.tar.gz
     ```
 
     and installed using the `ansible-galaxy` command.  This method allows all required collections for a project to be specified in one place and installed with one command.
diff --git a/galaxy.yml b/galaxy.yml
index c2dd8c8..5a09639 100644
--- a/galaxy.yml
+++ b/galaxy.yml
@@ -10,7 +10,7 @@ namespace: oneidentity
 name: authentication_services  
 
 # Semantic versioning compliant version designation
-version: "0.2.1"
+version: "0.2.2"
 
 # The path do the Markdown(.md) readme file
 readme: README.md
diff --git a/roles/client_agent_status/templates/client_agent_status_report_common.html.j2 b/roles/client_agent_status/templates/client_agent_status_report_common.html.j2
index 84a40ea..61b3c09 100644
--- a/roles/client_agent_status/templates/client_agent_status_report_common.html.j2
+++ b/roles/client_agent_status/templates/client_agent_status_report_common.html.j2
@@ -142,12 +142,12 @@
         {% endif %}
         {# Javascript object #}
         {
-          'hostname': '{{ host }}',
-          'group': '{{ hostvars[host]['group_names'] | join(', ') }}', 
-          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() }}',
-          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() }}',
-          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() }}',
-          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() }}',
+          'hostname': '{{ host | replace("'", '\\x27') }}',
+          'group': '{{ hostvars[host]['group_names'] | join(', ') | replace("'", '\\x27') }}', 
+          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() | replace("'", '\\x27') }}',
+          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() | replace("'", '\\x27') }}',
+          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() | replace("'", '\\x27') }}',
+          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() | replace("'", '\\x27') }}',
           'sys_time': '{{ sys_time }}',
           'changed': '{{ changed }}',
           'unreachable': '{{ unreachable }}',
diff --git a/roles/client_config/templates/client_config_report_common.html.j2 b/roles/client_config/templates/client_config_report_common.html.j2
index 1de6753..94c6501 100644
--- a/roles/client_config/templates/client_config_report_common.html.j2
+++ b/roles/client_config/templates/client_config_report_common.html.j2
@@ -148,12 +148,12 @@
         {% endif %}
         {# Javascript object #}
         {
-          'hostname': '{{ host }}',
-          'group': '{{ hostvars[host]['group_names'] | join(', ') }}', 
-          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() }}',
-          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() }}',
-          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() }}',
-          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() }}',
+          'hostname': '{{ host | replace("'", '\\x27') }}',
+          'group': '{{ hostvars[host]['group_names'] | join(', ') | replace("'", '\\x27') }}', 
+          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() | replace("'", '\\x27') }}',
+          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() | replace("'", '\\x27') }}',
+          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() | replace("'", '\\x27') }}',
+          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() | replace("'", '\\x27') }}',
           'sys_time': '{{ sys_time }}',
           'changed': '{{ changed }}',
           'unreachable': '{{ unreachable }}',
diff --git a/roles/client_join/templates/client_join_report_common.html.j2 b/roles/client_join/templates/client_join_report_common.html.j2
index 3380cd4..e177060 100644
--- a/roles/client_join/templates/client_join_report_common.html.j2
+++ b/roles/client_join/templates/client_join_report_common.html.j2
@@ -142,12 +142,12 @@
         {% endif %}
         {# Javascript object #}
         {
-          'hostname': '{{ host }}',
-          'group': '{{ hostvars[host]['group_names'] | join(', ') }}', 
-          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() }}',
-          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() }}',
-          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() }}',
-          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() }}',
+          'hostname': '{{ host | replace("'", '\\x27') }}',
+          'group': '{{ hostvars[host]['group_names'] | join(', ') | replace("'", '\\x27') }}', 
+          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() | replace("'", '\\x27') }}',
+          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() | replace("'", '\\x27') }}',
+          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() | replace("'", '\\x27') }}',
+          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() | replace("'", '\\x27') }}',
           'sys_time': '{{ sys_time }}',
           'changed': '{{ changed }}',
           'unreachable': '{{ unreachable }}',
diff --git a/roles/client_join_status/templates/client_join_status_report_common.html.j2 b/roles/client_join_status/templates/client_join_status_report_common.html.j2
index ab81cf6..cbc22a0 100644
--- a/roles/client_join_status/templates/client_join_status_report_common.html.j2
+++ b/roles/client_join_status/templates/client_join_status_report_common.html.j2
@@ -86,13 +86,13 @@
     var data = [
       {% for host in ansible_play_hosts_all | sort %}
         {
-          'hostname':    '{{ host }}',
-          'group':       '{{ hostvars[host]['group_names'] | join(', ') }}',
-          'ip address':  '{{ hostvars[host]['ansible_facts']['default_ipv4']['address']           | default() }}',
-          'os distro':   '{{ hostvars[host]['ansible_facts']['distribution']                      | default() }}',
-          'os version':  '{{ hostvars[host]['ansible_facts']['distribution_version']              | default() }}',
-          'sas version': '{{ hostvars[host]['ansible_facts']['sas_client_join_status']['version'] | default() }}',
-          'domain':      '{{ hostvars[host]['ansible_facts']['sas_client_join_status']['domain']  | default() }}',
+          'hostname':    '{{ host | replace("'", '\\x27') }}',
+          'group':       '{{ hostvars[host]['group_names'] | join(', ') | replace("'", '\\x27') }}',
+          'ip address':  '{{ hostvars[host]['ansible_facts']['default_ipv4']['address']           | default() | replace("'", '\\x27') }}',
+          'os distro':   '{{ hostvars[host]['ansible_facts']['distribution']                      | default() | replace("'", '\\x27') }}',
+          'os version':  '{{ hostvars[host]['ansible_facts']['distribution_version']              | default() | replace("'", '\\x27') }}',
+          'sas version': '{{ hostvars[host]['ansible_facts']['sas_client_join_status']['version'] | default() | replace("'", '\\x27') }}',
+          'domain':      '{{ hostvars[host]['ansible_facts']['sas_client_join_status']['domain']  | default() | replace("'", '\\x27') }}',
           'unreachable': '{{ hostvars[host]['ansible_facts']['sas_client']['unreachable']         | default() }}',
           'failed':      '{{ hostvars[host]['ansible_facts']['sas_client']['failed']              | default() }}',
         },
diff --git a/roles/client_preflight/tasks/preflight_with_copy.yml b/roles/client_preflight/tasks/preflight_with_copy.yml
index be457cb..72979d1 100644
--- a/roles/client_preflight/tasks/preflight_with_copy.yml
+++ b/roles/client_preflight/tasks/preflight_with_copy.yml
@@ -16,7 +16,7 @@
   - include_tasks: preflight.yml
 
   # Remove temporary directory
-  - include_tasks: utils/temp_dir_delete.yml
+  # - include_tasks: utils/temp_dir_delete.yml
 
   vars:
     package: preflight
diff --git a/roles/client_preflight/templates/client_preflight_report_common.html.j2 b/roles/client_preflight/templates/client_preflight_report_common.html.j2
index 0ca375e..fd0783a 100644
--- a/roles/client_preflight/templates/client_preflight_report_common.html.j2
+++ b/roles/client_preflight/templates/client_preflight_report_common.html.j2
@@ -142,12 +142,12 @@
         {% endif %}
         {# Javascript object #}
         {
-          'hostname': '{{ host }}',
-          'group': '{{ hostvars[host]['group_names'] | join(', ') }}', 
-          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() }}',
-          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() }}',
-          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() }}',
-          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() }}',
+          'hostname': '{{ host | replace("'", '\\x27') }}',
+          'group': '{{ hostvars[host]['group_names'] | join(', ') | replace("'", '\\x27') }}', 
+          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() | replace("'", '\\x27') }}',
+          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() | replace("'", '\\x27') }}',
+          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() | replace("'", '\\x27') }}',
+          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() | replace("'", '\\x27') }}',
           'sys_time': '{{ sys_time }}',
           'changed': '{{ changed }}',
           'unreachable': '{{ unreachable }}',
diff --git a/roles/client_preflight/vars/main.yml b/roles/client_preflight/vars/main.yml
index 072f516..bd4a1ce 100644
--- a/roles/client_preflight/vars/main.yml
+++ b/roles/client_preflight/vars/main.yml
@@ -7,7 +7,7 @@ package_src: "{{ client_sw_pkgs['packages'][package]['path'] }}"
 package_file: "{{ client_sw_pkgs['packages'][package]['file'] }}"
 
 # Copy package destination directory to variable
-package_dest_dir: "{{ client_sw_tmp_dir }}/"
+package_dest_dir: "{{ client_sw_tmp_dir }}/ansible-as-client_preflight/"
 
 # Copye package destination file path to variable
 package_dest: "{{ package_dest_dir }}{{ package_file }}"
diff --git a/roles/client_sw/tasks/run_package_tasks.yml b/roles/client_sw/tasks/run_package_tasks.yml
index 06f42cb..888b8e1 100644
--- a/roles/client_sw/tasks/run_package_tasks.yml
+++ b/roles/client_sw/tasks/run_package_tasks.yml
@@ -21,9 +21,9 @@
   loop: "{{ client_sw_pkg_state | oneidentity.authentication_services.pkgdict2items }}"
 
 # Remove temporary directory 
-- include_tasks: temp_dir_delete.yml
-  when: 
-    - "'present' in client_sw_pkg_state.values()"
+# - include_tasks: temp_dir_delete.yml
+#   when: 
+#     - "'present' in client_sw_pkg_state.values()"
 
 # Read package versions after changes
 - include_tasks: read_package_version.yml
diff --git a/roles/client_sw/templates/client_sw_report_common.html.j2 b/roles/client_sw/templates/client_sw_report_common.html.j2
index 4543a49..0e7f80f 100644
--- a/roles/client_sw/templates/client_sw_report_common.html.j2
+++ b/roles/client_sw/templates/client_sw_report_common.html.j2
@@ -153,12 +153,12 @@
         {% endif %}
         {# Javascript object #}
         {
-          'hostname': '{{ host }}',
-          'group': '{{ hostvars[host]['group_names'] | join(', ') }}', 
-          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() }}',
-          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() }}',
-          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() }}',
-          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() }}',
+          'hostname': '{{ host | replace("'", '\\x27') }}',
+          'group': '{{ hostvars[host]['group_names'] | join(', ') | replace("'", '\\x27') }}', 
+          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() | replace("'", '\\x27') }}',
+          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() | replace("'", '\\x27') }}',
+          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() | replace("'", '\\x27') }}',
+          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() | replace("'", '\\x27') }}',
           'sys_time': '{{ sys_time }}',
           'changed': '{{ changed }}',
           'unreachable': '{{ unreachable }}',
diff --git a/roles/client_sw/vars/main.yml b/roles/client_sw/vars/main.yml
index ef19dd0..f8b6ce8 100644
--- a/roles/client_sw/vars/main.yml
+++ b/roles/client_sw/vars/main.yml
@@ -18,7 +18,7 @@ package_src: "{{ client_sw_pkgs['packages'][package]['path'] }}"
 package_file: "{{ client_sw_pkgs['packages'][package]['file'] }}"
 
 # Copy package destination directory to variable
-package_dest_dir: "{{ client_sw_tmp_dir }}/"
+package_dest_dir: "{{ client_sw_tmp_dir }}/ansible-as-client_sw/"
 
 # Copye package destination file path to variable
 package_dest: "{{ package_dest_dir }}{{ package_file }}"
diff --git a/roles/common/vars/main.yml b/roles/common/vars/main.yml
index 2e8a2c0..e5bafd9 100644
--- a/roles/common/vars/main.yml
+++ b/roles/common/vars/main.yml
@@ -1,3 +1,3 @@
 ---
 
-collection_version: '0.2.1' 
+collection_version: '0.2.2' 
diff --git a/roles/host_access_control/templates/host_access_control_report_common.html.j2 b/roles/host_access_control/templates/host_access_control_report_common.html.j2
index 20102c3..b923b1b 100644
--- a/roles/host_access_control/templates/host_access_control_report_common.html.j2
+++ b/roles/host_access_control/templates/host_access_control_report_common.html.j2
@@ -139,12 +139,12 @@
         {% endif %}
         {# Javascript object #}
         {
-          'hostname': '{{ host }}',
-          'group': '{{ hostvars[host]['group_names'] | join(', ') }}', 
-          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() }}',
-          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() }}',
-          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() }}',
-          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() }}',
+          'hostname': '{{ host | replace("'", '\\x27') }}',
+          'group': '{{ hostvars[host]['group_names'] | join(', ') | replace("'", '\\x27') }}', 
+          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() | replace("'", '\\x27') }}',
+          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() | replace("'", '\\x27') }}',
+          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() | replace("'", '\\x27') }}',
+          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() | replace("'", '\\x27') }}',
           'sys_time': '{{ sys_time }}',
           'changed': '{{ changed }}',
           'unreachable': '{{ unreachable }}',
diff --git a/roles/local_unix_groups/templates/local_unix_groups_report_common.html.j2 b/roles/local_unix_groups/templates/local_unix_groups_report_common.html.j2
index cad52cd..3f6eadf 100644
--- a/roles/local_unix_groups/templates/local_unix_groups_report_common.html.j2
+++ b/roles/local_unix_groups/templates/local_unix_groups_report_common.html.j2
@@ -146,12 +146,12 @@ Report parameters:<br>
         {
           'unique_id': '{{ loop.index0 }}',
           'num_of_groups': '{{ hostvars[host]['ansible_facts']['sas_local_unix_groups_key']['local_unix_groups'] | default() | length }}',
-          'hostname': '{{ host }}',
-          'group': '{{ hostvars[host]['group_names'] | join(', ') }}', 
-          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() }}',
-          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() }}',
-          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() }}',
-          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() }}',
+          'hostname': '{{ host | replace("'", '\\x27') }}',
+          'group': '{{ hostvars[host]['group_names'] | join(', ') | replace("'", '\\x27') }}', 
+          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() | replace("'", '\\x27') }}',
+          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() | replace("'", '\\x27') }}',
+          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() | replace("'", '\\x27') }}',
+          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() | replace("'", '\\x27') }}',
           'sys_time': '{{ sys_time }}',
           'changed': '{{ hostvars[host]['ansible_facts']['sas_local_unix_groups']['changed'] | default(False) }}',
           'unreachable': '{{ hostvars[host]['ansible_facts']['sas_local_unix_groups']['unreachable'] | default(False) }}',
diff --git a/roles/local_unix_user_conflicts/templates/local_unix_user_conflicts_report_common.html.j2 b/roles/local_unix_user_conflicts/templates/local_unix_user_conflicts_report_common.html.j2
index ed9fc1c..6537f88 100644
--- a/roles/local_unix_user_conflicts/templates/local_unix_user_conflicts_report_common.html.j2
+++ b/roles/local_unix_user_conflicts/templates/local_unix_user_conflicts_report_common.html.j2
@@ -135,12 +135,12 @@ Report of all local user accounts that conflict with:<br>
         {
           'unique_id': '{{ loop.index0 }}',
           'num_of_users': '{{ hostvars[host]['ansible_facts']['sas_local_unix_user_conflicts_key']['local_unix_user_conflicts'] | default() | length }}',
-          'hostname': '{{ host }}',
-          'group': '{{ hostvars[host]['group_names'] | join(', ') }}', 
-          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() }}',
-          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() }}',
-          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() }}',
-          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() }}',
+          'hostname': '{{ host | replace("'", '\\x27') }}',
+          'group': '{{ hostvars[host]['group_names'] | join(', ') | replace("'", '\\x27') }}', 
+          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() | replace("'", '\\x27') }}',
+          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() | replace("'", '\\x27') }}',
+          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() | replace("'", '\\x27') }}',
+          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() | replace("'", '\\x27') }}',
           'sys_time': '{{ sys_time }}',
           'changed': '{{ hostvars[host]['ansible_facts']['sas_local_unix_user_conflicts']['changed'] | default(False) }}',
           'unreachable': '{{ hostvars[host]['ansible_facts']['sas_local_unix_user_conflicts']['unreachable'] | default(False) }}',
diff --git a/roles/local_unix_users/templates/local_unix_users_report_common.html.j2 b/roles/local_unix_users/templates/local_unix_users_report_common.html.j2
index a62475f..b4c7a7d 100644
--- a/roles/local_unix_users/templates/local_unix_users_report_common.html.j2
+++ b/roles/local_unix_users/templates/local_unix_users_report_common.html.j2
@@ -155,12 +155,12 @@ Report parameters:<br>
         {
           'unique_id': '{{ loop.index0 }}',
           'num_of_users': '{{ hostvars[host]['ansible_facts']['sas_local_unix_users_key']['local_unix_users'] | default() | length }}',
-          'hostname': '{{ host }}',
-          'group': '{{ hostvars[host]['group_names'] | join(', ') }}', 
-          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() }}',
-          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() }}',
-          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() }}',
-          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() }}',
+          'hostname': '{{ host | replace("'", '\\x27') }}',
+          'group': '{{ hostvars[host]['group_names'] | join(', ') | replace("'", '\\x27') }}', 
+          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() | replace("'", '\\x27') }}',
+          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() | replace("'", '\\x27') }}',
+          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() | replace("'", '\\x27') }}',
+          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() | replace("'", '\\x27') }}',
           'sys_time': '{{ sys_time }}',
           'changed': '{{ hostvars[host]['ansible_facts']['sas_local_unix_users']['changed'] | default(False) }}',
           'unreachable': '{{ hostvars[host]['ansible_facts']['sas_local_unix_users']['unreachable'] | default(False) }}',
diff --git a/roles/local_unix_users_with_ad_logon/templates/local_unix_users_with_ad_logon_report_common.html.j2 b/roles/local_unix_users_with_ad_logon/templates/local_unix_users_with_ad_logon_report_common.html.j2
index cfa1d40..b562607 100644
--- a/roles/local_unix_users_with_ad_logon/templates/local_unix_users_with_ad_logon_report_common.html.j2
+++ b/roles/local_unix_users_with_ad_logon/templates/local_unix_users_with_ad_logon_report_common.html.j2
@@ -130,12 +130,12 @@ The Local Unix Users with AD Logon report is used to identify the local user acc
         {
           'unique_id': '{{ loop.index0 }}',
           'num_of_users': '{{ hostvars[host]['ansible_facts']['sas_local_unix_users_with_ad_logon_key']['local_unix_users_with_ad_logon'] | default() | length }}',
-          'hostname': '{{ host }}',
-          'group': '{{ hostvars[host]['group_names'] | join(', ') }}', 
-          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() }}',
-          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() }}',
-          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() }}',
-          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() }}',
+          'hostname': '{{ host | replace("'", '\\x27') }}',
+          'group': '{{ hostvars[host]['group_names'] | join(', ') | replace("'", '\\x27') }}', 
+          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() | replace("'", '\\x27') }}',
+          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() | replace("'", '\\x27') }}',
+          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() | replace("'", '\\x27') }}',
+          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() | replace("'", '\\x27') }}',
           'sys_time': '{{ sys_time }}',
           'changed': '{{ hostvars[host]['ansible_facts']['sas_local_unix_users_with_ad_logon']['changed'] | default(False) }}',
           'unreachable': '{{ hostvars[host]['ansible_facts']['sas_local_unix_users_with_ad_logon']['unreachable'] | default(False) }}',
diff --git a/roles/logon_policy_for_ad_user/templates/logon_policy_for_ad_user_report_common.html.j2 b/roles/logon_policy_for_ad_user/templates/logon_policy_for_ad_user_report_common.html.j2
index cf8e8f9..fc265d3 100644
--- a/roles/logon_policy_for_ad_user/templates/logon_policy_for_ad_user_report_common.html.j2
+++ b/roles/logon_policy_for_ad_user/templates/logon_policy_for_ad_user_report_common.html.j2
@@ -144,12 +144,12 @@
     var data = [
 {% for host in logon_policy_for_ad_user[policy]['hosts'] | sort %}
       {
-      'hostname': '{{ host }}',
-      'group': '{{ hostvars[host]['group_names'] | join(', ') }}', 
-      'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() }}',
-      'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() }}',
-      'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() }}',
-      'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() }}'
+      'hostname': '{{ host | replace("'", '\\x27') }}',
+      'group': '{{ hostvars[host]['group_names'] | join(', ') | replace("'", '\\x27') }}', 
+      'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() | replace("'", '\\x27') }}',
+      'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() | replace("'", '\\x27') }}',
+      'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() | replace("'", '\\x27') }}',
+      'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() | replace("'", '\\x27') }}'
       },
 {% endfor %}
     ];
diff --git a/roles/logon_policy_for_unix_host/templates/logon_policy_for_unix_host_report_common.html.j2 b/roles/logon_policy_for_unix_host/templates/logon_policy_for_unix_host_report_common.html.j2
index 2bc3659..5b842ef 100644
--- a/roles/logon_policy_for_unix_host/templates/logon_policy_for_unix_host_report_common.html.j2
+++ b/roles/logon_policy_for_unix_host/templates/logon_policy_for_unix_host_report_common.html.j2
@@ -131,12 +131,12 @@
         {
           'unique_id': '{{ loop.index0 }}',
           'num_of_users': '{{ hostvars[host]['ansible_facts']['sas_logon_policy_for_unix_host_key']['users_allowed'] | default() | length }}',
-          'hostname': '{{ host }}',
-          'group': '{{ hostvars[host]['group_names'] | join(', ') }}', 
-          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() }}',
-          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() }}',
-          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() }}',
-          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() }}',
+          'hostname': '{{ host | replace("'", '\\x27') }}',
+          'group': '{{ hostvars[host]['group_names'] | join(', ') | replace("'", '\\x27') }}', 
+          'ip address': '{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] | default() | replace("'", '\\x27') }}',
+          'os distro': '{{ hostvars[host]['ansible_facts']['distribution'] | default() | replace("'", '\\x27') }}',
+          'os version': '{{ hostvars[host]['ansible_facts']['distribution_version'] | default() | replace("'", '\\x27') }}',
+          'hw arch': '{{ hostvars[host]['ansible_facts']['architecture'] | default() | replace("'", '\\x27') }}',
           'sys_time': '{{ sys_time }}',
           'changed': '{{ hostvars[host]['ansible_facts']['sas_logon_policy_for_unix_host']['changed'] | default(False) }}',
           'unreachable': '{{ hostvars[host]['ansible_facts']['sas_logon_policy_for_unix_host']['unreachable'] | default(False) }}',