diff --git a/manifests/plugin/ansible/runner.pp b/manifests/plugin/ansible/runner.pp index fdec1900..8111f5b8 100644 --- a/manifests/plugin/ansible/runner.pp +++ b/manifests/plugin/ansible/runner.pp @@ -5,13 +5,6 @@ class foreman_proxy::plugin::ansible::runner ( String $package_name = $foreman_proxy::plugin::ansible::runner_package_name, ) { - if $facts['os']['family'] == 'RedHat' { - yumrepo { 'ansible-runner': - ensure => absent, - before => Package[$package_name], - } - } - package { $package_name: ensure => 'installed', } diff --git a/spec/classes/foreman_proxy__plugin__ansible_spec.rb b/spec/classes/foreman_proxy__plugin__ansible_spec.rb index 10f43c1e..68a187b0 100644 --- a/spec/classes/foreman_proxy__plugin__ansible_spec.rb +++ b/spec/classes/foreman_proxy__plugin__ansible_spec.rb @@ -16,11 +16,6 @@ it { should contain_package('python3-ansible-runner').with_ensure('installed') } it { should contain_package('ansible-collection-theforeman-foreman').with_ensure('installed') } when 'redhat-7-x86_64' - it 'should include ansible-runner upstream repo' do - should contain_yumrepo('ansible-runner') - .with_ensure('absent') - .that_comes_before('Package[ansible-runner]') - end it { should contain_package('ansible-runner').with_ensure('installed') } it { should contain_package('ansible-collection-theforeman-foreman').with_ensure('installed') } end @@ -68,7 +63,6 @@ it { should_not contain_apt__source('ansible-runner') } it { should contain_package('python3-ansible-runner').with_ensure('installed') } when 'redhat-7-x86_64' - it { should_not contain_yumrepo('ansible-runner') } it { should contain_package('ansible-runner').with_ensure('installed') } end @@ -105,7 +99,6 @@ it 'should not contain ansible-runner' do should_not contain_class('foreman_proxy::plugin::ansible::runner') should_not contain_apt__source('ansible-runner') - should_not contain_yumrepo('ansible-runner') should_not contain_package('ansible-runner') should_not contain_package('python3-ansible-runner') end