The goalpost keeps moving! Is this (the six lines of data below) from one column of an Excel sheet? From what you described before, I expected

|Linux hostname00 4.18.0-193.el8.x86_64 Linux hostname01 4.13.2-120.el8.x86_64 Linux hostname03 4.18.0-193.el8.x86_64 Linux hostname04 4.13.2-120.el8.x86_64 [...etc...] |

But now I’m seeing two /identical/ lines following that pattern, mixed with other lines we’ve not heard about before, and nothing to map the “^Linux” lines to actual hosts' names.

Or is the “Expected value” one column heading, while “Installed Packeages” [sic] is a second column heading and it just got stuck under the first b/c it was exported from Excel as a .txt file? But which host(s) are the Installed Packages matched up with, and how? Or maybe there’s a separate sheet per host in the Excel workbook? It looks like it didn’t survive exporting from Excel particularly well.

And, now that I’m seeing the “Installed Packeages” bit, I’m expecting that to turn into one or more Ansible “package” module steps, in which case there’s some other non-trivial work ahead to transform this requirements-as-spreadsheet into actionable Ansible yaml inputs, in which case the prior exercise is probably moot.

I really want this to work for you. Perhaps it would be helpful to provide the input data spreadsheet as provided by the customer before it’s undergone exporting or other transformations. Although I understand if you need to obfuscate hostnames. If you do, don’t change them all to the same string. Are the two instances of “hostname” below really literally “hostname” (and therefore identical), or do they stand in for originally distinct hosts’ names? And how do those hosts map to sets of installed packages?

On 1/4/22 11:24 AM, Marian Saldhana wrote:

For eg:

Expected value
Red Hat EnterpriseLinux release 8.2 (Ootpa)
Linux hostname 4.18.0-193.el8.x86_64
Linux hostname 4.18.0-193.el8.x86_64
Installed Packeages
FJSVsnap.noarch    7.00-1    @System

On Tuesday, January 4, 2022 at 9:11:11 PM UTC+5:30 Marian Saldhana wrote:

    Hi Todd,

    Our customer has provided the values in a excel document

    On Tue 4 Jan, 2022, 18:15 Todd Lewis, <[email protected]> wrote:

        I just used a text editor ("ne", not that it matters) and
        followed the example you provided.

        How is your customer providing those values to you?

        On 1/4/22 4:59 AM, Marian Saldhana wrote:
        Hi Todd,

        Can you please let me know how you have entered expected
        values in customer-expects.txt ( in the sample playbook that
        you had provided earlier )


--
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/afe416d8-d943-8bf6-26bc-40ba783c4826%40gmail.com.

Reply via email to