feat: typo3 base

This commit is contained in:
2023-01-16 15:41:10 +01:00
parent 681ed0d4af
commit 62039fffa2
2 changed files with 60 additions and 0 deletions

View File

@@ -30,3 +30,7 @@
- hosts: monitoring - hosts: monitoring
roles: roles:
- { role : monitoring-master, tags : [ "monitoring-master", "icinga", "grafana" ] } - { role : monitoring-master, tags : [ "monitoring-master", "icinga", "grafana" ] }
- hosts: typo3-cms
roles:
- { role : typo3-cms, tags : [ "typo3" ] }

View File

@@ -0,0 +1,56 @@
- name: Install php dependencies
apt:
pkg:
- curl
- php
- php-cli
- php-mbstring
- unzip
- php-common
- php-mysql
- php-sqlite3
- php-gd
- php-curl
- php-json
- php-intl
- php-bcmath
- php-zip
- php-apcu
- php-mbstring
- php-xml
- php-soap
- name: Check composer installed
stat:
path: /usr/local/bin/composer
register: composer_install_location_stat
- name: Download composer
get_url:
url: https://getcomposer.org/installer
dest: /root/composer-setup.php
when: not composer_install_location_stat.stat.exists
- name: Install composer
command: php composer-setup.php --install-dir=/usr/local/bin --filename=composer
when: not composer_install_location_stat.stat.exists
- name: Ensure composer world read/execute
file:
path: /usr/local/bin/composer
mode: 0755
- name: Change permissions on /var/www
file:
path: /var/www
mode: 0755
owner: www-data
group: www-data
- name: Install typo3 cms
become: true
become_user: www-data
community.general.composer:
command: create-project
arguments: "typo3/cms-base-distribution:^12 atlantishq-cms"
working_dir: /var/www/