# same install different architectures

**URL:** <https://forum.ansible.com/t/same-install-different-architectures/13456>\
**Category:** Ansible Project\
**Created:** [September 11, 2013, 9:06pm UTC](https://forum.ansible.com/t/same-install-different-architectures/13456 "2013-09-11T21:06:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Palmer1](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Post date:** [September 11, 2013, 9:06pm UTC](https://forum.ansible.com/t/same-install-different-architectures/13456/1 "2013-09-11T21:06:19Z")

</div>

I apology if this is obvious.

I have two systems I need to install

apache and then an open source xml db that is a little complicated.

While the apache difference are mostly repo driven not so for the open source xml db.

The xml database install is somewhat different from debian style systems to amazon linux (RPM) systems. It is built from source via open jdk 7.

I have finally created playlist that has roles and group\_vars and feel really comfortable with that. How can I then take this to the next level and discriminate for architectures.

thanks

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [September 12, 2013, 5:40pm UTC](https://forum.ansible.com/t/same-install-different-architectures/13456/2 "2013-09-12T17:40:36Z")

</div>

You should look into the “group\_by” module for dynamically making groups based on architecture _or_ should put them into groups based on behavior.

You can then either use parameterized roles or different roles that have common tasks or common dependencies.
