Add cache to minimize time for installing ansible collections
continuous-integration/drone Build is failing Details

This commit is contained in:
Jim Martens 2023-08-17 23:53:39 +02:00
parent 8f31d2dd3d
commit d5c7597a04
1 changed files with 8 additions and 0 deletions

View File

@ -139,6 +139,9 @@ steps:
- git push origin main
- name: deploy image
image: plugins/ansible:latest
volumes:
- name: cache
path: /root/.ansible
settings:
playbook: ansible/deploy_spring.yaml
inventory: ansible/inventories/production
@ -148,6 +151,11 @@ steps:
vault_password:
from_secret: vault_password
volumes:
- name: cache
host:
path: /var/lib/drone/cache/.ansible
trigger:
# target:
# - production