atosatto / ansible-dockerswarm

Docker Engine clustering using "Swarm Mode" and Ansible
https://galaxy.ansible.com/atosatto/docker-swarm/
MIT License
262 stars 149 forks source link

Make linux-image-extra-virtual optional install #4

Closed rothgar closed 8 years ago

rothgar commented 8 years ago

Referencing this task https://github.com/atosatto/ansible-dockerswarm/blob/master/tasks/docker_engine.yml#L21-L25

The linux-image-extra-virtual package is only needed if you use AUFS storage driver and fails to install on some debian flavors. I'm running on raspberry pi and the package isn't available.

Just a suggestion to make the playbook more flexible.

atosatto commented 8 years ago

This is a very good suggestions. Actually, I never tested the playbook on ARM. I'm definitively gonna make the linux-image-extra-virtualoptional. Thank you!

atosatto commented 8 years ago

I just made possible to customize the docker_dependencies.

The following playbook should work on a Raspberry Pi

- name: "Provision a Docker Swarm Cluster on ARM"
  hosts: all
  roles:
    - { role: atosatto.docker-swarm,
         docker_dependencies: [ ] }

Do you have any chance to test it? Thank you! :blush:

rothgar commented 8 years ago

Thanks, I'll give it a try tonight.

It may also be nice to separate out the dependencies (installing docker) from setting up swarm. I have my own playbook for installing docker which duplicates steps

rothgar commented 8 years ago

That worked for me.