b57dfd8b58
Ansible's 'shell' module is almost exactly like the 'command' module, except that it runs the command through a command line shell so that environment variables like HOSTNAME and operations like '*', '<' and '>' work. None of those things are necessary are here. Hence, it's better to use the 'command' module as elsewhere. Note that, unlike Ansible's 'shell' module, the 'command' module doesn't support inline scripts. So, each command needs to be in its own separate task. https://github.com/containers/toolbox/pull/1318
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
- name: Install RPM packages from CentOS Stream
|
|
become: yes
|
|
package:
|
|
name:
|
|
- bash-completion
|
|
- flatpak-session-helper
|
|
- gcc
|
|
- golang
|
|
- httpd-tools
|
|
- meson
|
|
- ninja-build
|
|
- openssl
|
|
- podman
|
|
- shadow-utils-subid-devel
|
|
- skopeo
|
|
- systemd
|
|
- udisks2
|
|
|
|
- name: Install RPM packages from CentOS Stream CodeReady Linux Builder
|
|
become: yes
|
|
package:
|
|
enablerepo: crb
|
|
name:
|
|
- golang-github-cpuguy83-md2man
|
|
|
|
- name: Enable EPEL
|
|
become: yes
|
|
package:
|
|
name:
|
|
- epel-release
|
|
|
|
- name: Install RPM packages from EPEL
|
|
become: yes
|
|
package:
|
|
name:
|
|
- ShellCheck
|
|
- bats
|
|
- codespell
|
|
- fish
|
|
|
|
- name: Download Go modules
|
|
command: go mod download -x
|
|
args:
|
|
chdir: '{{ zuul.project.src_dir }}/src'
|
|
|
|
- name: Initialize Git submodules
|
|
command: git submodule init
|
|
args:
|
|
chdir: '{{ zuul.project.src_dir }}'
|
|
|
|
- name: Update Git submodules
|
|
command: git submodule update
|
|
args:
|
|
chdir: '{{ zuul.project.src_dir }}'
|
|
|
|
- name: Check versions of crucial packages
|
|
command: rpm -qa ShellCheck codespell *kernel* gcc *glibc* golang shadow-utils-subid-devel podman conmon containernetworking-plugins containers-common container-selinux crun fuse-overlayfs flatpak-session-helper skopeo
|
|
|
|
- name: Show podman versions
|
|
command: podman version
|
|
|
|
- name: Show podman debug information
|
|
command: podman info --debug
|