semaphoreui / semaphore

Modern UI for Ansible, Terraform, OpenTofu, Bash, Pulumi.
https://semaphoreui.com
MIT License
9.69k stars 1k forks source link

Problem: Task Templates no longer working after update #2130

Open brandmanNH opened 1 week ago

brandmanNH commented 1 week ago

Issue

All task templates are no longer working after update to newest version.

Impact

Semaphore Project

Installation method

Docker

Database

Postgres

Browser

Chrome

Semaphore Version

v2.10.7-6bcf476-1718821016

Ansible Version

No response

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

Apart from running the playbooks, everything seems to work. When you start a tast template it get stuck before executing the playbook

fiftin commented 1 week ago

Hi @brandmanNH could you provide Semaphore logs and task logs.

fiftin commented 1 week ago

Hi @brandmanNH please try v2.10.8-beta.

popallo commented 1 week ago

Hi everyone.

think it's because "ansible_ssh_common_args: '-o StrictHostKeyChecking=no'" is missing into the gathering fact?

Before latest version of semaphore, "-o StrictHostKeyChecking=no" seems to be automatically call in gathering facts but it seems that it's not the case any more.

postwarbreakout commented 3 days ago

I have the same problem with v2.10.11. It just does nothing after this:

3:26:31 PM
Task 568 added to queue
3:26:34 PM
Started: 568
3:26:34 PM
Run TaskRunner with template: USER - Create user
3:26:34 PM
Preparing: 568
3:26:34 PM
No collection/requirements.yml file found. Skip galaxy install process.
3:26:34 PM
No collection/requirements.yml file found. Skip galaxy install process.
3:26:34 PM
No role/requirements.yml file found. Skip galaxy install process.
3:26:34 PM
No role/requirements.yml file found. Skip galaxy install process.
3:26:35 PM
ansible-playbook [core 2.15.4]
3:26:35 PM
  config file = /etc/ansible/ansible.cfg
3:26:35 PM
  configured module search path = ['/tmp/semaphore/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
3:26:35 PM
  ansible python module location = /usr/local/lib/python3.9/dist-packages/ansible
3:26:35 PM
  ansible collection location = /tmp/semaphore/.ansible/collections:/usr/share/ansible/collections
3:26:35 PM
  executable location = /usr/local/bin/ansible-playbook
3:26:35 PM
  python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] (/usr/bin/python3)
3:26:35 PM
  jinja version = 3.1.2
3:26:35 PM
  libyaml = True
3:26:35 PM
Using /etc/ansible/ansible.cfg as config file
3:26:35 PM
setting up inventory plugins
3:26:35 PM
Loading collection ansible.builtin from 
3:26:35 PM
host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
3:26:35 PM
script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
3:26:35 PM
auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
3:26:35 PM
Skipping empty key (hosts) in group (new)
3:26:35 PM
Skipping empty key (fastdiff01) in group (new)
3:26:35 PM
Set default localhost to localhost
3:26:35 PM
Parsed /etc/ansible/hosts inventory source with yaml plugin
3:26:35 PM
redirecting (type: callback) ansible.builtin.yaml to community.general.yaml
3:26:35 PM
Loading collection community.general from /usr/local/lib/python3.9/dist-packages/ansible_collections/community/general
3:26:35 PM
redirecting (type: callback) ansible.builtin.yaml to community.general.yaml
3:26:35 PM
Loading callback plugin community.general.yaml of type stdout, v2.0 from /usr/local/lib/python3.9/dist-packages/ansible_collections/community/general/plugins/callback/yaml.py
3:26:35 PM
Skipping callback 'default', as we already have a stdout callback.
3:26:35 PM
Skipping callback 'minimal', as we already have a stdout callback.
3:26:35 PM
Skipping callback 'oneline', as we already have a stdout callback.
3:26:35 PM
3:26:35 PM
PLAYBOOK: user_create.yml ******************************************************
3:26:35 PM
Positional arguments: user_create.yml
3:26:35 PM
verbosity: 4
3:26:35 PM
private_key_file: /home/ansible/.ssh/id_ed25519
3:26:35 PM
remote_user: ansible
3:26:35 PM
connection: smart
3:26:35 PM
timeout: 10
3:26:35 PM
become_method: sudo
3:26:35 PM
tags: ('all',)
3:26:35 PM
inventory: ('/etc/ansible/hosts',)
3:26:35 PM
extra_vars: ('{"host_selection":"test","no_pw_login":"false","password":"REDACTED","semaphore_vars":{"task_details":{"id":568,"url":"http://ansible.REDACTED:3000/project/1/history?t=568","username":"REDACTED"}},"ssh":"false","sudo":"true","usergroups":"","username":"testuser"}',)
3:26:35 PM
forks: 5
3:26:35 PM
1 plays in user_create.yml