-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepare_vm.yml
53 lines (46 loc) · 1.32 KB
/
prepare_vm.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
---
- hosts: all
sudo: yes
tasks:
- name: Add os repo
yum_repository:
name: os
description: os repo
baseurl: http://mirror.fuel-infra.org/pkgs/centos-latest/os/x86_64/
enabled: yes
- name: Add updates repo
yum_repository:
name: updates
description: os repo
baseurl: http://mirror.fuel-infra.org/pkgs/centos-latest/updates/x86_64/
enabled: yes
- name: Add extras repo
yum_repository:
name: extras
description: os repo
baseurl: http://mirror.fuel-infra.org/pkgs/centos-latest/extras/x86_64/
enabled: yes
- name: Add CR-repo
yum_repository:
name: CR-repo
description: os repo
baseurl: http://perestroika-repo-tst.infra.mirantis.net/review/{{CR}}/mos-repos/centos/mos-master-centos7/os/x86_64
enabled: yes
- name: Add deps repo
yum_repository:
name: deps
description: os repo
baseurl: http://perestroika-repo-tst.infra.mirantis.net/mos-repos/centos/mos-master-centos7/os/x86_64
enabled: yes
- name: Add repo1 repo
yum_repository:
name: repo1
description: os repo
baseurl: {{ lataest_snaphot }}
enabled: yes
- name: Install list of packages
apt: name={{item}} state=installed
# Add list of packages
with_items:
- package1
- package2