mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 09:01:38 +01:00
feat: typo3 base
This commit is contained in:
56
roles/typo3-cms/tasks/main.yaml
Normal file
56
roles/typo3-cms/tasks/main.yaml
Normal 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/
|
||||
Reference in New Issue
Block a user