File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 2424 become : yes
2525
2626- hosts : web
27- roles :
28- - mariadb
29- # - scorebot_deps_2019
3027 tasks :
3128
3229 - user :
116113 group : " vagrant"
117114 recurse : yes
118115 become : yes
116+
117+ - hosts : web
118+ roles :
119+ - mariadb
120+ # - scorebot_deps_2019
Original file line number Diff line number Diff line change 129129 become : True
130130
131131
132- - name : Adding deploy DB user and allow access to news_ * databases
132+ - name : Adding deploy DB user and allow access to ctf_ * databases
133133 mysql_user :
134134 name : ctf
135135 password : " {{ mysql_ctf_password }}"
153153 copy :
154154 src : " {{ role_path }}/files/ctf_dump.sql"
155155 dest : /tmp
156- when : db_created.changed and dump_file.exists
156+ when : db_created.changed and dump_file.stat. exists
157157 become : True
158158
159159
164164 target : /tmp/ctf_dump.sql
165165 login_user : root
166166 login_password : " {{ mysql_root_password }}"
167- when : db_created.changed and dump_file.exists
167+ when : db_created.changed and dump_file.stat. exists
168168 become : True
169169
170170
180180 chdir : /vagrant/ctfdbapi/
181181 environment :
182182 PYTHONPATH : " /vagrant/ctfdbapi/"
183- # when: db_created.changed and not dump_file.exists
184- # when: not dump_file.exists
183+ when : db_created.changed and not dump_file.stat.exists
185184 become : yes
186185
187186
You can’t perform that action at this time.
0 commit comments