When running the role twice, the second run fails to update the ODL RPM
repository configuration file because the old file still exists.
Explicitly remove the old file before installing a new one.
Change-Id: I2c5334e30ec72406ba801f0378e6d960312ac288
JIRA: INTPAK-29
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
-- name: Download ODL yum repo
+- name: Remove old ODL yum repo cfg file
+ file:
+ state: absent
+ path: /etc/yum.repos.d/opendaylight.repo
+- name: Download ODL yum repo cfg file
get_url:
url={{ rpm_repo_url }}
dest=/etc/yum.repos.d/opendaylight.repo
-- name: Set ODL yum repo file properties
+- name: Set ODL yum repo cfg file properties
file:
path=/etc/yum.repos.d/opendaylight.repo
owner=root