{"action":"created","issue":{"url":"https://api.github.com/repos/atosatto/ansible-dockerswarm/issues/44","repository_url":"https://api.github.com/repos/atosatto/ansible-dockerswarm","labels_url":"https://api.github.com/repos/atosatto/ansible-dockerswarm/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/atosatto/ansible-dockerswarm/issues/44/comments","events_url":"https://api.github.com/repos/atosatto/ansible-dockerswarm/issues/44/events","html_url":"https://github.com/atosatto/ansible-dockerswarm/issues/44","id":364902457,"node_id":"MDU6SXNzdWUzNjQ5MDI0NTc=","number":44,"title":"ERROR! the role 'ansible-dockerswarm' was not found","user":{"login":"dmnt3d","id":8968405,"node_id":"MDQ6VXNlcjg5Njg0MDU=","avatar_url":"https://avatars0.githubusercontent.com/u/8968405?v=4","gravatar_id":"","url":"https://api.github.com/users/dmnt3d","html_url":"https://github.com/dmnt3d","followers_url":"https://api.github.com/users/dmnt3d/followers","following_url":"https://api.github.com/users/dmnt3d/following{/other_user}","gists_url":"https://api.github.com/users/dmnt3d/gists{/gist_id}","starred_url":"https://api.github.com/users/dmnt3d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmnt3d/subscriptions","organizations_url":"https://api.github.com/users/dmnt3d/orgs","repos_url":"https://api.github.com/users/dmnt3d/repos","events_url":"https://api.github.com/users/dmnt3d/events{/privacy}","received_events_url":"https://api.github.com/users/dmnt3d/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-28T14:02:43Z","updated_at":"2018-11-06T21:42:48Z","closed_at":null,"author_association":"NONE","body":"First off - i'm new to ansible. I've tried running ansible-playbook that set-up K8's and was able to make it work just fine.\r\nI wanted to try SWARM and saw this playbook.\r\n\r\nWhen I try to run the playbook: \r\nansible-playbook -i inventory playbook.yml\r\nI'm getting the following error:\r\n> \r\n> ERROR! the role 'ansible-dockerswarm' was not found in /home/master/Projects/ansible-dockerswarm/roles:/home/master/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/master/Projects/ansible-dockerswarm\r\n> \r\n> The error appears to have been in '/home/master/Projects/ansible-dockerswarm/playbook.yml': line 6, column 7, but may\r\n> be elsewhere in the file depending on the exact syntax problem.\r\n> \r\n> The offending line appears to be:\r\n> \r\n>   roles:\r\n>     - { role: ansible-dockerswarm }\r\n>       ^ here\r\n> \r\n> \r\n\r\n\r\nInventory file:\r\n\r\n> SWARM01 ansible_ssh_host=172.16.0.171\r\n> SWARM02 ansible_ssh_host=172.16.0.172\r\n> SWARM03 ansible_ssh_host=172.16.0.173\r\n> \r\n> [docker_engine]\r\n> SWARM01\r\n> SWARM02\r\n> SWARM03\r\n> \r\n> [docker_swarm_manager]\r\n> SWARM01\r\n> SWARM02\r\n> SWARM03\r\n> \r\n> [docker_swarm_worker]\r\n> SWARM01\r\n> SWARM02\r\n> SWARM03\r\n> \r\n\r\nAnsible version: 2.6.4\r\n\r\nNot sure how to use the roles (?). ive downloaded the role from Ansible galaxy. but still the same.\r\n\r\nMaybe a newbie guide on how to use this?\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/atosatto/ansible-dockerswarm/issues/comments/436419073","html_url":"https://github.com/atosatto/ansible-dockerswarm/issues/44#issuecomment-436419073","issue_url":"https://api.github.com/repos/atosatto/ansible-dockerswarm/issues/44","id":436419073,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjQxOTA3Mw==","user":{"login":"benyanke","id":4274911,"node_id":"MDQ6VXNlcjQyNzQ5MTE=","avatar_url":"https://avatars1.githubusercontent.com/u/4274911?v=4","gravatar_id":"","url":"https://api.github.com/users/benyanke","html_url":"https://github.com/benyanke","followers_url":"https://api.github.com/users/benyanke/followers","following_url":"https://api.github.com/users/benyanke/following{/other_user}","gists_url":"https://api.github.com/users/benyanke/gists{/gist_id}","starred_url":"https://api.github.com/users/benyanke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benyanke/subscriptions","organizations_url":"https://api.github.com/users/benyanke/orgs","repos_url":"https://api.github.com/users/benyanke/repos","events_url":"https://api.github.com/users/benyanke/events{/privacy}","received_events_url":"https://api.github.com/users/benyanke/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T21:42:48Z","updated_at":"2018-11-06T21:42:48Z","author_association":"NONE","body":"You need to do two things:\r\n\r\n1) Run `ansible-galaxy install atosatto.docker-swarm` if you haven't.\r\n2) Switch role to: `atosatto.docker-swarm` instead of `docker-swarm`."}}
{"actor":{"display_login":"benyanke"}}