Jonathan Hart | 93956f5 | 2017-08-22 13:12:42 -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 | |
Zack Williams | 6fe4637 | 2017-06-29 08:30:21 -0700 | [diff] [blame] | 17 | --- |
| 18 | |
Sapan Bhatia | 2adaaaf | 2017-04-13 19:41:53 -0700 | [diff] [blame] | 19 | - name: "Install apt dependencies" |
Sapan Bhatia | 7348d5c | 2017-04-16 13:07:25 -0700 | [diff] [blame] | 20 | become: yes |
David K. Bainbridge | ed10154 | 2016-05-18 20:26:15 -0700 | [diff] [blame] | 21 | apt: |
Sapan Bhatia | 2adaaaf | 2017-04-13 19:41:53 -0700 | [diff] [blame] | 22 | name: "{{ item }}" |
| 23 | state: present |
| 24 | with_items: |
| 25 | - python-dev |
| 26 | - libffi-dev |
| 27 | - python-pip |
| 28 | - libssl-dev |
| 29 | - sshpass |
| 30 | |
Zack Williams | 6fe4637 | 2017-06-29 08:30:21 -0700 | [diff] [blame] | 31 | - name: Ansible APT Repository |
Sapan Bhatia | 2adaaaf | 2017-04-13 19:41:53 -0700 | [diff] [blame] | 32 | become: yes |
Zack Williams | 6fe4637 | 2017-06-29 08:30:21 -0700 | [diff] [blame] | 33 | apt_repository: |
| 34 | repo: "{{ ansible_apt_repo | default('ppa:ansible/ansible') }}" |
| 35 | register: result |
| 36 | until: result | success |
| 37 | retries: 3 |
| 38 | delay: 10 |
Sapan Bhatia | 2adaaaf | 2017-04-13 19:41:53 -0700 | [diff] [blame] | 39 | |
Zack Williams | 6fe4637 | 2017-06-29 08:30:21 -0700 | [diff] [blame] | 40 | - name: Install Ansible using APT |
| 41 | become: yes |
| 42 | apt: |
| 43 | name: ansible=2.3* |
| 44 | state: present |