File tree 1 file changed +9
-0
lines changed 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 7
7
8
8
# build.
9
9
cd my-ubuntu-ansible-playbooks
10
+ # remove the ansible-lint dependency.
11
+ # NB without this, the execution environment build fails with:
12
+ # ERROR: Cannot install -r /tmp/src/requirements.txt (line 10) and jsonschema==3.2.0 because these package versions have conflicting dependencies.
13
+ # The conflict is caused by:
14
+ # The user requested jsonschema==3.2.0
15
+ # ansible-lint 6.3.0 depends on jsonschema>=4.6.0
16
+ sed -i -E ' /^ansible-lint=.+/d' requirements.txt
17
+ # define the execution environment.
10
18
cat > execution-environment.yml << 'EOF '
11
19
version: 1
12
20
build_arg_defaults:
@@ -16,6 +24,7 @@ dependencies:
16
24
galaxy: requirements.yml
17
25
python: requirements.txt
18
26
EOF
27
+ # build the execution environment.
19
28
ansible-builder build --verbosity 3 --tag my-ubuntu-ee
20
29
21
30
# show information about the built execution environment.
You can’t perform that action at this time.
0 commit comments