diff --git a/tasks/main.yml b/tasks/main.yml index ede847c..c78bb86 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,19 +1,13 @@ --- -# tasks file for setting up an assetto server on ubuntu20.04 +# tasks file for setting up a rocketchat server on ubuntu20.04 - include: ssh_port_fallback.yml + - include: harden.yml # become: true when: harden_os tags: harden - include: docker.yml -# become: true -# apply tags,become -# when: harden_os tags: install-docker - include: rocketchat.yml -# become: true -# apply tags,become -# when: harden_os -# tags: harden diff --git a/tasks/rocketchat.yml b/tasks/rocketchat.yml index f0e21dd..43605f4 100644 --- a/tasks/rocketchat.yml +++ b/tasks/rocketchat.yml @@ -105,6 +105,7 @@ # chdir: /home/{{ main_user }}/rocketchat # chdir: / register: __backup_result + tags: mongodump - name: Copy backup we just took to home/{{ main_user }}/backups when: backup_db and not __backup_result.failed @@ -112,12 +113,14 @@ src: /home/{{ main_user }}/rocketchat/data/dump/{{ ansible_date_time.iso8601 }} dest: /home/{{ main_user }}/backups/{{ ansible_date_time.iso8601 }}.gzip remote_src: yes + tags: mongodump - name: Pull newly created mongodump into local backups directory when: backup_db and not __backup_result.failed ansible.builtin.fetch: src: /home/{{ main_user }}/backups/{{ ansible_date_time.iso8601 }}.gzip dest: "{{ local_backup_dir }}" + tags: mongodump - name: debug docker compose down debug: @@ -130,4 +133,5 @@ - name: debug mongo backup when: backup_db debug: - var: __backup_result \ No newline at end of file + var: __backup_result + tags: mongodump