Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Functioning without IBM.infosvr-metadata-asset-manager #27

@timrburnham

Description

@timrburnham

My organization only uses this role to deploy the Client tier, not Services/Engine/other tiers. For this reason, we have not installed IBM.infosvr-metadata-asset-manager. That causes this error, excuse me for omitting paths:

statically imported: [PATH]/roles/IBM.infosvr/tasks/configure/configure-ia.yml
ERROR! the role 'IBM.infosvr-metadata-asset-manager' was not found in [PATH]/roles:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:[PATH]

Ansible documentation for the related import_role points out:

  • Most keywords, loops and conditionals will only be applied to the imported tasks, not to this statement itself. If you want the opposite behavior, use include_role instead.

(The import_tasks documentation doesn't draw the distinction between import and include, but it probably should--it clearly still applies).

include_tasks does not cooperate with become, so I did the following in tasks/configure.yml for the 2 tasks which import IBM.infosvr-metadata-asset-manager:

-- import_tasks: configure/configure-ia.yml
+- include_tasks: configure/configure-ia.yml
-  become_user: root
-  become: yes
  when: __ibm_infosvr_features.ia
-- import_tasks: configure/configure-em.yml
+- include_tasks: configure/configure-em.yml
-  become_user: root
-  become: yes
  when: __ibm_infosvr_features.event_mgmt

I won't be able to submit a PR, as I am unable to complete testing in our environment. Don't wanna break anything for people actually using this feature. But I suspect the become options can be shoved down further into the task itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions