diff --git a/roles/gitea/tasks/main.yml b/roles/gitea/tasks/main.yml index 836281a..0db09c7 100644 --- a/roles/gitea/tasks/main.yml +++ b/roles/gitea/tasks/main.yml @@ -6,6 +6,7 @@ docker_container: name: "{{ gitea_dbname }}" image: mariadb:{{ gitea_dbversion }} + state: started restart_policy: always volumes: "{{ gitea_dbroot }}:/var/lib/mysql" networks_cli_compatible: true @@ -21,6 +22,7 @@ docker_container: name: "{{ gitea_name }}" image: gitea/gitea:{{ gitea_version }} + state: started restart_policy: always networks_cli_compatible: true networks: diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml index 646fe5a..fd9f870 100644 --- a/roles/nextcloud/tasks/main.yml +++ b/roles/nextcloud/tasks/main.yml @@ -6,6 +6,7 @@ docker_container: name: "{{ nextcloud_dbcontainer }}" image: mariadb:{{ nextcloud_dbversion }} + state: started restart_policy: always volumes: "{{ nextcloud_dbroot }}:/var/lib/mysql" networks_cli_compatible: true @@ -21,6 +22,7 @@ docker_container: name: "{{ nextcloud_container }}" image: nextcloud:{{ nextcloud_version }} + state: started restart_policy: always volumes: "{{ nextcloud_root }}:/var/www/html" networks_cli_compatible: true diff --git a/roles/prometheus/tasks/main.yml b/roles/prometheus/tasks/main.yml index ceb56de..45cf189 100644 --- a/roles/prometheus/tasks/main.yml +++ b/roles/prometheus/tasks/main.yml @@ -43,6 +43,8 @@ docker_container: name: "{{ grafana_name }}" image: grafana/grafana:{{ grafana_version }} + state: started + restart_policy: always networks_cli_compatible: true networks: - name: "{{ prom_name }}"