Skip to content

Instantly share code, notes, and snippets.

@rcarrata
Created October 22, 2019 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcarrata/891c29b5ee42017b95cc72f4480ba394 to your computer and use it in GitHub Desktop.
Save rcarrata/891c29b5ee42017b95cc72f4480ba394 to your computer and use it in GitHub Desktop.
#!/bin/bash
## Workaround for fix the bug
## https://github.com/ansible/workshops/pull/498/files
sudo yum-config-manager --disable rhui-REGION-rhel-server-extras
sudo yum-config-manager --disable rhui-REGION-rhel-server-rhscl
sed -i.bak 's/rhui-REGION-rhel-server-extras/rhel-7-server-rhui-extras-rpms/g' roles/repos_el/vars/RedHat-7.yml
sed -i.bak 's/rhui-REGION-rhel-server-rhscl/rhel-server-rhui-rhscl-7-rpms/g' roles/repos_el/vars/RedHat-7.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment