# Ansible Galaxy roles - distro - arch 64

**URL:** <https://forum.ansible.com/t/ansible-galaxy-roles-distro-arch-64/14661>\
**Category:** Ansible Project\
**Tags:** ubuntu, galaxy-ng\
**Created:** [February 26, 2014, 4:11pm UTC](https://forum.ansible.com/t/ansible-galaxy-roles-distro-arch-64/14661 "2014-02-26T16:11:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryan\_hunt1](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bryan\_hunt1](https://forum.ansible.com/u/bryan_hunt1)\
**Post date:** [February 26, 2014, 4:11pm UTC](https://forum.ansible.com/t/ansible-galaxy-roles-distro-arch-64/14661/1 "2014-02-26T16:11:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [February 26, 2014, 4:15pm UTC](https://forum.ansible.com/t/ansible-galaxy-roles-distro-arch-64/14661/2 "2014-02-26T16:15:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Paul\_Durivage](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Paul\_Durivage](https://forum.ansible.com/u/Paul_Durivage)\
**Post date:** [February 26, 2014, 4:59pm UTC](https://forum.ansible.com/t/ansible-galaxy-roles-distro-arch-64/14661/3 "2014-02-26T16:59:26Z")

</div>

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](http://docs.ansible.com/fail_module.html)

---

<div class="post-metadata">

**Author:** ![bryan\_hunt1](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bryan\_hunt1](https://forum.ansible.com/u/bryan_hunt1)\
**Post date:** [February 26, 2014, 11:40pm UTC](https://forum.ansible.com/t/ansible-galaxy-roles-distro-arch-64/14661/4 "2014-02-26T23:40:14Z")

</div>

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