{"action":"opened","issue":{"url":"https://api.github.com/repos/jptomo/ansible-connection-nsenter/issues/2","labels_url":"https://api.github.com/repos/jptomo/ansible-connection-nsenter/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jptomo/ansible-connection-nsenter/issues/2/comments","events_url":"https://api.github.com/repos/jptomo/ansible-connection-nsenter/issues/2/events","html_url":"https://github.com/jptomo/ansible-connection-nsenter/issues/2","id":103871943,"number":2,"title":"Remove dependency on machinectl","user":{"login":"metmajer","id":873565,"avatar_url":"https://avatars.githubusercontent.com/u/873565?v=3","gravatar_id":"","url":"https://api.github.com/users/metmajer","html_url":"https://github.com/metmajer","followers_url":"https://api.github.com/users/metmajer/followers","following_url":"https://api.github.com/users/metmajer/following{/other_user}","gists_url":"https://api.github.com/users/metmajer/gists{/gist_id}","starred_url":"https://api.github.com/users/metmajer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metmajer/subscriptions","organizations_url":"https://api.github.com/users/metmajer/orgs","repos_url":"https://api.github.com/users/metmajer/repos","events_url":"https://api.github.com/users/metmajer/events{/privacy}","received_events_url":"https://api.github.com/users/metmajer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-29T19:26:35Z","updated_at":"2015-08-29T19:26:35Z","closed_at":null,"body":"Hi @jptomo! I tried to execute your example in README.md, but keep failing with the following error when executing the playbook on Mac OS X:\r\n\r\n```\r\nGATHERING FACTS *************************************************************** \r\nfatal: [apache] => Traceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/ansible/runner/__init__.py\", line 582, in _executor\r\n    exec_rc = self._executor_internal(host, new_stdin)\r\n  File \"/Library/Python/2.7/site-packages/ansible/runner/__init__.py\", line 785, in _executor_internal\r\n    return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)\r\n  File \"/Library/Python/2.7/site-packages/ansible/runner/__init__.py\", line 960, in _executor_internal_inner\r\n    conn = self.connector.connect(actual_host, actual_port, actual_user, actual_pass, actual_transport, actual_private_key_file, delegate_host)\r\n  File \"/Library/Python/2.7/site-packages/ansible/runner/connection.py\", line 35, in connect\r\n    conn = utils.plugins.connection_loader.get(transport, self.runner, host, port, user=user, password=password, private_key_file=private_key_file)\r\n  File \"/Library/Python/2.7/site-packages/ansible/utils/plugins.py\", line 219, in get\r\n    return getattr(self._module_cache[path], self.class_name)(*args, **kwargs)\r\n  File \"/Users/cwat-metmajer/Workspace/Ansible-Docker/connection_plugins/nsenter.py\", line 34, in __init__\r\n    if not bool(self._extract_var('Name')):\r\n  File \"/Users/cwat-metmajer/Workspace/Ansible-Docker/connection_plugins/nsenter.py\", line 58, in _extract_var\r\n    output = subprocess.check_output(['machinectl', 'show', self.host])\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py\", line 566, in check_output\r\n    process = Popen(stdout=PIPE, *popenargs, **kwargs)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py\", line 709, in __init__\r\n    errread, errwrite)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py\", line 1326, in _execute_child\r\n    raise child_exception\r\nOSError: [Errno 2] No such file or directory\r\n```\r\n\r\nObviously, I my Mac lacks the `machinectl` command which is used in `self._extract_var` to find a value for a particular name. Would it be possible to replace this with an appropriate `docker` command? Any idea? Thanks! Great Work!"}}