Matteo Scandolo | 60b640f | 2017-08-08 13:05:22 -0700 | [diff] [blame] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
David K. Bainbridge | 57cefd2 | 2016-12-19 23:04:29 -0800 | [diff] [blame] | 17 | - name: Apt Repo |
| 18 | apt_repository: |
| 19 | repo: ppa:git-core/ppa |
| 20 | state: present |
| 21 | update_cache: yes |
Andy Bavier | 825e159 | 2017-02-24 16:28:01 -0500 | [diff] [blame] | 22 | register: result |
| 23 | until: result | success |
| 24 | retries: 3 |
| 25 | delay: 10 |
David K. Bainbridge | 57cefd2 | 2016-12-19 23:04:29 -0800 | [diff] [blame] | 26 | |
Zsolt Haraszti | 42314e9 | 2016-06-02 17:35:09 -0700 | [diff] [blame] | 27 | - name: Apt packages |
| 28 | apt: |
| 29 | name: "{{ item }}" |
Scott Baker | 781d28b | 2016-11-01 11:01:47 -0700 | [diff] [blame] | 30 | with_items: "{{ apt_packages }}" |
Zsolt Haraszti | 42314e9 | 2016-06-02 17:35:09 -0700 | [diff] [blame] | 31 | tags: [buildtools] |
| 32 | |
David K. Bainbridge | c946f1d | 2017-01-12 14:06:42 -0800 | [diff] [blame] | 33 | - name: Ensure Repo |
| 34 | copy: |
| 35 | src: repo.bin |
| 36 | dest: /usr/local/bin/repo |
| 37 | owner: root |
| 38 | group: root |
| 39 | mode: 0755 |
| 40 | |