From 4cec7a28d795658e121789b5913b88903decd6f4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 25 Jun 2016 22:09:52 +0000 Subject: [PATCH] Drop seperate yum clean all calls. --- roles/anitya/backend/tasks/main.yml | 8 +------- roles/anitya/frontend/tasks/main.yml | 8 +------- roles/copr/backend/tasks/main.yml | 3 --- roles/gallery/tasks/main.yml | 7 +------ roles/ipsilon/tasks/main.yml | 8 +------- roles/kerneltest/tasks/main.yml | 8 +------- roles/mirrormanager/backend/tasks/main.yml | 7 +------ roles/mirrormanager/crawler/tasks/main.yml | 7 +------ roles/mirrormanager/frontend2/tasks/main.yml | 8 +------- roles/repo2json/tasks/main.yml | 8 +------- 10 files changed, 9 insertions(+), 63 deletions(-) diff --git a/roles/anitya/backend/tasks/main.yml b/roles/anitya/backend/tasks/main.yml index 7fad7048c9..abd3616665 100644 --- a/roles/anitya/backend/tasks/main.yml +++ b/roles/anitya/backend/tasks/main.yml @@ -1,14 +1,8 @@ --- # Configuration for the anitya webapp -- name: clean yum metadata - command: yum clean all - tags: - - packages - - anitya_backend - - name: install needed packages - yum: pkg={{ item }} state=present + yum: pkg={{ item }} state=present update_cache=yes with_items: - anitya - python-psycopg2 diff --git a/roles/anitya/frontend/tasks/main.yml b/roles/anitya/frontend/tasks/main.yml index 77fb755d25..58f1bcf7fe 100644 --- a/roles/anitya/frontend/tasks/main.yml +++ b/roles/anitya/frontend/tasks/main.yml @@ -1,14 +1,8 @@ --- # Configuration for the anitya webapp -- name: clean yum metadata - command: yum clean all - tags: - - packages - - anitya_frontend - - name: install needed packages - yum: pkg={{ item }} state=present + yum: pkg={{ item }} state=present update_cache=yes with_items: - anitya - python-psycopg2 diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index 887ad5de48..ddef4b3c37 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -30,9 +30,6 @@ - /var/lib/copr/jobs - /var/lib/copr/public_html/results -- name: Umask results - command: /usr/bin/umask 0000 chdir=/var/lib/copr/public_html/results - - name: setup dirs there file: state=directory path="/home/copr/{{ item }}" owner=copr group=copr mode=0700 with_items: diff --git a/roles/gallery/tasks/main.yml b/roles/gallery/tasks/main.yml index cb893a0cb8..9e825de1b3 100644 --- a/roles/gallery/tasks/main.yml +++ b/roles/gallery/tasks/main.yml @@ -1,13 +1,8 @@ --- # Configuration for the gallery webapp -- name: clean yum metadata - command: yum clean all - tags: - - packages - - name: install needed packages - yum: pkg={{ item }} state=present + yum: pkg={{ item }} state=present update_cache=yes with_items: - gallery3 - gallery3-openid diff --git a/roles/ipsilon/tasks/main.yml b/roles/ipsilon/tasks/main.yml index e0f9a0e173..c6f3451b27 100644 --- a/roles/ipsilon/tasks/main.yml +++ b/roles/ipsilon/tasks/main.yml @@ -1,14 +1,8 @@ --- # Configuration for the ipsilon webapp -- name: clean yum metadata - command: yum clean all - changed_when: False - tags: - - packages - - name: install needed packages - yum: pkg={{ item }} state=present + yum: pkg={{ item }} state=present update_cache=yes with_items: - ipsilon - ipsilon-authfas diff --git a/roles/kerneltest/tasks/main.yml b/roles/kerneltest/tasks/main.yml index bad31bf15f..da099a0d4f 100644 --- a/roles/kerneltest/tasks/main.yml +++ b/roles/kerneltest/tasks/main.yml @@ -1,14 +1,8 @@ --- # Configuration for the kerneltest webapp -- name: clean yum metadata - command: yum clean all - tags: - - packages - - kerneltest - - name: install needed packages - yum: pkg={{ item }} state=present + yum: pkg={{ item }} state=present update_cache=yes with_items: - kerneltest - python-psycopg2 diff --git a/roles/mirrormanager/backend/tasks/main.yml b/roles/mirrormanager/backend/tasks/main.yml index 44a6f257f7..bc8a60d17f 100644 --- a/roles/mirrormanager/backend/tasks/main.yml +++ b/roles/mirrormanager/backend/tasks/main.yml @@ -1,13 +1,8 @@ --- # Configuration for the mirrormanager backend -- name: clean yum metadata - command: yum clean all - tags: - - packages - - name: install needed packages - yum: pkg={{ item }} state=present + yum: pkg={{ item }} state=present update_cache=yes with_items: - mirrormanager2-backend - mirrormanager2-statistics diff --git a/roles/mirrormanager/crawler/tasks/main.yml b/roles/mirrormanager/crawler/tasks/main.yml index e3c25f9bd0..cde6379255 100644 --- a/roles/mirrormanager/crawler/tasks/main.yml +++ b/roles/mirrormanager/crawler/tasks/main.yml @@ -1,13 +1,8 @@ --- # Configuration for MirrorManager's crawler -- name: clean yum metadata - command: yum clean all - tags: - - packages - - name: install needed packages - yum: pkg={{ item }} state=present + yum: pkg={{ item }} state=present update_cache=yes with_items: - mirrormanager2-crawler - python-psycopg2 diff --git a/roles/mirrormanager/frontend2/tasks/main.yml b/roles/mirrormanager/frontend2/tasks/main.yml index 43c906f190..f7292a25c8 100644 --- a/roles/mirrormanager/frontend2/tasks/main.yml +++ b/roles/mirrormanager/frontend2/tasks/main.yml @@ -1,14 +1,8 @@ --- # tasklist for setting up the mirrormanager web application -- name: clean yum metadata - command: yum clean all - tags: - - mm2_frontend - - packages - - name: install needed packages - yum: pkg={{ item }} state=present + yum: pkg={{ item }} state=present update_cache=yes with_items: - mirrormanager2 - python-psycopg2 diff --git a/roles/repo2json/tasks/main.yml b/roles/repo2json/tasks/main.yml index c6b96f395e..47ff67788b 100644 --- a/roles/repo2json/tasks/main.yml +++ b/roles/repo2json/tasks/main.yml @@ -1,14 +1,8 @@ --- # Configuration for the fedocal webapp -- name: clean yum metadata - command: yum clean all - tags: - - packages - - repo2json - - name: Install necessary packages - yum: pkg={{ item }} state=present + yum: pkg={{ item }} state=present update_cache=yes with_items: - python-sqlalchemy0.7 - pyliblzma