我正在尝试按照此处的说明为 Ansible 构建执行环境。
当我运行以下命令时:
ansible-builder build --tag postgresql_ee --container-runtime docker
我收到以下错误:
ansible_builder.exceptions.DefinitionError:
Error: Unknown yaml key(s), {'images'}, found in the definition file.
Allowed options are:
{'ansible_config', 'build_arg_defaults', 'dependencies', 'version', 'additional_build_steps'}
我正在使用以下软件版本:
我在这里发布 YAML 文件,以防网页发生变化:
cat > execution-environment.yml<<EOF
version: 3
images:
base_image:
name: quay.io/fedora/fedora:latest
dependencies:
ansible_core:
package_pip: ansible-core
ansible_runner:
package_pip: ansible-runner
system:
- openssh-clients
- sshpass
galaxy:
collections:
- name: community.postgresql
EOF
ansible-builder 1.x 没有“图像”选项,我认为 jaja
pip3 安装 ansible-builder==3.0.0 或更高版本