{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/29630","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/29630/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/29630/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/29630/events","html_url":"https://github.com/ansible/ansible/issues/29630","id":256785899,"number":29630,"title":"module apt: No package matching 'libXrender1' is available","user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"labels":[{"id":437720635,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.1","name":"affects_2.1","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-11T17:41:23Z","updated_at":"2017-09-11T17:41:23Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"From @MacDschie on 2016-09-26T21:28:33Z\r\n<!--- Verify first that your issue/request is not already reported in GitHub -->\n##### ISSUE TYPE\n\n<!--- Pick one below and delete the rest: -->\n- Bug Report\n##### COMPONENT NAME\n\n<!--- Name of the plugin/module/task -->\n\napt\n##### ANSIBLE VERSION\n\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\n\n```\nansible 2.1.0.0\n  config file = /home/mgrimm/workspace/automated-deployment/ansible.cfg\n  configured module search path = Default w/o overrides\n```\n##### CONFIGURATION\n\n<!---\nMention any settings you have changed/added/removed in ansible.cfg\n(or using the ANSIBLE_* environment variables).\n-->\n\nno changes\n##### OS / ENVIRONMENT\n\n<!---\nMention the OS you are running Ansible from, and the OS you are\nmanaging, or say “N/A” for anything that is not platform-specific.\n-->\n\nrunning from Ubuntu 16.04 LTS\nrunning on Debian 7 Wheezy\n##### SUMMARY\n\n<!--- Explain the problem briefly -->\n\nWhen running module apt with name=libXrender1, I get the following error message:\n\n```\nNo package matching 'libXrender1' is available\n```\n\nI can install the lib manually with `sudo apt-get install libXrender1`. The error persists also when the library is already installed.\n##### STEPS TO REPRODUCE\n\n<!---\nFor bugs, show exactly how to reproduce the problem.\nFor new features, show how the feature would be used.\n-->\n\nJust run the playbook.\n\n<!--- Paste example playbooks or commands between quotes below -->\n\nplaybook `configure-tp-server.yml`:\n\n```\n- name: Configure prduction TP server\n  hosts: all\n  become: True\n  roles:\n    - tpserver-setup\n```\n\n`tpserver-setup/tasks/main.yml`:\n\n```\n- apt: name=libXrender1\n```\n\n<!--- You can also paste gist.github.com links for larger files -->\n##### EXPECTED RESULTS\n\n<!--- What did you expect to happen when running the steps above? -->\n\nlibXrender1 should get installed without errors.\n##### ACTUAL RESULTS\n\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\n\n<!--- Paste verbatim command output between quotes below -->\n\n```\n$ ansible-playbook configure-tp-server.yml -i production --limit \"tp-10015\" -vvvv\nUsing /home/mgrimm/workspace/automated-deployment/ansible.cfg as config file\nLoaded callback default of type stdout, v2.0\n\nPLAYBOOK: configure-tp-server.yml **********************************************\n1 plays in configure-tp-server.yml\n\nPLAY [Configure prduction TP server] *******************************************\n\nTASK [setup] *******************************************************************\n<ip> ESTABLISH SSH CONNECTION FOR USER: <user>\n<ip> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile=\"/home/mgrimm/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=<user> -o ConnectTimeout=10 -o ControlPath=/home/mgrimm/.ansible/cp/ansible-ssh-%h-%p-%r <ip> '/bin/sh -c '\"'\"'( umask 77 && mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1474924752.61-24700385564042 `\" && echo ansible-tmp-1474924752.61-24700385564042=\"` echo $HOME/.ansible/tmp/ansible-tmp-1474924752.61-24700385564042 `\" ) && sleep 0'\"'\"''\n<ip> PUT /tmp/tmpEaNTPo TO /home/<user>/.ansible/tmp/ansible-tmp-1474924752.61-24700385564042/setup\n<ip> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile=\"/home/mgrimm/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=<user> -o ConnectTimeout=10 -o ControlPath=/home/mgrimm/.ansible/cp/ansible-ssh-%h-%p-%r '[<ip>]'\n<<ip>> ESTABLISH SSH CONNECTION FOR USER: <user>\n<<ip>> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile=\"/home/mgrimm/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=<user> -o ConnectTimeout=10 -o ControlPath=/home/mgrimm/.ansible/cp/ansible-ssh-%h-%p-%r -tt <ip> '/bin/sh -c '\"'\"'sudo -H -S  -p \"[sudo via ansible, key=gtgdkwqkitajhqfqjqgmesejbryahsec] password: \" -u root /bin/sh -c '\"'\"'\"'\"'\"'\"'\"'\"'echo BECOME-SUCCESS-gtgdkwqkitajhqfqjqgmesejbryahsec; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/<user>/.ansible/tmp/ansible-tmp-1474924752.61-24700385564042/setup; rm -rf \"/home/<user>/.ansible/tmp/ansible-tmp-1474924752.61-24700385564042/\" > /dev/null 2>&1'\"'\"'\"'\"'\"'\"'\"'\"' && sleep 0'\"'\"''\nok: [tp-10015]\n\nTASK [tpserver-setup : apt] ****************************************************\ntask path: /home/mgrimm/workspace/automated-deployment/roles/tpserver-setup/tasks/main.yml:1\n<ip> ESTABLISH SSH CONNECTION FOR USER: <user>\n<ip> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile=\"/home/mgrimm/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=<user> -o ConnectTimeout=10 -o ControlPath=/home/mgrimm/.ansible/cp/ansible-ssh-%h-%p-%r <ip> '/bin/sh -c '\"'\"'( umask 77 && mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1474924754.53-63418801820228 `\" && echo ansible-tmp-1474924754.53-63418801820228=\"` echo $HOME/.ansible/tmp/ansible-tmp-1474924754.53-63418801820228 `\" ) && sleep 0'\"'\"''\n<<ip>> PUT /tmp/tmp23cv6m TO /home/<user>/.ansible/tmp/ansible-tmp-1474924754.53-63418801820228/apt\n<<ip>> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile=\"/home/mgrimm/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=<user> -o ConnectTimeout=10 -o ControlPath=/home/mgrimm/.ansible/cp/ansible-ssh-%h-%p-%r '[<ip>]'\n<<ip>> ESTABLISH SSH CONNECTION FOR USER: <user>\n<<ip>> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile=\"/home/mgrimm/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=<user> -o ConnectTimeout=10 -o ControlPath=/home/mgrimm/.ansible/cp/ansible-ssh-%h-%p-%r -tt <ip> '/bin/sh -c '\"'\"'sudo -H -S  -p \"[sudo via ansible, key=myzoijofvcxkaoxxufjaxrpvbmciltvn] password: \" -u root /bin/sh -c '\"'\"'\"'\"'\"'\"'\"'\"'echo BECOME-SUCCESS-myzoijofvcxkaoxxufjaxrpvbmciltvn; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/<user>/.ansible/tmp/ansible-tmp-1474924754.53-63418801820228/apt; rm -rf \"/home/<user>/.ansible/tmp/ansible-tmp-1474924754.53-63418801820228/\" > /dev/null 2>&1'\"'\"'\"'\"'\"'\"'\"'\"' && sleep 0'\"'\"''\nfatal: [tp-10015]: FAILED! => {\"changed\": false, \"failed\": true, \"invocation\": {\"module_args\": {\"allow_unauthenticated\": false, \"autoremove\": false, \"cache_valid_time\": null, \"deb\": null, \"default_release\": null, \"dpkg_options\": \"force-confdef,force-confold\", \"force\": false, \"install_recommends\": null, \"name\": \"libXrender1\", \"only_upgrade\": false, \"package\": [\"libXrender1\"], \"purge\": false, \"state\": \"present\", \"update_cache\": false, \"upgrade\": null}, \"module_name\": \"apt\"}, \"msg\": \"No package matching 'libXrender1' is available\"}\n\nNO MORE HOSTS LEFT *************************************************************\n\nPLAY RECAP *********************************************************************\ntp-10015                   : ok=1    changed=0    unreachable=0    failed=1   \n```\n\nI have replaced the address and username of the target host by `<ip>` and `<user>` for security reasons.\n\r\nCopied from original issue: ansible/ansible-modules-core#5043\r\n"}}
{"actor":{"display_login":"ansibot"}}