Skip to content

Commit 0c8c362

Browse files
committed
remove the ansible-lint dependency
this dependency is not working with the ansible-builder base image and its not really required for my use-case
1 parent 7fdf291 commit 0c8c362

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

provision-my-ubuntu-ee.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ fi
77

88
# build.
99
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.
1018
cat >execution-environment.yml <<'EOF'
1119
version: 1
1220
build_arg_defaults:
@@ -16,6 +24,7 @@ dependencies:
1624
galaxy: requirements.yml
1725
python: requirements.txt
1826
EOF
27+
# build the execution environment.
1928
ansible-builder build --verbosity 3 --tag my-ubuntu-ee
2029

2130
# show information about the built execution environment.

0 commit comments

Comments
 (0)