blob: 4b41bd23c482bca2bb2488766d0944224251620a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
---
- name: install dependencies for poky installer
apt:
name:
- build-essential
- bzip2
- file
- tar
cache_valid_time: 3600
update_cache: yes
- name: copy poky installer
copy:
src: "{{ poky_installer_file }}"
dest: "/tmp/{{ poky_installer_file }}"
mode: 0750
register: poky_copy
ignore_errors: yes
tags: [poky]
- name: execute poky installer
command: "/tmp/{{ poky_installer_file }} -y -d '{{ poky_dest }}'"
args:
creates: "{{ poky_dest }}"
when: poky_copy.failed == False
tags: [poky]
- name: change owner/group to jenkins user
file:
path: "{{ poky_dest }}"
owner: "{{ jenkins_user }}"
group: "{{ jenkins_user }}"
recurse: yes
when: poky_copy.failed == False
tags: [poky]
- name: remove poky installer
file:
path: "/tmp/{{ poky_installer_file }}"
state: absent
when: poky_copy.failed == False
tags: [poky]
- name: "Please download {{ poky_installer_file }} to your ansible directory to allow ansible to install poky"
debug:
msg: "Ansible can not find or copy {{ poky_installer_file }}"
when: poky_copy.failed == True
tags: [poky]
|