0

I created an account on Ansible-AWX with username-'admin' with System Administrator privileges. I made 'admin' as Normal User. So my AWX instance does not have any System Admin . Hence I can not give back 'admin' System Admin permissions. How can i create a new system admin or give 'admin' the same privileges ?

1 Answers1

0

How can i create a new system admin or give 'admin' the same privileges ?

You can use the same Django objects that they use, and ask it to create another superuser on your behalf:

awx-manage shell <<'EOF'
from django.contrib.auth.models import User
User.objects.create_superuser('admin-username', 'email@example.com',
                              'sooper-secret-password')
EOF
mdaniel
  • 31,240
  • 5
  • 55
  • 58