{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible-semaphore/semaphore/issues/225","repository_url":"https://api.github.com/repos/ansible-semaphore/semaphore","labels_url":"https://api.github.com/repos/ansible-semaphore/semaphore/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/ansible-semaphore/semaphore/issues/225/comments","events_url":"https://api.github.com/repos/ansible-semaphore/semaphore/issues/225/events","html_url":"https://github.com/ansible-semaphore/semaphore/issues/225","id":189649510,"number":225,"title":"Hosts detection from semaphore - issue","user":{"login":"Yakha","id":9256016,"avatar_url":"https://avatars.githubusercontent.com/u/9256016?v=3","gravatar_id":"","url":"https://api.github.com/users/Yakha","html_url":"https://github.com/Yakha","followers_url":"https://api.github.com/users/Yakha/followers","following_url":"https://api.github.com/users/Yakha/following{/other_user}","gists_url":"https://api.github.com/users/Yakha/gists{/gist_id}","starred_url":"https://api.github.com/users/Yakha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yakha/subscriptions","organizations_url":"https://api.github.com/users/Yakha/orgs","repos_url":"https://api.github.com/users/Yakha/repos","events_url":"https://api.github.com/users/Yakha/events{/privacy}","received_events_url":"https://api.github.com/users/Yakha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-16T09:52:40Z","updated_at":"2016-11-16T09:52:40Z","closed_at":null,"body":"I'm new in semaphore but i haven't found same thread about the following issue and solution : \r\n\r\n> 00:25:34: Using /etc/ansible/ansible.cfg as config file\r\n> 00:25:34:  [WARNING]: provided hosts list is empty, only localhost is available\r\n\r\nwhere my semaphore conf file like follow : \r\n\r\n> {\r\n>  \t\"mysql\": {\r\n>  \t\t\"host\": \"127.0.0.1:3306\",\r\n>  \t\t\"user\": \"XXXX\",\r\n>  \t\t\"pass\": \"XXXXX\",\r\n>  \t\t\"name\": \"semaphore\"\r\n>  \t},\r\n>  \t\"port\": \"\",\r\n>  \t\"bugsnag_key\": \"\",\r\n>  \t\"tmp_path\": \"/etc/ansible/playbook\",\r\n>  \t\"cookie_hash\": \"0EXw1O7gkcnjLvj+b05w3fJBUELn9EB/qsOHNphAoAI=\",\r\n>  \t\"cookie_encryption\": \"hsHGFIrRHnka9dkl2ZQEwM+KyWoYBJLdaVWzFEMYjAU=\"\r\n>  }\r\n\r\nansible.cfg contain : \r\n\r\n> inventory      = /etc/ansible/hosts\r\n\r\nwhen i launche the command : sudo ansible-playbook ../playbook/repository_1/ls.yml (host declared like this in the yml file : - hosts: host3)\r\n\r\n> \r\n> PLAY [host3] *******************************************************************\r\n> \r\n> TASK [setup] *******************************************************************\r\n> ok: [host3]\r\n> \r\n> TASK [command] *****************************************************************\r\n> changed: [host3]\r\n> \r\n> PLAY RECAP *********************************************************************\r\n> host3                      : ok=2    changed=1    unreachable=0    failed=0  \r\n\r\n\r\nHave you an idea ? semaphore dont match with the ansible hosts file by defaults ?\r\n\r\nThe other strange thing is the config of sempahore when its running : \r\n\r\n> ╰─# semaphore -printConfig                                                                                                                                                                                                                                                               0 < 10:45:11\r\n> {\r\n> \t\"mysql\": {\r\n> \t\t\"host\": \"127.0.0.1:3306\",\r\n> \t\t\"user\": \"root\",\r\n> \t\t\"pass\": \"\",\r\n> \t\t\"name\": \"semaphore\"\r\n> \t},\r\n> \t\"port\": \":3000\",\r\n> \t\"bugsnag_key\": \"\",\r\n> \t\"tmp_path\": \"/tmp/semaphore\",\r\n> \t\"cookie_hash\": \"nY6Ph5mn6+peoKoiROZ3LmnBTyqSiwfva4NbfzYXXe0=\",\r\n> \t\"cookie_encryption\": \"09/7GQiO7czNdSuaj1qfFwc51yu/qdcF98PEdFi2Ewk=\"\r\n> }\r\n> \r\n\r\nwhen I start semaphore like this : \r\nnohup /usr/bin/semaphore -config /etc/ansible/playbook/semaphore_config.json &\r\n\r\nthe semaphore_config.json contain a different /tmp/path as you can see there : \r\n╰─# cat /etc/ansible/playbook/semaphore_config.json                                                                                                                                                                                                                                      0 < 10:50:28\r\n{\r\n \t\"mysql\": {\r\n \t\t\"host\": \"127.0.0.1:3306\",\r\n \t\t\"user\": \"root\",\r\n \t\t\"pass\": \"XXXXXXX\",\r\n \t\t\"name\": \"semaphore\"\r\n \t},\r\n \t\"port\": \"\",\r\n \t\"bugsnag_key\": \"\",\r\n \t\"tmp_path\": \"/etc/ansible/playbook\",\r\n \t\"cookie_hash\": \"0EXw1O7gkcnjLvj+b05w3fJBUELn9EB/qsOHNphAoAI=\",\r\n \t\"cookie_encryption\": \"hsHGFIrRHnka9dkl2ZQEwM+KyWoYBJLdaVWzFEMYjAU=\"\r\n }\r\nthe printConfig should contain the semapgore_config.json parameters, strange no ?\r\n\r\nBest regards,\r\n"}}
{"actor":{"display_login":"Yakha"}}