Skip to content

Ansible Pre-Flight Error #2

@drchap7577

Description

@drchap7577

Preflight Ansible Playbook runs partially successful with 1 error that I'm struggling to understand. Any insights on what may be causing this issue:

TASK [oneidentity.authentication_services.local_unix_users : generate reports] *****************************************************************************************************************************
ok: [cfsand05v.psb.bls.gov -> 127.0.0.1] => (item={'src': 'local_unix_users_report.csv.j2', 'dest': 'local_unix_users_report.csv'})
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ): sequence item 2: expected str instance, int found
failed: [cfsand05v.psb.bls.gov -> 127.0.0.1] (item={'src': 'local_unix_users_report.html.j2', 'dest': 'local_unix_users_report.html'}) => {"ansible_loop_var": "item", "changed": false, "item": {"dest": "local_unix_users_report.html", "src": "local_unix_users_report.html.j2"}, "msg": "AnsibleError: Unexpected templating type error occurred on ({# Imports #}\r\n{% import 'local_unix_users_report_common.html.j2' as report with context %}\r\n\r\n{# Globals #}\r\n{% set report_name = 'Local Unix Users Report' %}\r\n\r\n{# HTML head #}\r\n{{ report.head(report_name) }}\r\n\r\n{# HTML body #}\r\n\r\n\r\n {# Create overall page container #}\r\n <div class="container-fluid">\r\n\r\n {# Title #}\r\n {{ report.title(report_name) }}\r\n\r\n {# Data table #}\r\n {{ report.table() }}\r\n \r\n {# Footer #}\r\n {{ report.footer(collection_version, now(fmt='%Y-%m-%d %H:%M:%S')) }}\r\n\r\n {# JS libraries #}\r\n {{ report.libraries() }}\r\n\r\n {# Table data #}\r\n {{ report.table_data() }}\r\n\r\n {# Table detail formatter #}\r\n {{ report.table_detail_formatter() }}\r\n\r\n {# Table detail copy tooltip #}\r\n {{ report.table_detail_tooltip() }}\r\n\r\n {# Table cell style #}\r\n {{ report.table_cell_style() }}\r\n\r\n \r\n\r\n\r\n\r\n{# HTML end #}\r\n{{ report.end() }}\r\n): sequence item 2: expected str instance, int found"}

TASK [oneidentity.authentication_services.client_preflight : generate reports] *****************************************************************************************************************************
ok: [cfsand05v.psb.bls.gov -> 127.0.0.1] => (item={'src': 'client_preflight_report.csv.j2', 'dest': 'client_preflight_report.csv'})
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ): sequence item 32: expected str instance, bool found
failed: [cfsand05v.psb.bls.gov -> 127.0.0.1] (item={'src': 'client_preflight_report.html.j2', 'dest': 'client_preflight_report.html'}) => {"ansible_loop_var": "item", "changed": false, "item": {"dest": "client_preflight_report.html", "src": "client_preflight_report.html.j2"}, "msg": "AnsibleError: Unexpected templating type error occurred on ({# Imports #}\r\n{% import 'client_preflight_report_common.html.j2' as report with context %}\r\n\r\n{# Globals #}\r\n{% set report_name = 'Client Preflight Report' %}\r\n\r\n{# HTML head #}\r\n{{ report.head(report_name) }}\r\n\r\n{# HTML body #}\r\n\r\n\r\n {# Create overall page container #}\r\n <div class="container-fluid">\r\n\r\n {# Title #}\r\n {{ report.title(report_name) }}\r\n\r\n {# Data table #}\r\n {{ report.table() }}\r\n \r\n {# Footer #}\r\n {{ report.footer(collection_version, now(fmt='%Y-%m-%d %H:%M:%S')) }}\r\n\r\n {# JS libraries #}\r\n {{ report.libraries() }}\r\n\r\n {# Table data #}\r\n {{ report.table_data() }}\r\n\r\n {# Table detail formatter #}\r\n {{ report.table_detail_formatter() }}\r\n\r\n {# Table detail copy tooltip #}\r\n {{ report.table_detail_tooltip() }}\r\n\r\n {# Table cell style #}\r\n {{ report.table_cell_style() }}\r\n\r\n \r\n\r\n\r\n\r\n{# HTML end #}\r\n{{ report.end() }}\r\n): sequence item 32: expected str instance, bool found"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions