Skip to content

Commit 657d8cf

Browse files
sam-githubmhdawson
authored andcommitted
ansible: install devtools-6 on rhel-s390x
PR-URL: #1755 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 67bee15 commit 657d8cf

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

  • ansible/roles/jenkins-worker/tasks

ansible/roles/jenkins-worker/tasks/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,27 @@
6464
state: link
6565
when: "'rhel72-s390x' in inventory_hostname"
6666

67+
# devtools6_s390x_src should be defined in the host_vars file to be one of
68+
# current hosts that has set RPMs already (in /data/devtoolset-6-s390x-rpms/).
69+
# Example:
70+
# devtools6_s390x_src: test-linuxonecc-rhel72-s390x-1
71+
- name: copy devtools-6 to control host
72+
local_action: command rsync -ar {{ devtools6_s390x_src }}:/data/devtoolset-6-s390x-rpms/ /tmp/devtoolset-6-s390x-rpms/
73+
when: "'rhel72-s390x' in inventory_hostname"
74+
75+
- name: copy devtools-6 to remote host
76+
synchronize:
77+
src: /tmp/devtoolset-6-s390x-rpms/
78+
dest: /data/devtoolset-6-s390x-rpms/
79+
recursive: true
80+
when: "'rhel72-s390x' in inventory_hostname"
81+
82+
- name: install devtools-6 on remote host
83+
shell: yum install -y /data/devtoolset-6-s390x-rpms/*
84+
async: 3600
85+
poll: 10
86+
when: "'rhel72-s390x' in inventory_hostname"
87+
6788
- name: add ::1 to /etc/hosts for ipv6 compat
6889
when: not os|startswith("zos")
6990
lineinfile:

0 commit comments

Comments
 (0)