{"action":"created","issue":{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/530","repository_url":"https://api.github.com/repos/geerlingguy/drupal-vm","labels_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/530/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/530/comments","events_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/530/events","html_url":"https://github.com/geerlingguy/drupal-vm/issues/530","id":143978647,"number":530,"title":"[Arch] SyntaxError during task 'Check if local known_hosts file is present.'","user":{"login":"sidneygijzen","id":6213045,"avatar_url":"https://avatars.githubusercontent.com/u/6213045?v=3","gravatar_id":"","url":"https://api.github.com/users/sidneygijzen","html_url":"https://github.com/sidneygijzen","followers_url":"https://api.github.com/users/sidneygijzen/followers","following_url":"https://api.github.com/users/sidneygijzen/following{/other_user}","gists_url":"https://api.github.com/users/sidneygijzen/gists{/gist_id}","starred_url":"https://api.github.com/users/sidneygijzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidneygijzen/subscriptions","organizations_url":"https://api.github.com/users/sidneygijzen/orgs","repos_url":"https://api.github.com/users/sidneygijzen/repos","events_url":"https://api.github.com/users/sidneygijzen/events{/privacy}","received_events_url":"https://api.github.com/users/sidneygijzen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/labels/linux","name":"linux","color":"eb6420"},{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-28T13:34:10Z","updated_at":"2016-04-07T10:29:37Z","closed_at":null,"body":"Hello,\r\n\r\nI've been running Drupal VM (also) on a Arch Linux host for the past 8 months without any problems. To be able to make use of all the shiny new features in the latest releases, I'm currently upgrading Drupal VM from a master branch version from September ' 15 to the current master branch version.\r\n\r\nBefore starting the upgrade, I took all changed variables mentioned in the various release notes (such as updating the Apache Ansible Galaxy role & updating Apache vhost configs) into account.\r\n\r\nAfter that I re-ran the provisioning of my Drupal VM box (default Drupal VM Ubuntu 14.04 box). Everything went well except for one of the last tasks, 'Check if local known_hosts file is present.' , which generates into the following error:\r\n\r\n```yaml\r\nfatal: [drupalvm]: FAILED! => {\r\n    \"changed\": false, \r\n    \"failed\": true, \r\n    \"module_stderr\": \"  File \\\"/home/sidneygijzen/.ansible/tmp/ansible-tmp-1459155009.84-185598221565320/stat\\\", line 314\\n    except OSError, e:\\n                  ^\\nSyntaxError: invalid syntax\\n\", \r\n    \"module_stdout\": \"\",\r\n    \"msg\": \"MODULE FAILURE\",\r\n    \"parsed\": false}\r\n```\r\n\r\nIn order to resolve this I tried the following:\r\n- if my known_hosts file is present -> it is.\r\n- start with a new build of the box (vagrant destroy / vagrant up) -> generates the same error\r\n- Ansible doesn't support Python3 officially, and since Arch has Python 3 by default, I setup an virtualenv with Python 2 and ran it from there -> generates the same error\r\n\r\nI have the feeling my Arch host, an interplay between Arch & Ansible is the cause (or maybe the format of the known_hosts file?), since I did the same upgrade of Drupal VM on a Ubuntu 15.10 host yesterday, and that went flawlessly. \r\nI thought to post my question here to see if someone else has stumbled into this error? Are there any issues known with Drupal VM or Ansible on a Arch host? \r\n\r\nThank you in advance!"},"comment":{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/comments/206801972","html_url":"https://github.com/geerlingguy/drupal-vm/issues/530#issuecomment-206801972","issue_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/530","id":206801972,"user":{"login":"sidneygijzen","id":6213045,"avatar_url":"https://avatars.githubusercontent.com/u/6213045?v=3","gravatar_id":"","url":"https://api.github.com/users/sidneygijzen","html_url":"https://github.com/sidneygijzen","followers_url":"https://api.github.com/users/sidneygijzen/followers","following_url":"https://api.github.com/users/sidneygijzen/following{/other_user}","gists_url":"https://api.github.com/users/sidneygijzen/gists{/gist_id}","starred_url":"https://api.github.com/users/sidneygijzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidneygijzen/subscriptions","organizations_url":"https://api.github.com/users/sidneygijzen/orgs","repos_url":"https://api.github.com/users/sidneygijzen/repos","events_url":"https://api.github.com/users/sidneygijzen/events{/privacy}","received_events_url":"https://api.github.com/users/sidneygijzen/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T10:29:37Z","updated_at":"2016-04-07T10:29:37Z","body":"Awesome! That works. Thanks a lot @oxyc !!\r\n\r\nCan we incorporate this by default into DrupalVM? Or, if it affects other hosts in a bad way, perhaps a mention in the docs somewhere? "}}