First clone openshift-ansible repo.
$ git clone --depth=1 --branch=release-3.11 https://github.com/openshift/openshift-ansible.git
Then build base image as described in the YAML.
$ cd openshift-ansible
$ BUILDAH_LAYERS=false sudo podman build -f images/installer/Dockerfile -t ocp-ansible --layers=false .
Run the image and prepare for RPM building
$ sudo podman run -t -a STDIN -a STDOUT -a STDERR --rm=true -u root ocp-ansible /bin/bash
# yum install tito createrepo
# git clone https://github.com/openshift/openshift-ansible.git --depth=1 --branch=release-3.11
# git config --add user.email myemail@example.com
# git config --add user.name myname
Build RPMs as pointed in the rpm building section of the YAML with slight modifications. In bold I write things that differ.
# tito tag --offline --no-auto-changelog
# tito build --output="_output/local/releases" --rpm --test --offline --quiet
# createrepo _output/local/releases/noarch
Now RPM repo is under
`_output/local/releases/noarch/`
. Copy it to a web server or locally on the machine where you would run the installation. Then create a file /etc/yum.repos.d/my-ocp-ansible.conf
:[tmp-openshift-ansible]
baseurl = <file:// or http:// url of RPM repo>
enabled = 1
gpgcheck = 0
name = Custom built OpenShift Ansible repo
Finally perform the installation as described in the official docs.
$ ansible-playbook ....
Make sure that you see your RPMs in the install log under
`List all openshift ansible packages`
.