mirror of https://github.com/jumpserver/jumpserver
				
				
				
			perf: 修改默认 ansible_python_interpreter (#12093)
Co-authored-by: feng <1304903146@qq.com>pull/12094/head
							parent
							
								
									0ee14e6d85
								
							
						
					
					
						commit
						d6b75ac700
					
				| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: mongodb
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Test MongoDB connection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: mysql
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
    db_name: "{{ jms_asset.spec_info.db_name }}"
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: oracle
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Test Oracle connection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: postgre
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Test PostgreSQL connection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: sqlserver
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Test SQLServer connection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: mongodb
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Get info
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: mysql
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Get info
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: oralce
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Get info
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: postgresql
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Get info
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: mongodb
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Test MongoDB connection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: mysql
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
    db_name: "{{ jms_asset.spec_info.db_name }}"
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: oracle
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Test Oracle connection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: postgre
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Test PostgreSQL connection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: sqlserver
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Test SQLServer connection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: mongdb
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Verify account
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: mysql
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Verify account
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: oracle
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Verify account
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: postgresql
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Verify account
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: sqlserver
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Verify account
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: mongodb
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Get info
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: mysql
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Get info
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: oracle
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Get info
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: postgresql
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Get info
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: mongodb
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Test MongoDB connection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: mysql
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Test MySQL connection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: oracle
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Test Oracle connection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: postgre
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Test PostgreSQL connection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
- hosts: sqlserver
 | 
			
		||||
  gather_facts: no
 | 
			
		||||
  vars:
 | 
			
		||||
    ansible_python_interpreter: /usr/local/bin/python
 | 
			
		||||
    ansible_python_interpreter: /opt/py3/bin/python
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Test SQLServer connection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue