Using the accept_licenses attribute
The accept licenses attribute can be used to control when license acceptance takes place.
If accept_licenses=yes is specified, license acceptance takes place automatically as packages are installed. If it is set to no, the user is prompted at the client to accept software licenses after the client is rebooted. The default is accept_licenses=no.