blob: 5d29235122571fddf5407285fdf357e42919dc4a [file] [log] [blame]
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -04001- name: Ansible repository is available
2 apt_repository:
3 repo: 'ppa:ansible/ansible'
4 tags: [installer]
5- name: Debian ansible is present
6 apt:
7 name: ansible
8 state: latest
9 force: yes
10 tags: [installer]
11- name: Installer files and directories are copied
12 copy:
13 src: "{{ cord_home }}/incubator/voltha/{{ item }}"
14 dest: /home/vinstall
15 owner: vinstall
16 group: vinstall
17 with_items:
18 - install/installer.sh
19 - install/install.cfg
20 - install/ansible
21 - compose
22 - nginx_config
23 tags: [installer]
24- name: Determine if test mode is active
25 local_action: stat path="{{ cord_home }}/incubator/voltha/install/.test"
26 register: file
27 ignore_errors: True
28- name: Test mode file is copied
29 copy:
30 src: "{{ cord_home }}/incubator/voltha/install/.test"
31 dest: /home/vinstall
32 when: file.stat.exists
33- name: The installer is made executable
34 file:
35 path: /home/vinstall/installer.sh
36 mode: 0744
37 tags: [installer]
38- name: Python docker-py 1.6.0 package source is available
39 command: pip download -d /home/vinstall/docker-py "docker-py==1.6.0"
40 tags: [installer]
41- name: Python netifaces 0.10.4 package source is available
42 command: pip download -d /home/vinstall/netifaces "netifaces==0.10.4"
43 tags: [installer]
44- name: Deb files are saved.
45 command: cp -r /var/cache/apt/archives /home/vinstall
46 tags: [installer]
47- name: Deb file directory is renamed
48 command: mv /home/vinstall/archives /home/vinstall/deb_files
49 tags: [installer]