Commit 9ee92811 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

playbook: vm-bootstrap: install python-requests package on Debian 10

ansible-upload-vm-logs is a Python2 script so we explicitly need requests egg for python2. python-request used to be installed by the deploy script but for Debian 10, the deploy script install python3-requests.
parent 928db15b
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
- dateext - dateext
roles: roles:
- { role: package, package_name: python-requests, package_state: present, when: ansible_distribution == "Debian" and ansible_distribution_major_version|int >= 10}
- { role: vm-bootstrap, startup_playbook_id: imt-vm-bootstrap.yml } - { role: vm-bootstrap, startup_playbook_id: imt-vm-bootstrap.yml }
- ntp - ntp
- { role: vm-disks, vd_disk: b, data_n: 1, when: vd_list.stdout.find("vdb") != -1 } - { role: vm-disks, vd_disk: b, data_n: 1, when: vd_list.stdout.find("vdb") != -1 }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment