case node['platform_version'] when "24.04" directory "/etc/apt/apt.conf.d/bk/" %w( 20apt-esm-hook.conf ).each do |conf| execute "mv /etc/apt/apt.conf.d/#{conf} /etc/apt/apt.conf.d/bk/#{conf}" execute "touch /etc/apt/apt.conf.d/#{conf}" end execute 'pro config set apt_news=false' end