Skip to content

Commit 6307bc0

Browse files
committed
Cs fixes
1 parent 9ec8983 commit 6307bc0

File tree

7 files changed

+13
-4
lines changed

7 files changed

+13
-4
lines changed

molecule/default/prepare.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
- name: include tasks
1111
ansible.builtin.import_tasks: "{{ playbook_dir }}/../../tests/tasks/pre.yml"
1212
handlers:
13-
- ansible.builtin.import_tasks: "{{ playbook_dir }}/../../tests/handlers/main.yml"
13+
- name: include handlers
14+
ansible.builtin.import_tasks: "{{ playbook_dir }}/../../tests/handlers/main.yml"

tasks/core.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
wp-cli core download
1616
--allow-root --no-color --path='{{ item.item.path }}'
1717
--locale='{{ item.item.locale | default('en_US') }}'
18+
changed_when: true
1819
with_items: "{{ _check_download.results | default([]) }}"
1920
when: item.rc != 0
2021
tags:
@@ -54,6 +55,7 @@
5455
--admin_name='{{ item.item.admin_name | default('admin') }}'
5556
--admin_email='{{ item.item.admin_email }}'
5657
--admin_password='{{ item.item.admin_password }}'
58+
changed_when: true
5759
with_items: "{{ _check_installation.results | default([]) }}"
5860
when: item.rc != 0
5961
tags:

tasks/plugins.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
ansible.builtin.command: >
1818
wp-cli --allow-root --no-color --path='{{ item.item.0.path }}'
1919
{{ '--force' if item.item.1.force | default(false) else '' }} plugin install {{ item.item.1.name }}
20+
changed_when: true
2021
with_items: "{{ _check_installation_plugins.results | default([]) }}"
2122
when:
2223
- item.item.1.name
@@ -49,6 +50,7 @@
4950
ansible.builtin.command: >
5051
wp-cli --allow-root --no-color --path='{{ item.item.0.path }}'
5152
{{ '--force' if item.item.1.force | default(false) else '' }} plugin install {{ wordpress_data_path }}/plugins/{{ item.item.1.name }}.zip
53+
changed_when: true
5254
with_items: "{{ _check_installation_plugins.results | default([]) }}"
5355
when:
5456
- item.item.1.name
@@ -64,6 +66,7 @@
6466
ansible.builtin.command: >
6567
wp-cli --allow-root --no-color --path='{{ item.item.0.path }}'
6668
{{ '--force' if item.item.1.force | default(false) else '' }} plugin install {{ item.item.1.url }}
69+
changed_when: true
6770
with_items: "{{ _check_installation_plugins.results | default([]) }}"
6871
when:
6972
- item.item.1.name

tasks/themes.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- name: themes | install
1717
ansible.builtin.command: >
1818
wp-cli --allow-root --no-color --path='{{ item.item.0.path }}' theme install {{ item.item.1.name }}
19+
changed_when: true
1920
with_items: "{{ _check_installation_themes.results | default([]) }}"
2021
when:
2122
- item.item.1.name

tasks/users.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
tags:
1414
- wordpress-users-copy-file
1515

16-
- name: users | install
16+
- name: users | install # noqa no-handler
1717
ansible.builtin.command: >
1818
wp-cli user import-csv
1919
--allow-root --no-color --path='{{ item.item.path }}'

tests/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
roles:
1212
- ../../
1313
handlers:
14-
- ansible.builtin.import_tasks: "{{ playbook_dir }}/handlers/main.yml"
14+
- name: include handlers
15+
ansible.builtin.import_tasks: "{{ playbook_dir }}/handlers/main.yml"

tests/vagrant.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
roles:
1212
- ../../
1313
handlers:
14-
- ansible.builtin.import_tasks: "{{ playbook_dir }}/handlers/main.yml"
14+
- name: include handlers
15+
ansible.builtin.import_tasks: "{{ playbook_dir }}/handlers/main.yml"
1516
vars:
1617
wordpress_installs:
1718
- name: wordpress

0 commit comments

Comments
 (0)