ansible/autoland: use mercurial-yum role to install Mercurial (bug 1333616); r?glob draft
authorGregory Szorc <gps@mozilla.com>
Mon, 03 Apr 2017 11:57:07 -0700
changeset 10628 8b510e1685f053cb8dd10168fbf8257805ccf899
parent 10627 e916828a95af348ca590d97cd08488a50224dedc
child 10629 224ed8d7c4a8fb0c1dc66023222283d60cf7e987
push id1600
push userbmo:gps@mozilla.com
push dateMon, 03 Apr 2017 23:38:00 +0000
reviewersglob
bugs1333616
ansible/autoland: use mercurial-yum role to install Mercurial (bug 1333616); r?glob The code for installing Mercurial in the autoland role is redundant with code in the mercurial-yum role. Let's consolidate it. MozReview-Commit-ID: A9LKYSwnXrp
ansible/roles/autoland/meta/main.yml
ansible/roles/autoland/tasks/packages.yml
--- a/ansible/roles/autoland/meta/main.yml
+++ b/ansible/roles/autoland/meta/main.yml
@@ -1,2 +1,3 @@
 ---
-dependencies: []
+dependencies:
+  - mercurial-yum
--- a/ansible/roles/autoland/tasks/packages.yml
+++ b/ansible/roles/autoland/tasks/packages.yml
@@ -10,19 +10,8 @@
     - libffi
     - libffi-devel
     - libpqxx-devel
     - openssl-devel
     - httpd
     - mod_wsgi
     - mod_ssl
     - ca-certificates
-
-- name: download Mozilla rpms
-  get_url: url=https://s3-us-west-2.amazonaws.com/moz-packages/CentOS7/{{ item.path }}
-           dest=/var/tmp/{{ item.path }}
-           sha256sum={{ item.sha256 }}
-  with_items:
-    - { path: mercurial-4.0.1-1.x86_64.rpm, sha256: 4ed004977d5447351dea0a0cf1229dc2c25a944971a04fd6a4d9ca56e0ff20c0 }
-
-- name: install Mozilla rpms
-  command: yum localinstall -y /var/tmp/mercurial-4.0.1-1.x86_64.rpm
-