Update to 2023-06-17 00:00

This commit is contained in:
Daniel Berteaud 2023-06-17 00:00:17 +02:00
parent c372232c99
commit 0df76a72de
6 changed files with 25 additions and 10 deletions

View File

@ -0,0 +1,6 @@
---
mysql_server_packages:
- "{{ (mysql_engine == 'mysql') | ternary('mysql-server','mariadb-server') }}"
- "{{ (mysql_engine == 'mysql') | ternary('mysql','mariadb') }}"
- python3-mysqlclient

View File

@ -14,7 +14,7 @@
changed_when: False
when:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version is version('8', '>=')
- ansible_distribution_major_version is version('8', '=')
tags: web
- name: Install nginx

View File

@ -10,6 +10,15 @@
when: nginx_nginx_service.stat.exists
tags: web
- name: Remove nginx
yum:
name:
- nginx
- nginx-filesystem
- nginx-core
state: absent
tags: web
- name: Create the nginx user account
user:
name: nginx
@ -50,13 +59,6 @@
dest: /usr/local/openresty/nginx/html
tags: web
- name: Remove nginx
yum:
name:
- nginx
state: absent
tags: web
- name: Install packages
yum:
name:

View File

@ -0,0 +1,7 @@
---
pg_packages:
- postgresql{{ (pg_version != 'default') | ternary(pg_version | string,'') }}
- postgresql{{ (pg_version != 'default') | ternary(pg_version | string,'') }}-server
- postgresql{{ (pg_version != 'default') | ternary(pg_version | string,'') }}-contrib
- python3-psycopg2

View File

@ -1,6 +1,6 @@
{% if mysql_mariadb_version != 'default' %}
[mariadb]
baseurl = http://yum.mariadb.org/{{ mysql_mariadb_version }}/centos$releasever-amd64
baseurl = http://yum.mariadb.org/{{ mysql_mariadb_version }}/rhel$releasever-amd64
gpgcheck = 1
gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
name = MariaDB

View File

@ -6,7 +6,7 @@
description: Official OpenResty Open Source Repository for CentOS
baseurl: https://openresty.org/package/centos/$releasever/$basearch
gpgcheck: True
gpgkey: https://openresty.org/package/pubkey.gpg
gpgkey: "{{ ansible_distribution_major_version is version('8', '>') | ternary('https://openresty.org/package/pubkey2.gpg', 'https://openresty.org/package/pubkey.gpg') }}"
exclude:
- perl-IPC-Run
- perl-IO-Tty