-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathremove_package.yml
32 lines (28 loc) · 991 Bytes
/
remove_package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# ansible-playbook -i inventory_hostname remove_package.yml --extra-vars="module=name"
#
---
- hosts: contao
tasks:
- name: 'Remove package'
shell: "{{ php_path }} -d memory_limit=-1 web/contao-manager.phar.php composer remove {{module}}"
args:
chdir: '{{ websitePath }}'
register: update
- debug:
var: update.stdout_lines
- name: 'Clears the cache'
shell: "{{ php_path }} -d memory_limit=-1 {{ websitePath }}/vendor/bin/contao-console cache:clear"
register: cacheStatus
- debug:
var: cacheStatus.stdout_lines
- name: 'Warms up an empty cache'
shell: "{{ php_path }} -d memory_limit=-1 {{ websitePath }}/vendor/bin/contao-console cache:warmup"
register: warmupStatus
- debug:
var: warmupStatus.stdout_lines
- name: 'Datenbankupdate für Contao'
command: "{{ php_path }} -d memory_limit=-1 {{ websitePath }}/vendor/bin/contao-console contao:migrate "
register: dbupdate
- debug:
var: dbupdate.stdout_lines