YiikerGiiker / Nemesis-Ansible

Automatically deploy Nemesis
8 stars 2 forks source link

install issue ubuntu server 22.04.3 server #1

Open fhlip0 opened 5 months ago

fhlip0 commented 5 months ago

error after running the install, not sure whats causing it but was able to work around it, thanks for putting this together!

TASK [nemesis_server : Install Helm] *************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"reason": "couldn't resolve module/action 'ansible.builtin.deb822_repository'. This often indicates a misspelling, missing collection, or
incorrect module path.\n\nThe error appears to be in '/home/phil/Nemesis-Ansible/nemesis-server-main/roles/nemesis_server/tasks/install_helm.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# https://helm.sh/docs/intro/install/\n- name: Add Helm Module Repository\n  ^ here\n"}

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

was able to resolve by manually installing helm following the steps from https://helm.sh/docs/intro/install/, then re-running the ansible script

curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null sudo apt-get install apt-transport-https --yes echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list sudo apt-get update sudo apt-get install helm

YiikerGiiker commented 5 months ago

What is your Ansible version? The deb822 repository should automatically be part of ansible-core if you have a version above 2.15.

https://forum.ansible.com/t/how-to-get-deb822-repository-module-to-work-with-core-2-14-3/3721

fhlip0 commented 5 months ago

burned it down and rebuilt, ubuntu 22.04 and it came with ansible 2.10, updated following https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-ubuntu-22-04

build successful but no listening port 80 or 8080?

State               Recv-Q              Send-Q                           Local Address:Port                            Peer Address:Port             Process
LISTEN              0                   4096                                 127.0.0.1:10248                                0.0.0.0:*                 users:(("k3s-server",pid=19447,fd=168))
LISTEN              0                   4096                                 127.0.0.1:10249                                0.0.0.0:*                 users:(("k3s-server",pid=19447,fd=246))
LISTEN              0                   4096                                 127.0.0.1:10256                                0.0.0.0:*                 users:(("k3s-server",pid=19447,fd=252))
LISTEN              0                   4096                                 127.0.0.1:10257                                0.0.0.0:*                 users:(("k3s-server",pid=19447,fd=204))
LISTEN              0                   4096                                 127.0.0.1:10258                                0.0.0.0:*                 users:(("k3s-server",pid=19447,fd=170))
LISTEN              0                   4096                                 127.0.0.1:10259                                0.0.0.0:*                 users:(("k3s-server",pid=19447,fd=232))
LISTEN              0                   4096                             127.0.0.53%lo:53                                   0.0.0.0:*                 users:(("systemd-resolve",pid=5361,fd=14))
LISTEN              0                   4096                                 127.0.0.1:10010                                0.0.0.0:*                 users:(("containerd",pid=19517,fd=13))
LISTEN              0                   4096                                 127.0.0.1:6444                                 0.0.0.0:*                 users:(("k3s-server",pid=19447,fd=16))
LISTEN              0                   128                                    0.0.0.0:22                                   0.0.0.0:*                 users:(("sshd",pid=17361,fd=3))
LISTEN              0                   4096                                         *:6443                                       *:*                 users:(("k3s-server",pid=19447,fd=15))
LISTEN              0                   4096                                         *:10250                                      *:*                 users:(("k3s-server",pid=19447,fd=198))
LISTEN              0                   128                                       [::]:22                                      [::]:*                 users:(("sshd",pid=17361,fd=4))
YiikerGiiker commented 5 months ago

After a successful deployment the Nemesis dashboard should be accessible via https --> https://. In the repo README the installation guide for Ansible is also outlined to ensure a compatible version (done via pip)