Adaptation à un serveur Ubuntu.
This commit is contained in:
parent
78bcc1de0a
commit
52ad8a56a3
@ -1,6 +1,9 @@
|
||||
[web]
|
||||
127.0.0.1 ansible_ssh_user=ubuntu
|
||||
127.0.0.1
|
||||
|
||||
[web:vars]
|
||||
ansible_ssh_user=ubuntu
|
||||
ansible_python_interpreter=/usr/bin/python3
|
||||
mysql_root_password='motdepasse'
|
||||
mysql_old_root_password='motdepasse'
|
||||
php_version='8.0'
|
||||
|
||||
@ -3,6 +3,13 @@
|
||||
- hosts: web
|
||||
become: true
|
||||
|
||||
pre_tasks:
|
||||
- name: install commons
|
||||
apt:
|
||||
name:
|
||||
- python3-dev
|
||||
update_cache: yes
|
||||
|
||||
roles:
|
||||
- mariadb
|
||||
- nginx
|
||||
|
||||
@ -3,10 +3,15 @@
|
||||
apt:
|
||||
name:
|
||||
- mariadb-server
|
||||
- python-mysqldb # for mysql_db and mysql_user modules
|
||||
- libmysqlclient-dev
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: install python client
|
||||
pip:
|
||||
name: mysqlclient
|
||||
state: present
|
||||
|
||||
- name: ensure service is start
|
||||
service:
|
||||
name: mysql
|
||||
|
||||
@ -1,17 +1,9 @@
|
||||
---
|
||||
- name: download apt key
|
||||
get_url:
|
||||
url: https://packages.sury.org/php/apt.gpg
|
||||
dest: /tmp/php.gpg
|
||||
|
||||
- name: install apt key
|
||||
apt_key:
|
||||
file: /tmp/php.gpg
|
||||
state: present
|
||||
|
||||
- name: apt repository
|
||||
apt_repository:
|
||||
repo: deb https://packages.sury.org/php/ buster main
|
||||
repo: ppa:ondrej/php
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: install
|
||||
apt:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user