Fix double mv command

This commit is contained in:
Slavi Pantaleev 2019-06-07 15:05:53 +03:00
parent 172b0fa88c
commit bf446b6e15

View File

@ -36,7 +36,6 @@
name: matrix-mautrix-facebook
state: stopped
daemon_reload: yes
register: stopping_result
failed_when: false
when: "matrix_mautrix_facebook_stat_database.stat.exists"
@ -44,10 +43,6 @@
command: "mv {{ matrix_mautrix_facebook_base_path }}/mautrix-facebook.db {{ matrix_mautrix_facebook_data_path }}/mautrix-facebook.db"
when: "matrix_mautrix_facebook_stat_database.stat.exists"
- name: (Data relocation) Move mautrix-facebook database file to ./data directory
command: "mv {{ matrix_mautrix_facebook_base_path }}/mautrix-facebook.db {{ matrix_mautrix_facebook_data_path }}/mautrix-facebook.db"
when: "matrix_mautrix_facebook_stat_database.stat.exists"
- name: Ensure mautrix-facebook config.yaml installed
copy:
content: "{{ matrix_mautrix_facebook_configuration|to_nice_yaml }}"