dokku / ansible-dokku

Ansible modules for installing and configuring Dokku
MIT License
169 stars 44 forks source link

fix(dokku_storage): continue iteration when storage correctly mounted #143

Closed nerg4l closed 1 year ago

nerg4l commented 1 year ago

On the first existing element of the mount list under a dokku_storage the iteration stops because of return.

- name: "Mount persistent storage"
  dokku_storage:
    app: example-app
    mounts:
      - /var/lib/dokku/data/storage/mount1:/app/mount1
      - /var/lib/dokku/data/storage/mount2/app/mount2
      - /var/lib/dokku/data/storage/mount3:/app/mount3

In the above case if /var/lib/dokku/data/storage/mount2/app/mount2 already mounted then /var/lib/dokku/data/storage/mount1:/app/mount1 would be added but not /var/lib/dokku/data/storage/mount3:/app/mount3