If you use the grep command with the -v option, you can omit the lines you don't want in the output file. For example, the following command will exclude the CREATE ROLE lines from the output.
pg_dumpall -h (host) -U (username) | grep -v "CREATE ROLE" > roles_filtered.sql