-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from Oefenweb/consistency-changes
Consistency changes
- Loading branch information
Showing
13 changed files
with
133 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ galaxy_info: | |
versions: | ||
- squeeze | ||
- wheezy | ||
- jessie | ||
categories: | ||
- web | ||
dependencies: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,48 @@ | ||
# tasks file for wordpress, core | ||
--- | ||
- name: check download | ||
- name: core | check download | ||
shell: "ls {{ item.path }} | grep -q 'wp-'" | ||
register: check_download | ||
failed_when: False | ||
changed_when: False | ||
failed_when: false | ||
changed_when: false | ||
with_items: wordpress_installs | ||
tags: [configuration, wordpress, wordpress-core, wordpress-is-downloaded] | ||
tags: | ||
- wordpress-core-is-downloaded | ||
|
||
- name: download | ||
shell: "wp-cli --allow-root --no-color --path='{{ item.item.path }}' core download" | ||
- name: core | download | ||
command: "wp-cli --allow-root --no-color --path='{{ item.item.path }}' core download" | ||
with_items: check_download.results | ||
when: item.rc != 0 | ||
tags: [configuration, wordpress, wordpress-core, wordpress-downloaded] | ||
tags: | ||
- wordpress-core-downloaded | ||
|
||
- name: configure | ||
shell: "wp-cli --allow-root --no-color --path='{{ item.path }}' core config --dbname='{{ item.dbname }}' --dbuser='{{ item.dbuser }}' --dbpass='{{ item.dbpass }}' --dbhost='{{ item.dbhost | default('localhost') }}'" | ||
- name: core | configure | ||
command: "wp-cli --allow-root --no-color --path='{{ item.path }}' core config --dbname='{{ item.dbname }}' --dbuser='{{ item.dbuser }}' --dbpass='{{ item.dbpass }}' --dbhost='{{ item.dbhost | default('localhost') }}'" | ||
args: | ||
creates: "{{ item.path }}/wp-config.php" | ||
with_items: wordpress_installs | ||
tags: [configuration, wordpress, wordpress-core, wordpress-configure] | ||
tags: | ||
- wordpress-core-configure | ||
|
||
- name: identify installation | ||
shell: "wp-cli --allow-root --no-color --path='{{ item.path }}' core is-installed" | ||
- name: core | identify installation | ||
command: "wp-cli --allow-root --no-color --path='{{ item.path }}' core is-installed" | ||
register: check_installation | ||
failed_when: False | ||
changed_when: False | ||
failed_when: false | ||
changed_when: false | ||
with_items: wordpress_installs | ||
tags: [configuration, wordpress, wordpress-core, wordpress-is-installed] | ||
tags: | ||
- wordpress-core-is-installed | ||
|
||
- name: install | ||
shell: "wp-cli --allow-root --no-color --path='{{ item.item.path }}' core install --url='{{ item.item.url }}' --title='{{ item.item.title }}' --admin_name='{{ item.item.admin_name | default('admin') }}' --admin_email='{{ item.item.admin_email }}' --admin_password='{{ item.item.admin_password }}'" | ||
- name: core | install | ||
command: "wp-cli --allow-root --no-color --path='{{ item.item.path }}' core install --url='{{ item.item.url }}' --title='{{ item.item.title }}' --admin_name='{{ item.item.admin_name | default('admin') }}' --admin_email='{{ item.item.admin_email }}' --admin_password='{{ item.item.admin_password }}'" | ||
with_items: check_installation.results | ||
when: item.rc != 0 | ||
tags: [configuration, wordpress, wordpress-core, wordpress-install] | ||
tags: | ||
- wordpress-core-install | ||
|
||
- name: check install | ||
shell: "wp-cli --allow-root --no-color --path='{{ item.path }}' core is-installed" | ||
changed_when: False | ||
- name: core | check install | ||
command: "wp-cli --allow-root --no-color --path='{{ item.path }}' core is-installed" | ||
changed_when: false | ||
with_items: wordpress_installs | ||
tags: [configuration, wordpress, wordpress-core, wordpress-install-check] | ||
tags: | ||
- wordpress-core-install-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,43 @@ | ||
# tasks file for wordpress | ||
--- | ||
- include: wp-cli.yml | ||
tags: | ||
- configuration | ||
- wordpress | ||
- wordpress-wp-cli | ||
|
||
- include: core.yml | ||
tags: | ||
- configuration | ||
- wordpress | ||
- wordpress-core | ||
|
||
- include: themes.yml | ||
tags: | ||
- configuration | ||
- wordpress | ||
- wordpress-themes | ||
|
||
- include: plugins.yml | ||
tags: | ||
- configuration | ||
- wordpress | ||
- wordpress-plugins | ||
|
||
- include: users.yml | ||
tags: | ||
- configuration | ||
- wordpress | ||
- wordpress-users | ||
|
||
- include: options.yml | ||
tags: | ||
- configuration | ||
- wordpress | ||
- wordpress-options | ||
|
||
- include: chown.yml | ||
tags: | ||
- configuration | ||
- wordpress | ||
- wordpress-chown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,52 @@ | ||
# tasks file for wordpress, plugins | ||
--- | ||
- name: identify installation (plugin) | ||
- name: plugins | identify installation | ||
command: "wp-cli --allow-root --no-color --path='{{ item.0.path }}' plugin is-installed {{ item.1.name }}" | ||
register: check_installation_plugins | ||
failed_when: False | ||
changed_when: False | ||
failed_when: false | ||
changed_when: false | ||
with_subelements: | ||
- wordpress_installs | ||
- plugins | ||
when: item.1 | ||
tags: [configuration, wordpress, wordpress-plugins, wordpress-is-installed-plugin] | ||
tags: | ||
- wordpress-plugins-is-installed-plugin | ||
|
||
- name: install (plugin) | ||
- name: plugins | install | ||
command: "wp-cli --allow-root --no-color --path='{{ item.item.0.path }}' plugin install {{ item.item.1.name }}" | ||
with_items: check_installation_plugins.results | ||
when: check_installation_plugins is defined and item.item.1.name and item.rc != 0 | ||
tags: [configuration, wordpress, wordpress-plugins, wordpress-install-plugin] | ||
tags: | ||
- wordpress-plugins-install-plugin | ||
|
||
- name: check install (plugin) | ||
- name: plugins | check install | ||
command: "wp-cli --allow-root --no-color --path='{{ item.0.path }}' plugin is-installed {{ item.1.name }}" | ||
changed_when: False | ||
changed_when: false | ||
with_subelements: | ||
- wordpress_installs | ||
- plugins | ||
when: item.1.name | ||
tags: [configuration, wordpress, wordpress-plugins, wordpress-install-plugin-check] | ||
tags: | ||
- wordpress-plugins-check-install-plugin | ||
|
||
- name: activate (plugin) | ||
- name: plugins | activate | ||
command: "wp-cli --allow-root --no-color --path='{{ item.0.path }}' plugin activate {{ item.1.name }}" | ||
register: check_activate_plugin | ||
changed_when: "'Success: Plugin' in check_activate_plugin.stdout" | ||
with_subelements: | ||
- wordpress_installs | ||
- plugins | ||
when: item.1.name and item.1.activate | default(true) | ||
tags: [configuration, wordpress, wordpress-plugins, wordpress-activate-plugin] | ||
tags: | ||
- wordpress-plugins-activate-plugin | ||
|
||
- name: deactivate (plugin) | ||
- name: plugins | deactivate | ||
command: "wp-cli --allow-root --no-color --path='{{ item.0.path }}' plugin deactivate {{ item.1.name }}" | ||
register: check_activate_plugin | ||
changed_when: "'Success: Plugin' in check_activate_plugin.stdout" | ||
with_subelements: | ||
- wordpress_installs | ||
- plugins | ||
when: item.1.name and not item.1.activate | default(true) | ||
tags: [configuration, wordpress, wordpress-plugins, wordpress-deactivate-plugin] | ||
tags: | ||
- wordpress-plugins-deactivate-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,41 @@ | ||
# tasks file for wordpress, themes | ||
--- | ||
- name: identify installation (theme) | ||
- name: themes | identify installation | ||
command: "wp-cli --allow-root --no-color --path='{{ item.0.path }}' theme is-installed {{ item.1.name }}" | ||
register: check_installation_themes | ||
failed_when: False | ||
changed_when: False | ||
failed_when: false | ||
changed_when: false | ||
with_subelements: | ||
- wordpress_installs | ||
- themes | ||
when: item.1.name | ||
tags: [configuration, wordpress, wordpress-themes, wordpress-is-installed-theme] | ||
tags: | ||
- wordpress-themes-is-installed-theme | ||
|
||
- name: install (theme) | ||
- name: themes | install | ||
command: "wp-cli --allow-root --no-color --path='{{ item.item.0.path }}' theme install {{ item.item.1.name }}" | ||
with_items: check_installation_themes.results | ||
when: check_installation_themes is defined and item.item.1.name and item.rc != 0 | ||
tags: [configuration, wordpress, wordpress-themes, wordpress-install-theme] | ||
tags: | ||
- wordpress-themes-install-theme | ||
|
||
- name: check install (theme) | ||
- name: themes | check install | ||
command: "wp-cli --allow-root --no-color --path='{{ item.0.path }}' theme is-installed {{ item.1.name }}" | ||
changed_when: False | ||
changed_when: false | ||
with_subelements: | ||
- wordpress_installs | ||
- themes | ||
when: item.1.name | ||
tags: [configuration, wordpress, wordpress-themes, wordpress-install-theme-check] | ||
tags: | ||
- wordpress-themes-install-theme-check | ||
|
||
- name: activate (theme) | ||
- name: themes | activate | ||
command: "wp-cli --allow-root --no-color --path='{{ item.0.path }}' theme activate {{ item.1.name }}" | ||
register: check_activate_theme | ||
changed_when: "'Success: Switched to' in check_activate_theme.stdout" | ||
with_subelements: | ||
- wordpress_installs | ||
- themes | ||
when: item.1.name and item.1.activate | default(false) | ||
tags: [configuration, wordpress, wordpress-themes, wordpress-activate-theme] | ||
tags: | ||
- wordpress-themes-activate-theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.