OSC / ood-ansible

An ansible role for Open Ondemand
MIT License
30 stars 31 forks source link

ubuntu: Failed to find required executable rpm #149

Closed simonLeary42 closed 2 years ago

simonLeary42 commented 2 years ago
grep -r "localhost" *
defaults/main/ood_portal.yml:servername: localhost
defaults/main/ood_portal.yml:#   OIDCProviderMetadataURL: https://localhost/
molecule/templates/fixtures/ood-portal.conf.custom.httpd:  ServerName localhost
...
molecule/default/fixtures/config/ood_portal.yml.default.httpd:servername: localhost
molecule/default/vars/portal.yml:  OIDCProviderMetadataURL: https://localhost/
molecule/src-build/fixtures/config/ood_portal.yml.apache2:servername: localhost
README.md:  OIDCProviderMetadataURL: https://localhost/
templates/ood-portal.conf.j2:  #     #=> unix:/path/to/socket|http://localhost{{ pun_uri }}/dev/app/simulations/1
templates/ood-portal.conf.j2:    ProxyPassReverse "http://localhost{{ pun_uri }}"
templates/nginx.conf.j2:        server_name  localhost;

how do I override all these localhosts and apply this role to a remote host?

johrstrom commented 2 years ago

servername: localhost is just a default and what we test against. servername is an important configuration for us, Open OnDemand, but in terms of getting this installed somewhere you need to utilize Ansible inventories.

https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html

simonLeary42 commented 2 years ago

So I defined my host in the inventory, and that worked, but then I got this error:

TASK [ood-ansible-2.0.6 : install the rpm repo's key] **************************************************************************************
fatal: [ood]: FAILED! => {"changed": false, "msg": "Failed to find required executable \"rpm\" in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"}

this is 2.0.6 and the host is running ubuntu 20.04

simonLeary42 commented 2 years ago

nevermind, I need to install from source.