Install AWX on CentOS 7 with Docker
-
@Pete-S said in Install AWX on CentOS 7 with Docker:
@Emad-R said in Install AWX on CentOS 7 with Docker:
+++
Many thanks for this I never heard of this project, glad finally we have UI for either SS or Ansible
The AWX project is upstream project for Red Hat's Ansible Tower.
Also has lots of Ansible playbooks available at https://galaxy.ansible.com/ to do all the things.
-
Hi Travisdh,
Great article, i installed awx without a docker following this guide. [Moderated to remove promotional link.]
-
@faudel said in Install AWX on CentOS 7 with Docker:
Hi Travisdh,
Great article, i installed awx without a docker following this guide. Take a look at this link [Moderated to remove promotional link.]
^^^ Kinda suspect, because:
This blog accepts forms of cash advertising, sponsorship, paid insertions or other forms of compensation. Aside from that we also make money from affiliate links.
-
Be careful with AWX. I would not use it in production. There are still breaking database changes between versions. There is a migration tool but still. Last time I used it, there were breaking changes from week to week. I've found Jenkins to be more flexible anyway.
-
basic nginx config works and you can just run certbot for SSL
server { listen 80; server_name test.domain.com; location / { proxy_pass http://192.168.1.x; proxy_buffering off; } }
-
I attempted to login with admin/password and it is telling me it's the wrong username/password. The documentation says:
awx-manage changepassword admin
-bash: awx-manage : command not found
I am in
/opt/awx
hm.
-
@wirestyle22
awx-manage
might be in /opt/awx/bin, /opt/awx/sbin, or something like that. Here I thought the default username/password wouldn't get broken in their code updates. Like @stacksofplates said, AWX looks nice, but the devs are breaking it so often that it isn't something I'd consider production ready. I tried running through this a 3rd time, did everything the same, and it didn't work last night -
Yeah I am just testing at home
-
@travisdh1 seems like I should be able to change the admin password via cli, but it's not recognizing the command. @stacksofplates any ideas?
-
@wirestyle22 said in Install AWX on CentOS 7 with Docker:
Yeah I am just testing at home
It's really sad that they are treating AWX this way. Basically means that Ansible/Tower is out of the question because they can't keep a stable code base.
-
@travisdh1 I have to imagine that there is a way for me to change a user's password via cli that doesn't use
awx-manage
, if not then what is the reason that I am unable to use it? Not familiar with it enough to know though. Haven't found anything online yet. -
@wirestyle22 said in Install AWX on CentOS 7 with Docker:
@travisdh1 I have to imagine that there is a way for me to change a user's password via cli that doesn't use
awx-manage
, if not then what is the reason that I am unable to use it? Not familiar with it enough to know though. Haven't found anything online yet.Obviously I've not had to use
awx-manage
yet myself. Did you do asudo find / -name "awx-manage"
? -
@travisdh1 went to http://192.168.1.x/api/v1/config/ to try the basic auth prompt. Same issue.
-
@wirestyle22 said in Install AWX on CentOS 7 with Docker:
@travisdh1 went to http://192.168.1.x/api/v1/config/ to try the basic auth prompt. Same issue.
I won't have access to mine till I get home tonight. Poke me latter and I'll see if I can find awx-manage.
-
@travisdh1 said in Install AWX on CentOS 7 with Docker:
@wirestyle22 said in Install AWX on CentOS 7 with Docker:
@travisdh1 went to http://192.168.1.x/api/v1/config/ to try the basic auth prompt. Same issue.
I won't have access to mine till I get home tonight. Poke me latter and I'll see if I can find awx-manage.
I found it. It's in
/opt/awx/tools/docker-compose
command still errors.
-
@wirestyle22 said in Install AWX on CentOS 7 with Docker:
@travisdh1 said in Install AWX on CentOS 7 with Docker:
@wirestyle22 said in Install AWX on CentOS 7 with Docker:
@travisdh1 went to http://192.168.1.x/api/v1/config/ to try the basic auth prompt. Same issue.
I won't have access to mine till I get home tonight. Poke me latter and I'll see if I can find awx-manage.
I found it. It's in
/opt/awx/tools/docker-compose
command still errors.
Seems to be the standard operating mode for AWX. It's broke, they nay or may not get the broken bits fixed in the next release.
-
@travisdh1 said in Install AWX on CentOS 7 with Docker:
@wirestyle22 said in Install AWX on CentOS 7 with Docker:
@travisdh1 said in Install AWX on CentOS 7 with Docker:
@wirestyle22 said in Install AWX on CentOS 7 with Docker:
@travisdh1 went to http://192.168.1.x/api/v1/config/ to try the basic auth prompt. Same issue.
I won't have access to mine till I get home tonight. Poke me latter and I'll see if I can find awx-manage.
I found it. It's in
/opt/awx/tools/docker-compose
command still errors.
Seems to be the standard operating mode for AWX. It's broke, they nay or may not get the broken bits fixed in the next release.
bleh
-
@travisdh1 Got it working.
inventory file in
/opt/awx/installer
has this line:#This will create or update a default admin (superuser) account in AWX, if not provided
#then these default values are used
admin_user=admin
admin_password=passwordI changed the password and re-ran install.yml. It applied the new password.
-
@travisdh1 said in Install AWX on CentOS 7 with Docker:
@wirestyle22 said in Install AWX on CentOS 7 with Docker:
Yeah I am just testing at home
It's really sad that they are treating AWX this way. Basically means that Ansible/Tower is out of the question because they can't keep a stable code base.
Tower is really stable. AWX is a bad upstream. I used Tower for a couple years and it's rock solid.
-
Another thing to note. I believe it's the rabbitmq password that can't accept an @ in the password.