Azimuthal anisotropies in Pb+Pb and p+Pb collisions with the ATLAS detector