blob: 62f5f3f87ec1b18f3e02f1c1189074d47db025d4 [file] [log] [blame]
Jonathan Hart93956f52017-08-22 13:12:42 -07001
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 Williams6fe46372017-06-29 08:30:21 -070017---
18
Sapan Bhatia2adaaaf2017-04-13 19:41:53 -070019- name: "Install apt dependencies"
Sapan Bhatia7348d5c2017-04-16 13:07:25 -070020 become: yes
David K. Bainbridgeed101542016-05-18 20:26:15 -070021 apt:
Sapan Bhatia2adaaaf2017-04-13 19:41:53 -070022 name: "{{ item }}"
23 state: present
24 with_items:
25 - python-dev
26 - libffi-dev
27 - python-pip
28 - libssl-dev
29 - sshpass
30
Zack Williams6fe46372017-06-29 08:30:21 -070031- name: Ansible APT Repository
Sapan Bhatia2adaaaf2017-04-13 19:41:53 -070032 become: yes
Zack Williams6fe46372017-06-29 08:30:21 -070033 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 Bhatia2adaaaf2017-04-13 19:41:53 -070039
Zack Williams6fe46372017-06-29 08:30:21 -070040- name: Install Ansible using APT
41 become: yes
42 apt:
43 name: ansible=2.3*
44 state: present