Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

args alias unsupported by service module #5584

Closed
jimmymccrory opened this issue Nov 12, 2016 · 2 comments · Fixed by ansible/ansible#18485
Closed

args alias unsupported by service module #5584

jimmymccrory opened this issue Nov 12, 2016 · 2 comments · Fixed by ansible/ansible#18485

Comments

@jimmymccrory
Copy link

ISSUE TYPE
  • Bug Report
COMPONENT NAME

service module

ANSIBLE VERSION
ansible 2.2.0.0
  config file =
  configured module search path = Default w/o overrides
OS / ENVIRONMENT

Ubuntu 16.04

SUMMARY

The 'args' alias for the 'arguments' parameter is not recognized as valid by the service module.

STEPS TO REPRODUCE
- hosts: localhost
  connection: local
  gather_facts: no
  tasks:
    - service:
        name: ssh
        state: started
        args: ""
EXPECTED RESULTS

The playbook to complete successfully.

ACTUAL RESULTS
fatal: [localhost]: FAILED! => {
    "changed": false,
    "failed": true,
    "invocation": {
        "module_args": {
            "args": "",
            "name": "ssh",
            "state": "started"
        }
    },
    "msg": "unsupported parameter for module: args"
}
@ansibot
Copy link

ansibot commented Nov 12, 2016

@ansible ping, this issue is waiting for your response.
click here for bot help

openstack-gerrit pushed a commit to openstack/openstack-ansible-galera_server that referenced this issue Nov 14, 2016
In Ansible 2.2, the 'args' alias for the 'arguments' parameter
of the service module is not recognized correctly.

ansible/ansible-modules-core#5584

Change-Id: I75ee2c5239984ceabf99b5b3da5191697d60d9e1
@bcoca
Copy link
Member

bcoca commented Nov 14, 2016

it is an issue with the systemd module, which does not accept args

bcoca added a commit to bcoca/ansible that referenced this issue Nov 14, 2016
bcoca added a commit to ansible/ansible that referenced this issue Nov 14, 2016
bcoca added a commit to ansible/ansible that referenced this issue Nov 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants