mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2025-03-04 14:47:18 +00:00
use python3 for ansible
This commit is contained in:
parent
dedf8afe7e
commit
1b390bc961
3 changed files with 7 additions and 0 deletions
2
tests/Vagrantfile
vendored
2
tests/Vagrantfile
vendored
|
@ -10,6 +10,7 @@ Vagrant.configure("2") do |config|
|
|||
|
||||
pip.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "test-pip.yml"
|
||||
ansible.extra_vars = { ansible_python_interpreter:"/usr/bin/python3" }
|
||||
end
|
||||
end
|
||||
config.vm.define "docker" do |docker|
|
||||
|
@ -20,6 +21,7 @@ Vagrant.configure("2") do |config|
|
|||
|
||||
docker.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "test-docker.yml"
|
||||
ansible.extra_vars = { ansible_python_interpreter:"/usr/bin/python3" }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -26,8 +26,10 @@
|
|||
matrix_synapse_supervision_method: docker
|
||||
roles:
|
||||
- role: geerlingguy.pip
|
||||
pip_package: python3-pip
|
||||
pip_install_packages:
|
||||
- name: docker
|
||||
- name: psycopg2-binary
|
||||
- role: geerlingguy.docker
|
||||
- role: geerlingguy.postgresql
|
||||
postgresql_databases:
|
||||
|
|
|
@ -24,6 +24,9 @@
|
|||
when: matrix_synapse_version != "v"~(api_version.content | from_json).server.version
|
||||
roles:
|
||||
- role: geerlingguy.pip
|
||||
pip_package: python3-pip
|
||||
pip_install_packages:
|
||||
- name: psycopg2-binary
|
||||
- role: geerlingguy.postgresql
|
||||
postgresql_databases:
|
||||
- name: "{{ dbname }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue