Skip to content

Commit 0bc54dd

Browse files
committed
Update Drupal role to latest version.
1 parent 0345df4 commit 0bc54dd

File tree

8 files changed

+26
-58
lines changed

8 files changed

+26
-58
lines changed

provisioning/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ roles:
1919
- name: geerlingguy.daemonize
2020
version: 1.2.2
2121
- name: geerlingguy.drupal
22-
version: 4.2.0
22+
version: 4.3.0
2323
- name: geerlingguy.drupal-console
2424
version: 1.1.1
2525
- name: geerlingguy.drush
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
skip_list:
2-
- '204'
3-
- '503'
4-
- '106'
2+
- 'yaml'
3+
- 'no-handler'
4+
- 'role-name'

provisioning/roles/geerlingguy.drupal/.github/stale.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ onlyLabels: []
1212

1313
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
1414
exemptLabels:
15+
- bug
1516
- pinned
1617
- security
1718
- planned

provisioning/roles/geerlingguy.drupal/.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,25 @@ jobs:
2929
python-version: '3.x'
3030

3131
- name: Install test dependencies.
32-
run: pip3 install yamllint ansible-lint
32+
run: pip3 install yamllint
3333

3434
- name: Lint code.
3535
run: |
3636
yamllint .
37-
ansible-lint
3837
3938
molecule:
4039
name: Molecule
4140
runs-on: ubuntu-latest
4241
strategy:
4342
matrix:
4443
include:
45-
- distro: centos8
44+
- distro: rockylinux8
4645
playbook: converge.yml
4746
- distro: ubuntu1804
4847
playbook: converge.yml
49-
- distro: centos8
48+
# - distro: debian10
49+
# playbook: converge.yml
50+
- distro: rockylinux8
5051
playbook: deploy.yml
5152

5253
steps:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
*.retry
22
*/__pycache__
33
*.pyc
4+
.cache
5+

provisioning/roles/geerlingguy.drupal/tasks/build-composer-project.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,13 @@
3333
become: false
3434
when: not drupal_site_exists
3535

36-
# Use manual composer require tasks until Ansible 2.10.4 is released.
3736
- name: Install dependencies with composer require (this may take a while).
38-
command: "{{ composer_path }} require {{ item }} -d {{ drupal_composer_install_dir }}"
39-
register: composer_require_result
40-
changed_when: "'Nothing to install' not in composer_require_result.stderr"
41-
with_items: "{{ drupal_composer_dependencies|default([]) }}"
37+
composer:
38+
command: require
39+
arguments: "{{ item }}"
40+
working_dir: "{{ drupal_composer_install_dir }}"
41+
with_items: "{{ drupal_composer_dependencies | default([]) }}"
4242
become: false
4343
environment:
4444
COMPOSER_PROCESS_TIMEOUT: 1200
4545
COMPOSER_MEMORY_LIMIT: '-1'
46-
47-
# Switch back to this task after Ansible 2.10.4 is released.
48-
# - name: Install dependencies with composer require (this may take a while).
49-
# composer:
50-
# command: require
51-
# arguments: "{{ item }}"
52-
# working_dir: "{{ drupal_composer_install_dir }}"
53-
# with_items: "{{ drupal_composer_dependencies | default([]) }}"
54-
# become: false
55-
# environment:
56-
# COMPOSER_PROCESS_TIMEOUT: 1200
57-
# COMPOSER_MEMORY_LIMIT: '-1'

provisioning/roles/geerlingguy.drupal/tasks/build-composer.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,13 @@
2929
when: not drupal_site_exists
3030
become: false
3131

32-
# Use manual composer require tasks until Ansible 2.10.4 is released.
3332
- name: Install dependencies with composer require (this may take a while).
34-
command: "{{ composer_path }} require {{ item }} -d {{ drupal_composer_install_dir }}"
35-
register: composer_require_result
36-
changed_when: "'Nothing to install' not in composer_require_result.stderr"
37-
with_items: "{{ drupal_composer_dependencies|default([]) }}"
33+
composer:
34+
command: require
35+
arguments: "{{ item }}"
36+
working_dir: "{{ drupal_composer_install_dir }}"
37+
with_items: "{{ drupal_composer_dependencies | default([]) }}"
3838
become: false
3939
environment:
4040
COMPOSER_PROCESS_TIMEOUT: 1200
4141
COMPOSER_MEMORY_LIMIT: '-1'
42-
43-
# Switch back to this task after Ansible 2.10.4 is released.
44-
# - name: Install dependencies with composer require (this may take a while).
45-
# composer:
46-
# command: require
47-
# arguments: "{{ item }}"
48-
# working_dir: "{{ drupal_composer_install_dir }}"
49-
# with_items: "{{ drupal_composer_dependencies | default([]) }}"
50-
# become: false
51-
# environment:
52-
# COMPOSER_PROCESS_TIMEOUT: 1200
53-
# COMPOSER_MEMORY_LIMIT: '-1'

provisioning/roles/geerlingguy.drupal/tasks/deploy.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,13 @@
2525
stat: "path={{ drupal_deploy_dir }}/composer.json"
2626
register: drupal_deploy_composer_file
2727

28-
# Use manual composer require tasks until Ansible 2.10.4 is released.
2928
- name: Run composer install if composer.json is present.
30-
command: "composer install -d {{ drupal_deploy_dir }}{% if drupal_composer_no_dev %} --no-dev{% endif %}"
31-
register: composer_install_result
32-
changed_when: "'Nothing to install' not in composer_install_result.stderr"
29+
composer:
30+
command: install
31+
working_dir: "{{ drupal_deploy_dir }}"
32+
no_dev: "{{ drupal_composer_no_dev }}"
3333
when:
3434
- drupal_deploy_composer_file.stat.exists
3535
- drupal_deploy_composer_install
3636
become: "{{ drupal_core_owner_become }}"
3737
become_user: "{{ drupal_core_owner }}"
38-
39-
# Switch back to this task after Ansible 2.10.4 is released.
40-
# - name: Run composer install if composer.json is present.
41-
# composer:
42-
# command: install
43-
# working_dir: "{{ drupal_deploy_dir }}"
44-
# no_dev: "{{ drupal_composer_no_dev }}"
45-
# when:
46-
# - drupal_deploy_composer_file.stat.exists
47-
# - drupal_deploy_composer_install
48-
# become: "{{ drupal_core_owner_become }}"
49-
# become_user: "{{ drupal_core_owner }}"

0 commit comments

Comments
 (0)