-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.yml
38 lines (34 loc) · 1.03 KB
/
release.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
- name: Setup vnc accesss
hosts: tester
gather_facts: yes
any_errors_fatal: true
vars:
rhos_release_rpm: "https://url.corp.redhat.com/rhos-release-latest-rpm"
pre_tasks:
- name: get the rhos-release RPM
get_url:
url: "{{ rhos_release_rpm }}"
dest: "/tmp/rhos-release-latest.rpm"
force: yes
validate_certs: no
- name: install the rhos-release RPM
package:
name: /tmp/rhos-release-latest.rpm
state: present
become: yes
- name: run rhos release
command: "rhos-release {{ test.openstack.version }} -P -p passed_phase1"
become: yes
- name: install deltarpm
package:
name: "deltarpm"
state: latest
become: yes
when:
- ansible_distribution in ['CentOS', 'RedHat']
- ansible_distribution_major_version < '8'
- name: update all the packages
package:
name: "*"
state: latest
become: yes