createrepo_directive - create a YUM repository from RPM packages using createrepo

New in version 0.4.

Take a directory containing RPM packages and run createrepo command on it, which creates YUM repository metadata inside of it.

Parameters

parameter required description type default choices

repodir

yes

absolute or relative path to the directory containing RPM files (the task directory is considered the current working directory)

str

    Return Values

    Standard output (string) of the createrepo process.

    Exceptions

    Examples

    First, download all required RPMs, then create a YUM repository in that directory:

    - name: download koji tag
      koji:
          action: download_tag
          koji_tag: ${koji_tag}
          arch: ${arch}
          target_dir: ${workdir}/downloaded_tag/
    
    - name: create YUM repository metadata
      createrepo:
          repodir: ${workdir}/downloaded_tag/