Verified Commit 19b61422 authored by Tharyrok's avatar Tharyrok
Browse files

CHange php7.4 to php8.0 abd nodejs12 to nodejs14

parent 202933fe
......@@ -51,6 +51,9 @@
- name: restart php7.4-fpm
service: name=php7.4-fpm state=restarted
- name: restart php8.0-fpm
service: name=php8.0-fpm state=restarted
- name: update ca-certificates
command: /usr/sbin/update-ca-certificates
......
......@@ -23,7 +23,7 @@
name: nginx
when: inventory_hostname in ['ketupa-backend']
- include_role:
name: php_7_4
name: php_8_0
when: inventory_hostname in ['ketupa-backend']
- include_role:
name: composer
......@@ -34,6 +34,9 @@
- include_role:
name: postgresql
when: inventory_hostname in ['ketupa-backend']
- include_role:
name: nodejs_14
when: inventory_hostname in ['ketupa-backend']
- include_role:
name: frontend
......
......@@ -2,18 +2,18 @@
composer:
command: install
working_dir: /home/vagrant/src/backend/certificates
executable: /usr/bin/php7.4
executable: /usr/bin/php8.0
no_dev: no
become_user: vagrant
- name: copy virtualhost php
copy:
src: certificates-api-ketupa-neutrinet-me.conf
dest: /etc/php/7.4/fpm/pool.d/certificates-api-ketupa-neutrinet-me.conf
dest: /etc/php/8.0/fpm/pool.d/certificates-api-ketupa-neutrinet-me.conf
owner: root
group: root
mode: "u+rw,g+r,o+r"
notify: restart php7.4-fpm
notify: restart php8.0-fpm
- name: Create database postgresql
postgresql_db:
......@@ -35,18 +35,18 @@
composer:
command: install
working_dir: /home/vagrant/src/backend/ipam
executable: /usr/bin/php7.4
executable: /usr/bin/php8.0
no_dev: no
become_user: vagrant
- name: copy virtualhost php
copy:
src: ipam-api-ketupa-neutrinet-me.conf
dest: /etc/php/7.4/fpm/pool.d/ipam-api-ketupa-neutrinet-me.conf
dest: /etc/php/8.0/fpm/pool.d/ipam-api-ketupa-neutrinet-me.conf
owner: root
group: root
mode: "u+rw,g+r,o+r"
notify: restart php7.4-fpm
notify: restart php8.0-fpm
- name: Create database postgresql
postgresql_db:
......@@ -68,18 +68,18 @@
composer:
command: install
working_dir: /home/vagrant/src/backend/stats
executable: /usr/bin/php7.4
executable: /usr/bin/php8.0
no_dev: no
become_user: vagrant
- name: copy virtualhost php
copy:
src: stats-api-ketupa-neutrinet-me.conf
dest: /etc/php/7.4/fpm/pool.d/stats-api-ketupa-neutrinet-me.conf
dest: /etc/php/8.0/fpm/pool.d/stats-api-ketupa-neutrinet-me.conf
owner: root
group: root
mode: "u+rw,g+r,o+r"
notify: restart php7.4-fpm
notify: restart php8.0-fpm
- name: Create database postgresql
postgresql_db:
......
......@@ -2,18 +2,18 @@
composer:
command: install
working_dir: /home/vagrant/src/frontend
executable: /usr/bin/php7.4
executable: /usr/bin/php8.0
no_dev: no
become_user: vagrant
- name: copy virtualhost php
copy:
src: ketupa-vagrant-neutrinet-me.conf
dest: /etc/php/7.4/fpm/pool.d/ketupa-vagrant-neutrinet-me.conf
dest: /etc/php/8.0/fpm/pool.d/ketupa-vagrant-neutrinet-me.conf
owner: root
group: root
mode: "u+rw,g+r,o+r"
notify: restart php7.4-fpm
notify: restart php8.0-fpm
- name: copy virtualhost nginx
copy:
......
- name: Set php_executable variable
set_fact:
php_executable: /usr/bin/php7.4
php_executable: /usr/bin/php8.0
- name: Check if Composer is installed.
stat: path=/usr/local/bin/composer
......
deb https://deb.nodesource.com/node_12.x buster main
deb-src https://deb.nodesource.com/node_12.x buster main
deb https://deb.nodesource.com/node_14.x buster main
deb-src https://deb.nodesource.com/node_14.x buster main
......@@ -18,52 +18,62 @@
update_cache: yes
when: new_source_list_php_sury is changed
- name: Install php7.4
- name: Install php8.0
apt:
name: [php7.4-fpm, php7.4-bcmath, php7.4-bz2, php7.4-cli, php7.4-curl, php7.4-gd, php7.4-intl, php7.4-json, php7.4-mbstring, php7.4-opcache, php7.4-soap, php7.4-tidy, php7.4-xml, php7.4-zip, php7.4-mysql, php-xdebug, php7.4-gmp]
name: [
php8.0-cli,
php8.0-fpm,
php8.0-common,
php8.0-mbstring,
php8.0-opcache,
php8.0-readline,
php8.0-xml,
php8.0-xdebug,
php8.0-pgsql
]
state: present
- name: copy conf openssl
copy:
src: opensssl.ini
dest: /etc/php/7.4/mods-available/opensssl.ini
dest: /etc/php/8.0/mods-available/opensssl.ini
owner: root
group: root
mode: u+rw,g+r,o+r
notify: restart php7.4-fpm
notify: restart php8.0-fpm
- name: copy conf xdebug
copy:
src: xdebug.ini
dest: /etc/php/7.4/mods-available/xdebug.ini
dest: /etc/php/8.0/mods-available/xdebug.ini
owner: root
group: root
mode: u+rw,g+r,o+r
notify: restart php7.4-fpm
notify: restart php8.0-fpm
- name: enable conf openssl
file:
dest: /etc/php/7.4/{{ item }}/conf.d/20-openssl.ini
src: /etc/php/7.4/mods-available/opensssl.ini
dest: /etc/php/8.0/{{ item }}/conf.d/20-openssl.ini
src: /etc/php/8.0/mods-available/opensssl.ini
state: link
with_items:
- cli
- fpm
notify: restart php7.4-fpm
notify: restart php8.0-fpm
- name: enable conf openssl
file:
dest: /etc/php/7.4/{{ item }}/conf.d/20-xdebug.ini
src: /etc/php/7.4/mods-available/xdebug.ini
dest: /etc/php/8.0/{{ item }}/conf.d/20-xdebug.ini
src: /etc/php/8.0/mods-available/xdebug.ini
state: link
with_items:
- cli
- fpm
notify: restart php7.4-fpm
notify: restart php8.0-fpm
- name: enable startup php7.4-fpm
- name: enable startup php8.0-fpm
service:
name: php7.4-fpm
name: php8.0-fpm
state: started
enabled: yes
......@@ -12,7 +12,12 @@ IFS=$'\n\t'
###################
BRANCH='develop'
declare -A GIT_REPOS
# Compose
GIT_REPOS['.']='ssh://git@gitlab.domainepublic.net:3265/Neutrinet/ketupa/compose.git'
# Frontend
GIT_REPOS['src/frontend']='ssh://git@gitlab.domainepublic.net:3265/Neutrinet/ketupa/frontend.git'
# Backend
GIT_REPOS['src/backend/certificates']='ssh://git@gitlab.domainepublic.net:3265/Neutrinet/ketupa/backend/certificates.git'
GIT_REPOS['src/backend/ipam']='ssh://git@gitlab.domainepublic.net:3265/Neutrinet/ketupa/backend/ipam.git'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment