Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Execute Play

This play is intended to be executed from AWX; however, here are some command line examples.

Variables

  • manual_list - Specific space delineated servers or groups from your inventory.
  • svcrqst - An ID or record indicator for audit purposes.
  • time_limit - The amount of days the access is intended to persist.

Commands

ansible-playbook root_access.yml -e "manual_list='<fqdn1> <fqdn2>' userlist='<username_a> <username_b>' svcrqst='<a_CR_or_SR_number>' time_limit="<##>"" --tags create_sudoers
ansible-playbook root_access.yml -e "manual_list='<fqdn1> <fqdn2>' userlist='<username_a> <username_b>'" --tags revoke_access