mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-26 05:50:36 -07:00
Remove Python 2 specific parts from integration tests (#10897)
* Remove Python 2 specific parts from integration tests. * Remove more constraints.
This commit is contained in:
parent
10bdd9c56b
commit
21122e926b
38 changed files with 25 additions and 308 deletions
|
|
@ -20,25 +20,15 @@
|
|||
- meta: end_play
|
||||
when: ansible_facts.distribution == 'Fedora' and ansible_facts.distribution_major_version == '34'
|
||||
|
||||
- name: python 2
|
||||
set_fact:
|
||||
python_suffix: ''
|
||||
when: ansible_python_version is version('3', '<')
|
||||
|
||||
- name: python 3
|
||||
set_fact:
|
||||
python_suffix: -py3
|
||||
when: ansible_python_version is version('3', '>=')
|
||||
|
||||
- name: Include distribution and Python version specific variables
|
||||
include_vars: '{{ lookup(''first_found'', params) }}'
|
||||
vars:
|
||||
params:
|
||||
files:
|
||||
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}{{ python_suffix }}.yml'
|
||||
- '{{ ansible_distribution }}-{{ ansible_distribution_version }}{{ python_suffix }}.yml'
|
||||
- '{{ ansible_os_family }}{{ python_suffix }}.yml'
|
||||
- default{{ python_suffix }}.yml
|
||||
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml'
|
||||
- '{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml'
|
||||
- '{{ ansible_os_family }}.yml'
|
||||
- default.yml
|
||||
paths:
|
||||
- '{{ role_path }}/vars'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
postgresql_packages:
|
||||
- "postgresql"
|
||||
- "postgresql-common"
|
||||
- "python-psycopg2"
|
||||
|
||||
pg_hba_location: "/etc/postgresql/9.4/main/pg_hba.conf"
|
||||
pg_dir: "/var/lib/postgresql/9.4/main"
|
||||
pg_ver: 9.4
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
postgresql_packages:
|
||||
- postgresql95-server
|
||||
- "py{{ ansible_python.version.major }}{{ ansible_python.version.minor }}-psycopg2"
|
||||
|
||||
pg_dir: /usr/local/pgsql/data
|
||||
pg_hba_location: "{{ pg_dir }}/pg_hba.conf"
|
||||
pg_ver: 9.5
|
||||
pg_user: pgsql
|
||||
pg_group: pgsql
|
||||
|
||||
locale_latin_suffix: .ISO8859-1
|
||||
locale_utf8_suffix: .UTF-8
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
postgresql_packages:
|
||||
- postgresql95-server
|
||||
- py27-psycopg2
|
||||
- "py{{ ansible_python.version.major }}{{ ansible_python.version.minor }}-psycopg2"
|
||||
|
||||
pg_dir: /usr/local/pgsql/data
|
||||
pg_hba_location: "{{ pg_dir }}/pg_hba.conf"
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
postgresql_packages:
|
||||
- postgresql95-server
|
||||
- "py{{ ansible_python.version.major }}{{ ansible_python.version.minor }}-psycopg2"
|
||||
|
||||
pg_dir: /usr/local/pgsql/data
|
||||
pg_hba_location: "{{ pg_dir }}/pg_hba.conf"
|
||||
pg_ver: 9.5
|
||||
pg_user: pgsql
|
||||
pg_group: pgsql
|
||||
|
||||
locale_latin_suffix: .ISO8859-1
|
||||
locale_utf8_suffix: .UTF-8
|
||||
|
|
@ -4,12 +4,12 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
postgresql_packages:
|
||||
- postgresql96-server
|
||||
- py27-psycopg2
|
||||
- postgresql95-server
|
||||
- "py{{ ansible_python.version.major }}{{ ansible_python.version.minor }}-psycopg2"
|
||||
|
||||
pg_dir: /usr/local/pgsql/data
|
||||
pg_hba_location: "{{ pg_dir }}/pg_hba.conf"
|
||||
pg_ver: 9.6
|
||||
pg_ver: 9.5
|
||||
pg_user: pgsql
|
||||
pg_group: pgsql
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
postgresql_packages:
|
||||
- postgresql11-server
|
||||
- "py{{ ansible_python.version.major }}{{ ansible_python.version.minor }}-psycopg2"
|
||||
|
||||
pg_dir: /var/db/postgres/data11
|
||||
pg_hba_location: "{{ pg_dir }}/pg_hba.conf"
|
||||
pg_ver: 11
|
||||
pg_user: postgres
|
||||
pg_group: postgres
|
||||
|
||||
locale_latin_suffix: .ISO8859-1
|
||||
locale_utf8_suffix: .UTF-8
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
postgresql_packages:
|
||||
- postgresql11-server
|
||||
- py27-psycopg2
|
||||
- "py{{ ansible_python.version.major }}{{ ansible_python.version.minor }}-psycopg2"
|
||||
|
||||
pg_dir: /var/db/postgres/data11
|
||||
pg_hba_location: "{{ pg_dir }}/pg_hba.conf"
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
postgresql_packages:
|
||||
- "postgresql-server"
|
||||
- "python3-psycopg2"
|
||||
- "bzip2"
|
||||
- "xz"
|
||||
|
||||
pg_hba_location: "/var/lib/pgsql/data/pg_hba.conf"
|
||||
pg_dir: "/var/lib/pgsql/data"
|
||||
|
|
@ -5,8 +5,9 @@
|
|||
|
||||
postgresql_packages:
|
||||
- "postgresql-server"
|
||||
- "python-psycopg2"
|
||||
- "python3-psycopg2"
|
||||
- "bzip2"
|
||||
- "xz"
|
||||
|
||||
pg_hba_location: "/var/lib/pgsql/data/pg_hba.conf"
|
||||
pg_dir: "/var/lib/pgsql/data"
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
postgresql_packages:
|
||||
- "postgresql"
|
||||
- "postgresql-common"
|
||||
- "python-psycopg2"
|
||||
|
||||
pg_hba_location: "/etc/postgresql/9.1/main/pg_hba.conf"
|
||||
pg_dir: "/var/lib/postgresql/9.1/main"
|
||||
pg_ver: 9.1
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
postgresql_packages:
|
||||
- "postgresql"
|
||||
- "postgresql-common"
|
||||
- "python-psycopg2"
|
||||
|
||||
pg_hba_location: "/etc/postgresql/9.3/main/pg_hba.conf"
|
||||
pg_dir: "/var/lib/postgresql/9.3/main"
|
||||
pg_ver: 9.3
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
postgresql_packages:
|
||||
- "postgresql"
|
||||
- "postgresql-common"
|
||||
- "python3-psycopg2"
|
||||
|
||||
pg_hba_location: "/etc/postgresql/9.5/main/pg_hba.conf"
|
||||
pg_dir: "/var/lib/postgresql/9.5/main"
|
||||
pg_ver: 9.5
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
postgresql_packages:
|
||||
- "postgresql"
|
||||
- "postgresql-common"
|
||||
- "python-psycopg2"
|
||||
- "python3-psycopg2"
|
||||
|
||||
pg_hba_location: "/etc/postgresql/9.5/main/pg_hba.conf"
|
||||
pg_dir: "/var/lib/postgresql/9.5/main"
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
postgresql_packages:
|
||||
- "postgresql-server"
|
||||
- "python3-psycopg2"
|
||||
|
||||
pg_hba_location: "/var/lib/pgsql/data/pg_hba.conf"
|
||||
pg_dir: "/var/lib/pgsql/data"
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
postgresql_packages:
|
||||
- "postgresql-server"
|
||||
- "python-psycopg2"
|
||||
- "python3-psycopg2"
|
||||
|
||||
pg_hba_location: "/var/lib/pgsql/data/pg_hba.conf"
|
||||
pg_dir: "/var/lib/pgsql/data"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue