forked from ramrexx/CloudForms_Essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudforms_essentials_install.yml
88 lines (73 loc) · 2.39 KB
/
cloudforms_essentials_install.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
- name: CloudForms Essentials Install
hosts: localhost
connection: local
gather_facts: false
user: root
vars:
dest_dir: /root/
github_user: ramrexx
cfme_base_dir: "{{ dest_dir }}CloudForms_Essentials"
rht_base_dir: "{{ dest_dir }}cfme-rhconsulting-scripts"
offline: false
offline_rht_zip_file: "{{ dest_dir }}cfme-rhconsulting-scripts-master.zip"
offline_cfme_zip_file: "{{ dest_dir }}CloudForms_Essentials-master.zip"
tasks:
- name: Clone cfme-rhconsulting-scripts
git:
repo: https://github.com/rhtconsulting/cfme-rhconsulting-scripts.git
dest: "{{ rht_base_dir }}"
when: not offline
- name: Unzipping "{{ offline_rht_zip_file }}"
unarchive:
src: "{{ offline_rht_zip_file }}"
dest: "{{ dest_dir }}"
when: offline
- name: Move cfme-rhconsulting-scripts-master to "{{ rht_base_dir }}"
command: mv "{{ dest_dir }}cfme-rhconsulting-scripts-master" "{{ rht_base_dir }}"
when: offline
- name: Install the cfme-rhconsulting-scripts
shell: make clean install
args:
chdir: "{{ rht_base_dir }}"
- name: Clone CloudForms_Essentials
git:
repo: "https://github.com/{{ github_user }}/CloudForms_Essentials.git"
dest: "{{ cfme_base_dir }}"
when: not offline
- name: Unzipping "{{ offline_cfme_zip_file }}"
unarchive:
src: "{{ offline_cfme_zip_file }}"
dest: "{{ dest_dir }}"
when: offline
- name: Move CloudForms_Essentials-master to "{{ cfme_base_dir }}"
command: mv "{{ dest_dir }}CloudForms_Essentials-master" "{{ cfme_base_dir }}"
when: offline
- name: Import automate domain
shell: miqimport domain CloudForms_Essentials "{{ cfme_base_dir }}/automate"
args:
chdir: "{{ cfme_base_dir }}"
- name: Import dialogs
shell: "miqimport service_dialogs service_dialogs/"
args:
chdir: "{{ cfme_base_dir }}"
- name: Import buttons
shell: "miqimport buttons buttons/"
args:
chdir: "{{ cfme_base_dir }}"
- name: Import alerts
shell: "miqimport alerts alerts/"
args:
chdir: "{{ cfme_base_dir }}"
- name: Import policies
shell: "miqimport policies policies/"
args:
chdir: "{{ cfme_base_dir }}"
- name: Import reports
shell: "miqimport reports reports/"
args:
chdir: "{{ cfme_base_dir }}"
- name: Import widgets
shell: "miqimport widgets widgets/"
args:
chdir: "{{ cfme_base_dir }}"