File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 5
5
hosts : overcloud:infra-vms:seed:seed-hypervisor
6
6
vars :
7
7
ansible_python_interpreter : /usr/bin/python3
8
+ reboot_timeout_s : " {{ 20 * 60 }}"
8
9
tasks :
9
10
- name : Assert that hosts are running Ubuntu Focal
10
11
assert :
37
38
38
39
- name : Reboot to apply updates
39
40
reboot :
40
- reboot_timeout : 1200
41
+ reboot_timeout : " {{ reboot_timeout_s }} "
41
42
connect_timeout : 600
42
43
become : true
43
44
when : file_status.stat.exists
81
82
hosts : overcloud:infra-vms:seed:seed-hypervisor
82
83
vars :
83
84
ansible_python_interpreter : /usr/bin/python3
85
+ reboot_timeout_s : " {{ 20 * 60 }}"
84
86
tasks :
85
87
- name : Ensure Jammy repo definitions do not exist in sources.list
86
88
blockinfile :
87
89
path : /etc/apt/sources.list
88
90
state : absent
89
91
become : true
90
92
93
+ - name : Ensure Kolla Ansible Docker repo definition does not exist
94
+ file :
95
+ path : /etc/apt/sources.list.d/docker.list
96
+ state : absent
97
+ become : true
98
+ when : apt_repositories | selectattr('url', 'match', '.*docker-ce.*') | list | length > 0
99
+
91
100
- name : Reboot and wait
92
101
reboot :
93
- reboot_timeout : 1200
102
+ reboot_timeout : " {{ reboot_timeout_s }} "
94
103
connect_timeout : 600
95
104
become : true
96
105
Original file line number Diff line number Diff line change @@ -52,25 +52,29 @@ stackhpc_apt_repositories:
52
52
suites : " {{ ansible_facts.distribution_release }} {{ ansible_facts.distribution_release }}-updates {{ ansible_facts.distribution_release }}-backports"
53
53
components : main restricted universe multiverse
54
54
architecture : amd64
55
+ required : true
55
56
- url : " {{ stackhpc_repo_ubuntu_focal_security_url if ansible_facts.distribution_release == 'focal' else stackhpc_repo_ubuntu_jammy_security_url }}"
56
57
suites : " {{ ansible_facts.distribution_release }}-security"
57
58
components : main restricted universe multiverse
58
59
architecture : amd64
60
+ required : true
59
61
- url : " {{ stackhpc_repo_ubuntu_jammy_cve_2024_6387_url }}"
60
62
suites : " pulp"
61
63
components : upload
62
64
architecture : amd64
63
65
trusted : yes
66
+ required : " {{ ansible_facts.distribution_release == 'jammy' }}"
64
67
- url : " {{ stackhpc_repo_docker_ce_ubuntu_focal_url if ansible_facts.distribution_release == 'focal' else stackhpc_repo_docker_ce_ubuntu_jammy_url }}"
65
68
suites : " {{ ansible_facts.distribution_release }}"
66
69
components : stable
67
70
signed_by : docker.asc
68
71
architecture : amd64
72
+ required : true
69
73
70
74
# Do not replace apt configuration for non-overcloud hosts. This can result in
71
75
# errors if apt reconfiguration is performed before local repository mirrors
72
76
# are deployed.
73
- apt_repositories : " {{ stackhpc_apt_repositories if 'overcloud' in group_names else [] }}"
77
+ apt_repositories : " {{ stackhpc_apt_repositories | selectattr('required') | list if 'overcloud' in group_names else [] }}"
74
78
75
79
# Whether to disable repositories in /etc/apt/sources.list. This may be used
76
80
# when replacing the distribution repositories via apt_repositories.
You can’t perform that action at this time.
0 commit comments