blob: 886dda223cf8c9a5d9fbd0533107332a7b950a2e (
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
|
---
- name: copy coverity installer
copy:
src: "{{ coverity_installer_file }}"
dest: "/tmp/{{ coverity_installer_file }}"
mode: 0750
register: coverity_copy
ignore_errors: yes
tags: [coverity]
- name: create /opt/coverity
file:
path: /opt/coverity/
state: directory
when: coverity_copy.failed == False
tags: [coverity]
- name: unpack coverity
unarchive:
src: "/tmp/{{ coverity_installer_file }}"
dest: /opt/coverity/
remote_src: yes
when: coverity_copy.failed == False
tags: [coverity]
- name: create link /opt/coverity/last
file:
src: /opt/coverity/cov-analysis-linux64-{{ coverity_version }}
dest: /opt/coverity/current
state: link
when: coverity_copy.failed == False
tags: [coverity]
- name: "Please download {{ coverity_installer_file }} to your ansible directory to allow ansible to install coverity"
debug:
msg: "Ansible can not find {{ coverity_installer_file }}"
when: coverity_copy.failed
tags: [coverity]
|