deploy /etc/hosts with internal IPs from Fedora Cloud
This commit is contained in:
parent
3349c7b8ac
commit
e41a87ada3
3 changed files with 13 additions and 0 deletions
7
files/copr/hosts
Normal file
7
files/copr/hosts
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
|
||||||
|
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
|
||||||
|
172.16.5.6 copr-fe.cloud.fedoraproject.org
|
||||||
|
172.16.5.6 copr.fedoraproject.org
|
||||||
|
172.16.5.4 copr-be.cloud.fedoraproject.org
|
||||||
|
172.16.5.5 copr-be-dev.cloud.fedoraproject.org
|
||||||
|
172.16.5.15 copr-fe-dev.cloud.fedoraproject.org
|
|
@ -46,6 +46,9 @@
|
||||||
- name: copy .forward file
|
- name: copy .forward file
|
||||||
action: copy src="{{ files }}/copr/forward" dest=/root/.forward owner=root group=root
|
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
|
||||||
|
|
||||||
# packages needed
|
# packages needed
|
||||||
- name: add packages for copr-be
|
- name: add packages for copr-be
|
||||||
action: yum state=present name={{ item }}
|
action: yum state=present name={{ item }}
|
||||||
|
|
|
@ -39,6 +39,9 @@
|
||||||
- name: copy .forward file
|
- name: copy .forward file
|
||||||
action: copy src="{{ files }}/copr/forward" dest=/root/.forward owner=root group=root
|
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
|
- name: install copr-fe pkgs
|
||||||
action: yum state=latest pkg={{ item }}
|
action: yum state=latest pkg={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue