chore: ignore lint in changed mode

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2019-06-17 15:53:34 +08:00
parent d2113889d0
commit 6709411471
3 changed files with 9 additions and 4 deletions

View File

@ -28,3 +28,4 @@
when: drone_agent_config is defined and drone_agent_config.changed
tags:
- drone-agent
- skip_ansible_lint

View File

@ -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

View File

@ -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