localrepo.yml 399 B

1234567891011121314
  1. ---
  2. - hosts: nodes
  3. tasks:
  4. - command: "{{ ansible_pkg_mgr }} install buildah -y"
  5. - name: Transfer the buildah script
  6. template:
  7. src: buildah_repo.sh
  8. dest: /root
  9. - name: Execute buildah script
  10. command: sh /root/buildah_repo.sh
  11. - name: Create local repo file
  12. copy:
  13. src: openshift-local.repo
  14. dest: /etc/yum.repos.d/openshift-local.repo