same install different architectures

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

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.