{"action":"created","issue":{"url":"https://api.github.com/repos/geerlingguy/ansible-role-php/issues/238","repository_url":"https://api.github.com/repos/geerlingguy/ansible-role-php","labels_url":"https://api.github.com/repos/geerlingguy/ansible-role-php/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/ansible-role-php/issues/238/comments","events_url":"https://api.github.com/repos/geerlingguy/ansible-role-php/issues/238/events","html_url":"https://github.com/geerlingguy/ansible-role-php/issues/238","id":320757557,"number":238,"title":"Unable to lock the administration directory","user":{"login":"passionventures","id":38977359,"avatar_url":"https://avatars0.githubusercontent.com/u/38977359?v=4","gravatar_id":"","url":"https://api.github.com/users/passionventures","html_url":"https://github.com/passionventures","followers_url":"https://api.github.com/users/passionventures/followers","following_url":"https://api.github.com/users/passionventures/following{/other_user}","gists_url":"https://api.github.com/users/passionventures/gists{/gist_id}","starred_url":"https://api.github.com/users/passionventures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/passionventures/subscriptions","organizations_url":"https://api.github.com/users/passionventures/orgs","repos_url":"https://api.github.com/users/passionventures/repos","events_url":"https://api.github.com/users/passionventures/events{/privacy}","received_events_url":"https://api.github.com/users/passionventures/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-07T10:43:43Z","updated_at":"2018-05-10T20:59:29Z","closed_at":"2018-05-10T20:59:29Z","author_association":"NONE","body":"We have encountered another issue that we're trying to solve on Amazon EC2.\r\n\r\nTASK [geerlingguy.php : Ensure PHP packages are installed.] ********************************************\r\nfailed: [18.130.7.212] (item=[u'php7.0-common', u'php7.0-cli', u'php7.0-dev', u'php7.0-fpm', u'libpcre3-dev', u'php7.0-gd', u'php7.0-curl', u'php7.0-imap', u'php7.0-json', u'php7.0-opcache', u'php7.0-xml', u'php7.0-mbstring', u'php-sqlite3', u'php-apcu']) => {\"cache_update_time\": 1525689711, \"cache_updated\": false, \"changed\": false, \"item\": [\"php7.0-common\", \"php7.0-cli\", \"php7.0-dev\", \"php7.0-fpm\", \"libpcre3-dev\", \"php7.0-gd\", \"php7.0-curl\", \"php7.0-imap\", \"php7.0-json\", \"php7.0-opcache\", \"php7.0-xml\", \"php7.0-mbstring\", \"php-sqlite3\", \"php-apcu\"], \"msg\": \"'/usr/bin/apt-get -y -o \\\"Dpkg::Options::=--force-confdef\\\" -o \\\"Dpkg::Options::=--force-confold\\\"     install 'php7.0-common' 'php7.0-cli' 'php7.0-dev' 'php7.0-fpm' 'libpcre3-dev' 'php7.0-gd' 'php7.0-curl' 'php7.0-imap' 'php7.0-json' 'php7.0-opcache' 'php7.0-xml' 'php7.0-mbstring' 'php-sqlite3' 'php-apcu' -o APT::Install-Recommends=yes' failed: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)\\nE: Unable to lock the administration directory (/var/lib/dpkg/), are you root?\\n\", \"rc\": 100, \"stderr\": \"E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)\\nE: Unable to lock the administration directory (/var/lib/dpkg/), are you root?\\n\", \"stderr_lines\": [\"E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)\", \"E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?\"], \"stdout\": \"\", \"stdout_lines\": []}\r\n\r\nMaybe someone knows what's the issue.\r\n\r\nThank you,\r\nJakub"},"comment":{"url":"https://api.github.com/repos/geerlingguy/ansible-role-php/issues/comments/388184138","html_url":"https://github.com/geerlingguy/ansible-role-php/issues/238#issuecomment-388184138","issue_url":"https://api.github.com/repos/geerlingguy/ansible-role-php/issues/238","id":388184138,"user":{"login":"geerlingguy","id":481677,"avatar_url":"https://avatars1.githubusercontent.com/u/481677?v=4","gravatar_id":"","url":"https://api.github.com/users/geerlingguy","html_url":"https://github.com/geerlingguy","followers_url":"https://api.github.com/users/geerlingguy/followers","following_url":"https://api.github.com/users/geerlingguy/following{/other_user}","gists_url":"https://api.github.com/users/geerlingguy/gists{/gist_id}","starred_url":"https://api.github.com/users/geerlingguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geerlingguy/subscriptions","organizations_url":"https://api.github.com/users/geerlingguy/orgs","repos_url":"https://api.github.com/users/geerlingguy/repos","events_url":"https://api.github.com/users/geerlingguy/events{/privacy}","received_events_url":"https://api.github.com/users/geerlingguy/received_events","type":"User","site_admin":false},"created_at":"2018-05-10T20:59:29Z","updated_at":"2018-05-10T20:59:29Z","author_association":"OWNER","body":"> Unable to lock the administration directory (/var/lib/dpkg/), are you root?\r\n\r\nMeans you're running the role as a non-root / unprivileged user.\r\n\r\nWhen you call the role, use `become: yes`, e.g.:\r\n\r\n```yaml\r\n  roles:\r\n    - name: geerlingguy.php\r\n      become: yes\r\n```"}}
{"actor":{"display_login":"geerlingguy"}}