Use python3 for ansible

We get deprecation warnings from ansible about use
of python2 on xenial hosts. Rather than setting
ansible_python_interpreter to python3 on a host by
host basis, set it globally to python3.

Set it to python for the one host that's too old,
refstack.openstack.org, which is running on trusty
which only has python3.4.

Change-Id: I4965d950c13efad80d72912911bc7099e9da1659
This commit is contained in:
Monty Taylor 2020-04-25 09:45:44 -05:00
parent 1febd9a0f2
commit 5e6aa5e70d
21 changed files with 3 additions and 19 deletions

View File

@ -1,3 +1,5 @@
ansible_python_interpreter: python3
distro_lookup_path:
- "{{ ansible_facts.distribution }}.{{ ansible_facts.lsb.codename }}.{{ ansible_facts.architecture }}.yaml"
- "{{ ansible_facts.distribution }}.{{ ansible_facts.lsb.codename }}.yaml"

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
gitea_root_email: infra-root@openstack.org
gitea_gerrit_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVuhTMAz1H2Jr9AC3py9A0vlNna6Sdt4yrvZOayxukPqQ7GPZd+Mo7MVyypxLD479N2mA09JAdsbq1eTiPP8ksEkB+dNxZzw8mY1653R/IXSW6J9xPcoDa88HF2s/xHN24IWzgiDjNNe79AQ+sKleByEQZ++xXny3MRpy258hKUvAtjjOLOnM1PBs8JNOzBL+UPgWRgSX6GG0qywJZqjD1Qx5kvH9RTRLi+tcMhEi4laN7BYvn4csY0sYzTzPG4ZTu3ootIJoRlQGtQ0LmoFO1vSwyEJUags6/ZZGjgy3jl3kwcU/b8ZnFlF4MDw1OB1QqMb4r6bMHbXNIupp4zJbz gerrit-replication-2014-04-25
iptables_extra_public_tcp_ports:

View File

@ -1,3 +1,2 @@
ansible_python_interpreter: python3
iptables_extra_public_tcp_ports:
- 80

View File

@ -1 +0,0 @@
ansible_python_interpreter: python3

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
bastion_key_exclusive: false
kube_config_template: clouds/bridge_kube_config.yaml.j2
extra_users:

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
etherpad_vhost_name: etherpad.opendev.org
letsencrypt_certs:
etherpad01-opendev-org-main:

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
letsencrypt_certs:
insecure-ci-registry01-main:
- insecure-ci-registry01.opendev.org

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
letsencrypt_certs:
mirror01-dfw-rax-main:
- mirror01.dfw.rax.opendev.org

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
letsencrypt_certs:
mirror01-gra1-ovh-main:
- mirror01.gra1.ovh.opendev.org

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
letsencrypt_certs:
mirror01-iad-rax-main:
- mirror01.iad.rax.opendev.org

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
letsencrypt_certs:
mirror01-kna1-airship-citycloud-main:
- mirror01.kna1.airship-citycloud.opendev.org

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
letsencrypt_certs:
mirror01-ord-rax-main:
- mirror01.ord.rax.opendev.org

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
letsencrypt_certs:
mirror01-regionone-linaro-us-main:
- mirror01.regionone.linaro-us.opendev.org

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
letsencrypt_certs:
mirror01-us-east-openedge-main:
- mirror01.us-east.openedge.opendev.org

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
letsencrypt_certs:
mirror02-mtl01-inap-main:
- mirror02.mtl01.inap.opendev.org

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
letsencrypt_certs:
nb04-opendev-org-main:
- nb04.opendev.org

View File

@ -1 +0,0 @@
ansible_python_interpreter: python3

View File

@ -1 +0,0 @@
ansible_python_interpreter: python3

View File

@ -0,0 +1 @@
ansible_python_interpreter: python

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
letsencrypt_certs:
review-dev01-opendev-org-main:
- review-dev.opendev.org

View File

@ -1,4 +1,3 @@
ansible_python_interpreter: python3
letsencrypt_certs:
static01-opendev-org-main:
- static.opendev.org