File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 4040 sudo update-alternatives --install /usr/bin/python python $(which python3) 1
4141 pip install --upgrade pip
4242 pip install ansible-core==2.12 ansible-builder bindep pycodestyle voluptuous pylint pyyaml ansible-lint
43+ mkdir -p /usr/share/ansible/collections /usr/share/ansible/roles
4344 ansible-galaxy collection install -r builder/requirements.yml -p /usr/share/ansible/collections
4445 ansible-galaxy role install -r builder/requirements.yml -p /usr/share/ansible/roles
4546
5152
5253 - name : Set up Ansible collection dependencies
5354 run : |
54- ansible-builder introspect \
55- --write-pip final_python.txt --write-bindep final_bindep.txt \
56- /usr/share/ansible/collections
57- pip install -r final_python.txt
58- bindep --file final_bindep.txt
55+ ansible-builder introspect --write-pip final_python.txt --write-bindep final_bindep.txt /usr/share/ansible/collections
56+ [[ -f final_python.txt ]] && pip install -r final_python.txt || echo "No Python dependencies found."
57+ [[ -f final_bindep.txt ]] && bindep --file final_bindep.txt || echo "No system dependencies found."
5958
6059 - name : Report installed Python dependencies
6160 run : pip freeze
You can’t perform that action at this time.
0 commit comments