Closed gbyczyns closed 2 years ago
Running the "reset.yml" playbook should not fail on non-debian/non-ubuntu operating systems.
It fails on RHEL because it tries to run apt-get package manager which is not present in this OS.
TASK [reset : Remove linux-modules-extra-raspi] ******************************************************************************************************************************************************************************************** Wednesday 14 September 2022 13:59:04 +0200 (0:00:02.331) 0:01:33.070 *** [WARNING]: Updating cache and auto-installing missing dependency: python3-apt fatal: [example.com]: FAILED! => {"changed": false, "cmd": "apt-get update", "msg": "[Errno 2] No such file or directory: b'apt-get': b'apt-get'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} PLAY RECAP ********************************************************************************************************************************************************************************************************************************* example.com : ok=22 changed=9 unreachable=0 failed=1 skipped=4 rescued=0 ignored=0
ansible-playbook reset.yml -i inventory/my-env/hosts.ini
Operating system: LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: RedHatEnterprise Description: Red Hat Enterprise Linux release 8.4 (Ootpa) Release: 8.4 Codename: Ootpa
This will be addressed in https://github.com/techno-tim/k3s-ansible/issues/88
This was closed by https://github.com/techno-tim/k3s-ansible/issues/88
Expected Behavior
Running the "reset.yml" playbook should not fail on non-debian/non-ubuntu operating systems.
Current Behavior
It fails on RHEL because it tries to run apt-get package manager which is not present in this OS.
Steps to Reproduce
ansible-playbook reset.yml -i inventory/my-env/hosts.ini
Context
Operating system: LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: RedHatEnterprise Description: Red Hat Enterprise Linux release 8.4 (Ootpa) Release: 8.4 Codename: Ootpa