Skip to content

Commit

Permalink
Merge pull request #176 from yussufsh/release-4.6
Browse files Browse the repository at this point in the history
Fix Ansible install on CentOS (#175)
  • Loading branch information
ltccci authored Feb 25, 2021
2 parents 0d1429d + 6f92150 commit f9c3180
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions modules/1_bastion/bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@ resource "null_resource" "bastion_register" {
provisioner "remote-exec" {
inline = [<<EOF
# FIX for existing stale repos
echo 'Moving all file from /etc/yum.repos.d/ to /etc/yum.repos.d.bak/'
mkdir /etc/yum.repos.d.bak/ && mv /etc/yum.repos.d/* /etc/yum.repos.d.bak/
# Give some more time to subscription-manager
sudo subscription-manager config --server.server_timeout=600
sudo subscription-manager clean
Expand Down Expand Up @@ -219,7 +216,6 @@ EOF
}

resource "null_resource" "enable_repos" {
count = ( var.rhel_subscription_username == "" || var.rhel_subscription_username == "<subscription-id>" ) && var.rhel_subscription_org == "" ? 0 : 1
depends_on = [null_resource.bastion_init, null_resource.setup_proxy_info, null_resource.bastion_register]

connection {
Expand Down

0 comments on commit f9c3180

Please sign in to comment.