-name:Remove Rackspace APT repofile:path:/etc/apt/sources.list.d/ospc.liststate:absentregister:rax_apt_repo_removed-name:Remove Rackspace signing keywhen:rax_apt_repo_removed.changedcommand:apt-key del 4096R/CB1EF1DB-name:Configure apt retriescopy:mode:0444src:80retrydest:/etc/apt/apt.conf.d/80retry-name:Disable apt translationscopy:mode:0444src:90no-translationsdest:/etc/apt/apt.conf.d/90no-translations-name:Always install latest packagescopy:mode:0444src:95phased-updatesdest:/etc/apt/apt.conf.d/95phased-updates-name:Replace sources.list filecopy:src:'sources.list.{{ansible_facts.lsb.codename}}.{{ansible_facts.architecture}}'dest:/etc/apt/sources.listnotify:Update apt cache-name:Configure Ubuntu ESMblock:# Note technically this requires ubuntu-advantage-tools to be installed# but the above notify to update apt caches won't have run by the time# we get here. That should be ok because the Xenial nodes have all been# around long enough to have ua installed.-name:Get UA statuscommand:"uastatus"register:uastatus-name:Attach UAcommand:"uaattach--no-auto-enable{{ubuntu_advantage_token}}"when:"'ThismachineisnotattachedtoaUAsubscription.'inuastatus.stdout"no_log:true-name:Enable ESMcommand:"uaenableesm-infra"when:"'esm-infrayesenabled'notinuastatus.stdout"when:-ubuntu_advantage_token is defined-enable_ubuntu_esm is defined and enable_ubuntu_esm-ansible_distribution == 'Ubuntu'-ansible_distribution_release == 'xenial'