Merge "Role should fail immediately when its preconditions are not met"

This commit is contained in:
Jenkins 2016-03-16 14:35:57 +00:00 committed by Gerrit Code Review
commit 45909d7c1a
2 changed files with 7 additions and 7 deletions

View File

@ -13,13 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Fail if the galera root password is not provided
fail:
msg: |
Please set the galera_root_password variable prior to applying the
galera role.
when: (galera_root_password is undefined) or (galera_root_password is none)
- name: Preseed galera password(s)
debconf:
name: "{{ item.name }}"

View File

@ -13,6 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Fail if the galera root password is not provided
fail:
msg: |
Please set the galera_root_password variable prior to applying the
galera role.
when: (galera_root_password is undefined) or (galera_root_password is none)
- include: galera_upgrade_check.yml
- include: galera_cluster_state.yml
- include: galera_pre_install.yml