2023-03-01 20:03:53 +00:00
|
|
|
#
|
|
|
|
# Copyright © 2023 Red Hat, Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
2023-07-11 08:24:01 +00:00
|
|
|
- name: Install python3-dnf
|
|
|
|
become: true
|
|
|
|
command: dnf5 --assumeyes install python3-dnf
|
|
|
|
when: ansible_distribution_major_version | int >= 39
|
|
|
|
|
2023-03-01 20:03:53 +00:00
|
|
|
- name: Ensure that subordinate group ID ranges are absent
|
|
|
|
become: yes
|
|
|
|
file:
|
|
|
|
path: /etc/subgid
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: Ensure that subordinate user ID ranges are absent
|
|
|
|
become: yes
|
|
|
|
file:
|
|
|
|
path: /etc/subuid
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: Install RPM packages
|
|
|
|
become: yes
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- ShellCheck
|
|
|
|
- bash-completion
|
|
|
|
- codespell
|
|
|
|
- fish
|
|
|
|
- flatpak-session-helper
|
|
|
|
- gcc
|
|
|
|
- golang
|
|
|
|
- golang-github-cpuguy83-md2man
|
|
|
|
- meson
|
|
|
|
- ninja-build
|
|
|
|
- shadow-utils-subid-devel
|
|
|
|
- systemd
|
|
|
|
- udisks2
|
|
|
|
state: present
|
|
|
|
update_cache: "{{ true if zuul.attempts > 1 else false }}"
|
|
|
|
|
|
|
|
- name: Ensure that podman(1) is absent
|
|
|
|
become: yes
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- podman
|
|
|
|
state: absent
|
|
|
|
update_cache: "{{ true if zuul.attempts > 1 else false }}"
|
|
|
|
|
2023-01-09 13:28:56 +00:00
|
|
|
- name: Ensure that skopeo(1) is absent
|
|
|
|
become: yes
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- skopeo
|
|
|
|
state: absent
|
|
|
|
update_cache: "{{ true if zuul.attempts > 1 else false }}"
|
|
|
|
|
2023-03-01 20:03:53 +00:00
|
|
|
- name: Download Go modules
|
2023-06-22 15:49:50 +00:00
|
|
|
command: go mod download -x
|
2023-03-01 20:03:53 +00:00
|
|
|
args:
|
|
|
|
chdir: '{{ zuul.project.src_dir }}/src'
|
|
|
|
|
2023-06-22 15:49:50 +00:00
|
|
|
- name: Initialize Git submodules
|
|
|
|
command: git submodule init
|
|
|
|
args:
|
|
|
|
chdir: '{{ zuul.project.src_dir }}'
|
|
|
|
|
|
|
|
- name: Update Git submodules
|
|
|
|
command: git submodule update
|
2023-03-01 20:03:53 +00:00
|
|
|
args:
|
|
|
|
chdir: '{{ zuul.project.src_dir }}'
|
|
|
|
|
|
|
|
- name: Check versions of crucial packages
|
|
|
|
command: rpm -qa ShellCheck codespell *kernel* gcc *glibc* shadow-utils-subid-devel golang flatpak-session-helper
|