Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow emgr to accept list of files as list and not just as file #385

Open
syahrul-aiman opened this issue Dec 10, 2023 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@syahrul-aiman
Copy link
Contributor

syahrul-aiman commented Dec 10, 2023

referring to the emgr module.

currently, the module accepts list_file as parameter which takes a file, containing a list of paths or labels.

Instead of this, can you create another parameter such as ifix_packages (or reuse the same parameter) to accept list of paths to the ifixes?

With that, it will create a temporary file containing this list of paths, which emgr will use -f to execute as well.

Example:

- name: install fixes
  ibm.power_aix.emgr:
    action: install
    from_epkg: true
    ifix_packages:
      - /usr/sys/inst.images/IJ43869m5b.230216.epkg.Z
      - /usr/sys/inst.images/IJ42339s5a.221212.epkg.Z
    extend_fs: true
  register: results
@syahrul-aiman
Copy link
Contributor Author

Additional question. Most of the time, there's not many ifixes to be removed or to be installed. Will it be better to iterate the list of ifixes, or just to use list_file to perform the action?

@nitismis nitismis added the enhancement New feature or request label Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants