Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
F
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
run.Raw(str_args)
]
)
+ # cleanup the ansible ppa repository we added
+ # and also remove the dependency pkgs we installed
+ if installer_node.os.package_type == 'deb':
+ installer_node.run(args=[
+ 'sudo',
+ 'add-apt-repository',
+ '--remove',
+ run.Raw('ppa:ansible/ansible'),
+ ])
+ installer_node.run(args=[
+ 'sudo',
+ 'apt-get',
+ 'update',
+ ])
+ installer_node.run(args=[
+ 'sudo',
+ 'apt-get',
+ 'remove',
+ '-y',
+ 'ansible',
+ 'libssl-dev',
+ 'libffi-dev',
+ 'python-dev'
+ ])
+ else:
+ # cleanup rpm packages the task installed
+ installer_node.run(args=[
+ 'sudo',
+ 'yum',
+ 'remove',
+ '-y',
+ 'libffi-devel',
+ 'python-devel',
+ 'openssl-devel',
+ 'libselinux-python'
+ ])
def collect_logs(self):
ctx = self.ctx