File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed
Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,12 @@ jobs:
3535 python-version : ' 3.9'
3636 cache : ' pip'
3737
38- - name : Set up Ansible collections
38+ - name : Set up Ansible and Ansible collections and roles
3939 run : |
4040 sudo update-alternatives --install /usr/bin/python python $(which python3) 1
41- pip install ansible-core==2.12 ansible-builder pycodestyle voluptuous pylint pyyaml ansible-lint
41+ pip install --upgrade pip
42+ 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
4244 ansible-galaxy collection install -r builder/requirements.yml -p /usr/share/ansible/collections
4345 ansible-galaxy role install -r builder/requirements.yml -p /usr/share/ansible/roles
4446
5052
5153 - name : Set up Ansible collection dependencies
5254 run : |
53- ansible-builder introspect \
54- --write-pip final_python.txt --write-bindep final_bindep.txt \
55- /usr/share/ansible/collections
56- pip install -r final_python.txt
57- sudo apt-get -y install $(cat 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."
5858
5959 - name : Report installed Python dependencies
6060 run : pip freeze
Original file line number Diff line number Diff line change 1414
1515# ansible.posix.patch
1616patch [platform:rpm]
17-
18- # community.general.ipa_user
19- hashlib [platform:rpm]
20- base64 [platform:rpm]
Original file line number Diff line number Diff line change 1414
1515namespace : cloudera
1616name : cluster
17- version : 3.4.1
17+ version : 3.4.2
1818
1919authors : []
2020readme : README.md
You can’t perform that action at this time.
0 commit comments