adamwoolhether / NetBox4CentOS8

Quick and easy install playbook for NetBox on CentOS 8
5 stars 5 forks source link

please help #7

Open sSiDs opened 4 months ago

sSiDs commented 4 months ago

good day, trying on fresh cenos8, but got an error

ERROR! couldn't resolve module/action 'postgresql_pg_hba'. 
This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/root/NetBox4CentOS8/installNB.yml': line 48, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:
  - name: CONFIG POSTGRESQL TO ACCEPT PW-BASED AUTH
    ^ here

[root@netbox NetBox4CentOS8]#

sSiDs commented 4 months ago
ansible [core 2.16.3]
  config file = /root/NetBox4CentOS8/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.12/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.12.1 (main, Jan 23 2024, 13:14:28) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12)
  jinja version = 3.1.2
  libyaml = True
sSiDs commented 4 months ago

got it working...) now messing up with inventory file O_o what is the syntax for local install? `[root@netbox NetBox4CentOS8]# ansible-playbook installNB.yml

PLAY [PLAY 1: INSTALL & INIT REQUIREMENTS] *****

TASK [INSTALL DEPENDENCIES] **** fatal: [localhost]: UNREACHABLE! => changed=false msg: 'Failed to connect to the host via ssh: root@localhost: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).' unreachable: true

PLAY RECAP ***** localhost : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0`

sSiDs commented 4 months ago

close the issue plz) i got it working

sSiDs commented 4 months ago

playbook run without errors.... but nothing is working) funny

adamwoolhether commented 4 months ago

@sSiDs I haven't used netbox on the job for almost 2 years now. That was when netbox was at 3.0 or 3.2.

You're welcome to fork this and make changes as needed, I likely won't be updating it again.