Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudorule_add_option error: Only one value is allowed. #18

Open
parmstro opened this issue Nov 26, 2017 · 0 comments
Open

sudorule_add_option error: Only one value is allowed. #18

parmstro opened this issue Nov 26, 2017 · 0 comments

Comments

@parmstro
Copy link

Task below generates an error when more than one item supplied for the list of sudoopt:

  • name: Add the awx-admin sudo rule
    ipa_sudorule:
    name: "awx-admin"
    description: "Control sudo access on Ansible Tower Servers"
    state: present
    ipa_host: "{{ hostname }}"
    ipa_user: "admin"
    ipa_pass: "{{ idm_admin_password }}"
    cmdcategory: all
    sudoopt:
    • '!authenticate'
    • '!requiretty'
      hostgroup:
    • awx-servers
      usergroup:
    • towergroup-administrator
    • towergroup-operator

Errors out with:

fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "response sudorule_add_option: invalid 'ipasudoopt': Only one value is allowed"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant