{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2548","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2548/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2548/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2548/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/2548","id":164970276,"number":2548,"title":"zypper_repository fails with Unknown option '--gpgcheck' on SLES 11.1","user":{"login":"paavoap","id":17634673,"avatar_url":"https://avatars.githubusercontent.com/u/17634673?v=3","gravatar_id":"","url":"https://api.github.com/users/paavoap","html_url":"https://github.com/paavoap","followers_url":"https://api.github.com/users/paavoap/followers","following_url":"https://api.github.com/users/paavoap/following{/other_user}","gists_url":"https://api.github.com/users/paavoap/gists{/gist_id}","starred_url":"https://api.github.com/users/paavoap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paavoap/subscriptions","organizations_url":"https://api.github.com/users/paavoap/orgs","repos_url":"https://api.github.com/users/paavoap/repos","events_url":"https://api.github.com/users/paavoap/events{/privacy}","received_events_url":"https://api.github.com/users/paavoap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-12T00:41:03Z","updated_at":"2016-07-12T07:43:51Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the plugin/module/task -->\r\n- zypper_repository\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\n$ ansible --version\r\nansible 2.1.0.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nFrom\r\n```\r\n$ cat /etc/lsb-release\r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=14.04\r\nDISTRIB_CODENAME=trusty\r\nDISTRIB_DESCRIPTION=\"Ubuntu 14.04 LTS\"\r\n```\r\n\r\nManaging\r\n```\r\n# cat /etc/SuSE-release\r\nSUSE Linux Enterprise Server 11 (x86_64)\r\nVERSION = 11\r\nPATCHLEVEL = 1\r\n```\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nTrying to add a new repository using the `zypper_repository` module results in the following error.\r\n\r\n    Unknown option '--gpgcheck'\r\n\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\n\r\nGet a clean install SLES 11.1, and try to add a repository.\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n  zypper_repository: name=NAME\r\n                     repo=REPO_URL\r\n                     state=present\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\nNo error.\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with high verbosity (-vvvv) -->\r\nError.\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nfatal: [endpoint]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"Unknown option '--gpgcheck'\\n\"}\r\n```\r\n\r\n##### ADDITIONAL INFORMATION\r\n\r\nThis works fine with SLES 11.4. The zypper versions and help output are as follows.\r\n\r\nSLES11.1\r\n```\r\n# /usr/bin/zypper --version\r\nzypper 1.3.7\r\n# zypper ar --help\r\naddrepo (ar) [options] <URI> <alias>\r\naddrepo (ar) [options] <file.repo>\r\n\r\nAdd a repository to the sytem. The repository can be specified by its URI or can be read from specified .repo file (even remote).\r\n\r\n  Command options:\r\n-r, --repo <file.repo>  Just another means to specify a .repo file to read.\r\n-t, --type <type>       Type of repository (yast2, rpm-md, plaindir).\r\n-d, --disable           Add the repository as disabled.\r\n-c, --check             Probe URI.\r\n-C, --no-check          Don't probe URI, probe later during refresh.\r\n-n, --name <name>       Specify descriptive name for the repository.\r\n-k, --keep-packages     Enable RPM files caching.\r\n-K, --no-keep-packages  Disable RPM files caching.\r\n-f, --refresh           Enable autorefresh of the repository.\r\n```\r\n\r\nSLES 11.4\r\n```\r\n# zypper --version\r\nzypper 1.6.326\r\n# zypper ar --help\r\naddrepo (ar) [options] <URI> <alias>\r\naddrepo (ar) [options] <file.repo>\r\n\r\nAdd a repository to the system. The repository can be specified by its URI or can be read from specified .repo file (even remote).\r\n\r\n  Command options:\r\n-r, --repo <file.repo>  Just another means to specify a .repo file to read.\r\n-t, --type <type>       Type of repository (yast2, rpm-md, plaindir).\r\n-d, --disable           Add the repository as disabled.\r\n-c, --check             Probe URI.\r\n-C, --no-check          Don't probe URI, probe later during refresh.\r\n-n, --name <name>       Specify descriptive name for the repository.\r\n-k, --keep-packages     Enable RPM files caching.\r\n-K, --no-keep-packages  Disable RPM files caching.\r\n-g, --gpgcheck          Enable GPG check for this repository.\r\n-G, --no-gpgcheck       Disable GPG check for this repository.\r\n-f, --refresh           Enable autorefresh of the repository.\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/231963177","html_url":"https://github.com/ansible/ansible-modules-extras/issues/2548#issuecomment-231963177","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2548","id":231963177,"user":{"login":"paavoap","id":17634673,"avatar_url":"https://avatars.githubusercontent.com/u/17634673?v=3","gravatar_id":"","url":"https://api.github.com/users/paavoap","html_url":"https://github.com/paavoap","followers_url":"https://api.github.com/users/paavoap/followers","following_url":"https://api.github.com/users/paavoap/following{/other_user}","gists_url":"https://api.github.com/users/paavoap/gists{/gist_id}","starred_url":"https://api.github.com/users/paavoap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paavoap/subscriptions","organizations_url":"https://api.github.com/users/paavoap/orgs","repos_url":"https://api.github.com/users/paavoap/repos","events_url":"https://api.github.com/users/paavoap/events{/privacy}","received_events_url":"https://api.github.com/users/paavoap/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T07:43:51Z","updated_at":"2016-07-12T07:43:51Z","body":"Works for me. Thanks!"}}
{"actor":{"display_login":"paavoap"}}