From 6d756fb29b2e980eb0e81cd16c68012458bd45ba Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 2 Feb 2015 03:31:17 +0000 Subject: [PATCH] This sed is idempotent --- roles/pkgdb2/tasks/main.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/roles/pkgdb2/tasks/main.yml b/roles/pkgdb2/tasks/main.yml index 1bf3413ba3..4f882c2526 100644 --- a/roles/pkgdb2/tasks/main.yml +++ b/roles/pkgdb2/tasks/main.yml @@ -1,11 +1,6 @@ --- # Configuration for the pkgdb2 webapp -- name: clean yum metadata - command: yum clean all - tags: - - packages - - name: install needed packages yum: pkg={{ item }} state=present with_items: @@ -40,6 +35,7 @@ - name: create the database scheme command: /usr/bin/python2 /usr/share/pkgdb2/pkgdb2_createdb.py + changed_when: "1 != 1" environment: PKGDB2_CONFIG: /etc/pkgdb2/pkgdb2.cfg @@ -68,6 +64,7 @@ - name: update the base_url in update_package_info command: sed -i -e 's|https://dl.fedoraproject.org|http://dl.phx2.fedoraproject.org|' /usr/bin/update_package_info.py + changed_when: "1 != 1" tags: - config