Ansible Galaxy roles - distro - arch 64

69 views
Skip to first unread message

bryan hunt

unread,
Feb 26, 2014, 11:11:34 AM2/26/14
to ansible...@googlegroups.com


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

Michael DeHaan

unread,
Feb 26, 2014, 11:15:23 AM2/26/14
to ansible...@googlegroups.com
I'd just mention it in the comments of now.


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8bca7d59-8404-4849-8839-44847ccb3af3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Paul Durivage

unread,
Feb 26, 2014, 11:59:26 AM2/26/14
to ansible...@googlegroups.com
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'"





--

bryan hunt

unread,
Feb 26, 2014, 6:40:14 PM2/26/14
to ansible...@googlegroups.com
Yeah Paul, I like. I’ll add it now. Good suggestion. Thanks, Bryan
Reply all
Reply to author
Forward
0 new messages