Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Running the playbooks from newly provisioned ansible control node produced the attached error.

      For this task, please review error report and investigate why the error has occurred. Add a note here indicating the cause and potential fix. (For example, the problem could be a misconfiguration of the control node.)

        Attachments

          Issue Links

            Activity

            Hide
            cdias1 Chester Dias (Inactive) added a comment -

            This was not an error as such. Somewhere in the text was a message "msg": "Aborting since identical entry of instance has been found" .....It was a forced failure to create a new EC2 since we dont create 2 EC2 instances with the same name.

            I went and tried some changes to remove the clutter of messages that make it hard to spot the error.
            Below config changes will do the following
            Improve the output of ansible executions is still in progress

            Below Config change is needed to be added to file /etc/ansible/ansible.cfg.
            display_skipped_hosts = no
            stdout_callback = yaml

            Show
            cdias1 Chester Dias (Inactive) added a comment - This was not an error as such. Somewhere in the text was a message "msg": "Aborting since identical entry of instance has been found" .....It was a forced failure to create a new EC2 since we dont create 2 EC2 instances with the same name. I went and tried some changes to remove the clutter of messages that make it hard to spot the error. Below config changes will do the following Improve the output of ansible executions is still in progress Below Config change is needed to be added to file /etc/ansible/ansible.cfg. display_skipped_hosts = no stdout_callback = yaml
            Hide
            ann.loraine Ann Loraine added a comment -

            Can you make these changes somewhere in the ansible playbooks themselves so that I do not have to modify system-wide ansible settings?

            Show
            ann.loraine Ann Loraine added a comment - Can you make these changes somewhere in the ansible playbooks themselves so that I do not have to modify system-wide ansible settings?
            Hide
            ann.loraine Ann Loraine added a comment -

            Perhaps we can add an ansible.cfg to the repository?

            Show
            ann.loraine Ann Loraine added a comment - Perhaps we can add an ansible.cfg to the repository?
            Hide
            cdias1 Chester Dias (Inactive) added a comment -

            It is not a great idea to add the ansible.cfg to the same repo...

            Show
            cdias1 Chester Dias (Inactive) added a comment - It is not a great idea to add the ansible.cfg to the same repo...
            Hide
            ann.loraine Ann Loraine added a comment -

            In that case, do please modify the playbooks so that they will work as desired without requiring additional configurations to the system-wide ansible.cfg.

            Show
            ann.loraine Ann Loraine added a comment - In that case, do please modify the playbooks so that they will work as desired without requiring additional configurations to the system-wide ansible.cfg.
            Hide
            cdias1 Chester Dias (Inactive) added a comment -

            There is something called ansible plugins.... i believe the plugin to be used for the purpose of handling additional text in the output is callback plugin skippy.....and using environment variables....tried several iterations also to override ansible.cfg variables...
            To override the default ansible.cfg
            simply place a cfg in the same folder as main.yml
            the issue with this approach is it overrides the whole file.

            plugins is the best approach but there is not many people who use plugins to information availability on how to use the skippy is less....still working on it

            Show
            cdias1 Chester Dias (Inactive) added a comment - There is something called ansible plugins.... i believe the plugin to be used for the purpose of handling additional text in the output is callback plugin skippy.....and using environment variables....tried several iterations also to override ansible.cfg variables... To override the default ansible.cfg simply place a cfg in the same folder as main.yml the issue with this approach is it overrides the whole file. plugins is the best approach but there is not many people who use plugins to information availability on how to use the skippy is less....still working on it
            Hide
            cdias1 Chester Dias (Inactive) added a comment -

            A local config file has been created to manage the ansible output added with commit IGBF-2311: Created a local config which will help to remove the skipped messages and improve the output text format

            Show
            cdias1 Chester Dias (Inactive) added a comment - A local config file has been created to manage the ansible output added with commit IGBF-2311 : Created a local config which will help to remove the skipped messages and improve the output text format

              People

              • Assignee:
                cdias1 Chester Dias (Inactive)
                Reporter:
                ann.loraine Ann Loraine
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: