Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible playbook hangs at gathering facts on Ubuntu 22.04 #64

Open
jphein opened this issue Jun 6, 2022 · 3 comments
Open

Ansible playbook hangs at gathering facts on Ubuntu 22.04 #64

jphein opened this issue Jun 6, 2022 · 3 comments

Comments

@jphein
Copy link

jphein commented Jun 6, 2022

jp@jp-Latitude-7280:~$ git clone https://github.com/althea-mesh/althea-firmware
cd althea-firmware
ansible-playbook first-time-setup.yml -bK
Cloning into 'althea-firmware'...
remote: Enumerating objects: 5741, done.
remote: Counting objects: 100% (1274/1274), done.
remote: Compressing objects: 100% (389/389), done.
remote: Total 5741 (delta 856), reused 1246 (delta 841), pack-reused 4467
Receiving objects: 100% (5741/5741), 1.14 MiB | 3.75 MiB/s, done.
Resolving deltas: 100% (3740/3740), done.
BECOME password: 
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [127.0.0.1] ******************************************************************************************************************

TASK [Gathering Facts] ************************************************************************************************************
@jkilpatr
Copy link
Member

jkilpatr commented Jun 6, 2022

you should be able to skip local facts collection if it's having trouble on your machine

https://www.unixtutorial.org/skip-gathering-facts-in-ansible/

You're running Fedora 36? I am as well and can not reproduce this. Does it eventually go through?

@jphein
Copy link
Author

jphein commented Jun 7, 2022

Thank you for the quick response! This is on Ubuntu 22.04. It never did complete.
I then installed Fedora 36, because Thomas told me that was what you used. That is when I ran into the other bug that you fixed.
I'm just trying to use these micro pc's for gigabit routers. they only have one network device, so I have to add more with USB3.1 to Gigabit adapters. I also have to add the firmware for the PCI wifi. They mostly have i5 8th gen processors. 6 cores. Our county gives these away as surplus to local nonprofts. Dell Optiplex 7060 MICRO.

@jphein
Copy link
Author

jphein commented Oct 14, 2022

When I add gather_facts: no to the playbook as described in the guide like so:

---
# A playbook to install OpenWRT build deps
- hosts: 127.0.0.1
  connection: local
  gather_facts: no
  roles:
    - check-deps

I get this error:

jp@ultrabook2:~/Downloads/althea-firmware$ ansible-playbook first-time-setup.yml -bK
BECOME password: 
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [127.0.0.1] **************************************************************************************************************************

TASK [check-deps : Install Debian deps] ***************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"msg": "The conditional check 'ansible_distribution == 'Debian'' failed. The error was: error while evaluating conditional (ansible_distribution == 'Debian'): 'ansible_distribution' is undefined\n\nThe error appears to be in '/home/jp/Downloads/althea-firmware/roles/check-deps/tasks/main.yml': line 4, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Install Debian deps\n  ^ here\n"}

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants