app-requirement-php82/app-requirement-php82.yaml

46 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2023-02-08 09:21:36 +00:00
---
- hosts: localhost
become: yes
tasks:
- name: Installation install software-properties-common
apt: name=software-properties-common
- name: Repo PHP 7.0
apt_repository: repo="ppa:ondrej/php"
- name: Updating the repo
apt: update_cache=yes
- name: Installation PHP 7.0
apt: name=php7.0 state=present
- name: install lamp stack
apt:
pkg:
- php7.0-cli
- php7.0-json
- php7.0-common
- php7.0-mysql
- php7.0-zip
- php7.0-gd
- php7.0-mbstring
- php7.0-curl
- php7.0-xml
- php7.0-bcmath
- libapache2-mod-php
state: present
update_cache: yes
- name: update
apt: update_cache=yes
ignore_errors: yes
- name: Install MariaDB Server 10.3
apt: name=mariadb-server state=latest
- name: Install MariaDB Client 10.3
apt: name=mariadb-client state=latest
- name: Restart MariaDB 10.3
service: name=mysql state=restarted
- name: Update apt-get repo and cache
apt: update_cache=yes force_apt_get=yes
- name: Upgrade all packages on servers
apt: upgrade=dist force_apt_get=yes
- name: install software-properties-common
apt: name=software-properties-common
- name: Installation filezilla
apt: name=filezilla state=present