Ansible Galaxy roles - distro - arch 64

I created a (trivial) role to install Docker onto Ubuntu Precise, and amended the meta/main.yml file appropriately.

There is an issue though, this role only works on Ubuntu Precise 64bit. AFAIK, Docker do not supply 32 bit debs for their service.

I can’t figure out how to express this, is there a way of expressing CPU architecture?

Thanks,

Bryan

I’d just mention it in the comments of now.

If you so choose, you could add a task to the role to ensure the system is a 64-bit system.

  • name: “Ensure system is x86_64”
    fail: msg=“Docker requires a 64bit system architecture”
    when: “ansible_architecture != ‘x86_64’”

See the fail module: http://docs.ansible.com/fail_module.html

Yeah Paul, I like. I’ll add it now. Good suggestion. Thanks, Bryan