so, my suggestion was to add stdout_callback = yaml to the [defaults] section of that file and see whether the output suits you better.
> On 08/28/2023 1:11 PM CEST Veera <[email protected]> wrote: > > > my ansible.cfg is a custom one which I am using from the same location and it > has no more specific lines to format. > > $ansible --version | grep 'ansible.cfg' > config file = /home/myuser/ansible/ansible.cfg > $pwd > /home/myuser/ansible/ > $ cat ansible.cfg > [defaults] > inventory = ./inventory > host_key_checking = False > $ > On Monday, August 28, 2023 at 2:59:06 PM UTC+5:30 [email protected] wrote: > > > no ansible.cfg involved seems impossible to me. > > > > ansible --version | grep 'ansible.cfg' (in the location you run the > > playbook from) should reveal which one is effective. > > > > Or am I understanding something badly wrong here? > > > > > > > On 08/28/2023 11:22 AM CEST Veera <[email protected]> wrote: > > > > > > > > > Hi , > > > > > > Sorry ... No ansible.cfg involved. > > > After multiple filtering of (the output) I reached to this output. > > > I want to enhance it further . > > > > > > On Monday, August 28, 2023 at 2:47:42 PM UTC+5:30 [email protected] > > > wrote: > > > > > > > wondering whether stdout_callback: yaml in the ansible.cfg might be > > > > doing that > > > > > > > > > > > > > > > > > > On 08/28/2023 10:56 AM CEST Veera <[email protected]> wrote: > > > > > > > > > > > > > > > Hi, > > > > > > > > > > My play book print the debug output as below > > > > > TASK [Print the status of the server] > > > > > ******************************************************************************************* > > > > > ok: [localhost] => { > > > > > "msg": [ > > > > > "Extension Message: Patching Successful. > > > > > [ActivityId=xxxxxxx-1f8f-4e44-95af-xxxxxxxxxxxx], OperationResult: > > > > > {\"activityId\": \"xxxxxxx-1f8f-4e44-95af-xxxxxxxxxxxx\", > > > > > \"sequenceNumber\": 8, \"inputStartTime\": > > > > > \"2023-08-28T05:45:40.500520Z\", \"lastModifiedTime\": > > > > > \"2023-08-28T06:14:43.449672Z\", \"extensionTriggerTime\": > > > > > \"2023-08-28T05:45:53.268037Z\", \"osName\": \"CentOS Stream\", > > > > > \"osVersion\": \"8\", \"action\": \"Patching\", \"actionStatus\": > > > > > \"Success\", \"patchServiceUsed\": \"YUM\", \"errors\": null, > > > > > \"patchDetails\": {\"rebootNeeded\": true, \"rebootStatus\": > > > > > \"Completed\", \"maintenanceWindowExceeded\": false, > > > > > \"retriggerCount\": 61, \"notSelectedPatchCount\": 0, > > > > > \"pendingPatchCount\": 0, \"installedPatchCount\": 98, > > > > > \"failedPatchCount\": 0, \"patches\": > > > > > \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=\", > > > > > \"excludedPatchCount\": 0}, \"assessmentDetails\": > > > > > {\"countByCategory\": {\"security\": 0, \"other\": 0}, > > > > > \"totalCount\": 0, \"patches\": \"XXXXXXXXXXXXX==\", > > > > > \"rebootPending\": null}, \"logs\": > > > > > \"yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"}" > > > > > ] > > > > > } > > > > > > > > > > I need to break the output like below > > > > > > > > > > Extension Message: Patching Successful. > > > > > [ActivityId=xxxxxxx-1f8f-4e44-95af-xxxxxxxxxxxx] > > > > > OperationResult: activityId: xxxxxxx-1f8f-4e44-95af-xxxxxxxxxxxx > > > > > sequenceNumber: 8 > > > > > inputStartTime: 2023-08-28T05:45:40.500520Z > > > > > lastModifiedTime: "2023-08-28T06:14:43.449672Z > > > > > > > > > > and so on.. > > > > > > > > > > > > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > mailto:[email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/9a1a2eea-2b38-412e-9fcb-a4f7afd6e485n%40googlegroups.com > > https://groups.google.com/d/msgid/ansible-project/9a1a2eea-2b38-412e-9fcb-a4f7afd6e485n%40googlegroups.com?utm_medium=email&utm_source=footer. > --- gunnar wagner | fichtestr. 1, 19386 lübz | fon: 0176 7808 9090 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/724947285.131136.1693221583634%40office.mailbox.org.
