we can use our own repo, if we deploy hosts file first

This commit is contained in:
Miroslav Suchý 2014-06-20 09:14:04 +00:00
parent aa8c988160
commit 8b8c2b3a81

View file

@ -29,9 +29,12 @@
- name: mount up bind mount for postgres
action: mount src=/srv/copr-fe/pgsqldb name=/var/lib/pgsql fstype=auto opts=bind state=mounted
# we could not use ourself repo :(
#- name: copy copr.repo
# action: copy src=$files/copr/fe/yum/copr.repo dest=/etc/yum.repos.d/copr.repo
- name: deploy /etc/hosts file
action: copy src="{{ files }}/copr/hosts" dest=/etc/hosts owner=root group=root mode=644
- name: copy copr.repo
action: copy src=$files/copr/fe/yum/copr.repo dest=/etc/yum.repos.d/copr.repo
- name: set the hostname
shell: hostname copr-fe.cloud.fedoraproject.org
@ -39,9 +42,6 @@
- name: copy .forward file
action: copy src="{{ files }}/copr/forward" dest=/root/.forward owner=root group=root
- name: deploy /etc/hosts file
action: copy src="{{ files }}/copr/hosts" dest=/etc/hosts owner=root group=root mode=644
- name: install copr-fe pkgs
action: yum state=latest pkg={{ item }}
with_items: