[ocds] clean all yum metadata before install packages

This commit is contained in:
Qixiang Wan 2017-09-22 11:20:18 +00:00
parent 4471564913
commit 10097178ed

View file

@ -91,6 +91,16 @@
mountdir: /srv/odcs
when: env != 'staging'
- name: Clean all yum metadata
hosts: odcs-backend-stg:odcs-frontend-stg
user: root
gather_facts: True
tasks:
- name: clean all yum metadata
command: yum clean all
check_mode: no
- name: Set up odcs frontend service
hosts: odcs-frontend:odcs-frontend-stg
user: root
@ -108,7 +118,7 @@
handlers:
- include: "{{ handlers_path }}/restart_services.yml"
- name: set up odcs backend service
- name: Set up odcs backend service
hosts: odcs-backend:odcs-backend-stg
user: root
gather_facts: True