mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-04 12:23:13 +02:00
Update to 2023-06-17 00:00
This commit is contained in:
parent
c372232c99
commit
0df76a72de
6
roles/mysql_server/vars/RedHat-9.yml
Normal file
6
roles/mysql_server/vars/RedHat-9.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
|
||||
mysql_server_packages:
|
||||
- "{{ (mysql_engine == 'mysql') | ternary('mysql-server','mariadb-server') }}"
|
||||
- "{{ (mysql_engine == 'mysql') | ternary('mysql','mariadb') }}"
|
||||
- python3-mysqlclient
|
@ -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
|
||||
|
@ -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:
|
||||
|
7
roles/postgresql_server/vars/RedHat-9.yml
Normal file
7
roles/postgresql_server/vars/RedHat-9.yml
Normal 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
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user