diff --git a/tasks/drone-agent.yml b/tasks/drone-agent.yml index dd2a8cd..41b75c3 100644 --- a/tasks/drone-agent.yml +++ b/tasks/drone-agent.yml @@ -28,3 +28,4 @@ when: drone_agent_config is defined and drone_agent_config.changed tags: - drone-agent + - skip_ansible_lint diff --git a/tasks/drone-database.yml b/tasks/drone-database.yml index 1059d89..a7581d4 100644 --- a/tasks/drone-database.yml +++ b/tasks/drone-database.yml @@ -29,6 +29,7 @@ tags: - postgres - database + - skip_ansible_lint - name: Creates mysql directory file: @@ -61,3 +62,4 @@ tags: - mysql - database + - skip_ansible_lint diff --git a/tasks/drone-server.yml b/tasks/drone-server.yml index bf99e36..7b29464 100644 --- a/tasks/drone-server.yml +++ b/tasks/drone-server.yml @@ -48,11 +48,12 @@ volumes: - "{{ drone_sqlite_dir }}:/data" env_file: /etc/drone/drone-server.env - when: ((drone_server_config is defined and drone_server_config.changed) or - (drone_sqlite_folder is defined and drone_sqlite_folder.changed)) and + when: (drone_server_config is defined and drone_server_config.changed) or + (drone_sqlite_folder is defined and drone_sqlite_folder.changed) or drone_database_driver == "sqlite" tags: - drone-server + - skip_ansible_lint - name: run drone server with postgres or mysql database docker_container: @@ -67,8 +68,9 @@ volumes: - "{{ drone_sqlite_dir }}:/data" env_file: /etc/drone/drone-server.env - when: ((drone_server_config is defined and drone_server_config.changed) or - (drone_postgres_data_dir is defined and drone_postgres_data_dir.changed)) or + when: (drone_server_config is defined and drone_server_config.changed) or + (drone_postgres_data_dir is defined and drone_postgres_data_dir.changed) or drone_database_driver != "sqlite" tags: - drone-server + - skip_ansible_lint