1
0
mirror of https://github.com/krislamo/vagrant-easyredmine synced 2024-11-09 22:40:36 +00:00

use 'is changed' syntax per current best practices

This commit is contained in:
Mark Heiges 2018-05-10 10:07:01 -04:00
parent e0102464e5
commit 48aa89dc20
2 changed files with 6 additions and 6 deletions

View File

@ -47,13 +47,13 @@
login_user: '{{ mysql_admin_login }}' login_user: '{{ mysql_admin_login }}'
login_password: '{{ mysql_admin_password }}' login_password: '{{ mysql_admin_password }}'
register: redmine_db_import register: redmine_db_import
when: do_redmine_db_import == True and (redmine_db_import_done.stat.exists == False or redmine_db_created|changed) when: do_redmine_db_import == True and (redmine_db_import_done.stat.exists == False or redmine_db_created is changed)
- name: create successful database import file - name: create successful database import file
file: file:
path: '{{ _redmine_db_import_success }}' path: '{{ _redmine_db_import_success }}'
state: touch state: touch
when: do_redmine_db_import == True and redmine_db_import_done.stat.exists == False and redmine_db_import|success when: do_redmine_db_import == True and redmine_db_import_done.stat.exists == False and redmine_db_import is success
- name: create redmine db user - name: create redmine db user
mysql_user: mysql_user:

View File

@ -56,7 +56,7 @@
path: '{{ redmine_root_dir }}' path: '{{ redmine_root_dir }}'
state: absent state: absent
become: yes become: yes
when: redmine_db_created is defined and redmine_db_created|changed when: redmine_db_created is defined and redmine_db_created is changed
- name: make installation directory - name: make installation directory
file: file:
@ -67,9 +67,9 @@
become: yes become: yes
register: mk_redmine_root_dir register: mk_redmine_root_dir
- name: run redmine installer - name: run redmine installer (`tail -f ~vagrant/install.log` on guest for status)
shell: 'source ~/.bash_profile && {{ _redmine_install_wrapper }} > ~/install.log 2>&1' shell: 'source ~/.bash_profile && {{ _redmine_install_wrapper }} > ~/install.log 2>&1'
when: mk_redmine_root_dir|changed and do_redmine_installer == True when: mk_redmine_root_dir is changed and do_redmine_installer == True
register: installer_run register: installer_run
become: no become: no