mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-01 05:51:56 +08:00
deploy /etc/hosts with internal IPs from Fedora Cloud
This commit is contained in:
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
|
||||
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
|
||||
- name: add packages for copr-be
|
||||
action: yum state=present name={{ item }}
|
||||
|
||||
@@ -39,6 +39,9 @@
|
||||
- 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:
|
||||
|
||||
Reference in New Issue
Block a user