Skip to content

Instantly share code, notes, and snippets.

@greggyNapalm
Created August 23, 2014 17:34
Show Gist options
  • Save greggyNapalm/3d920f1cecf83c0a9f87 to your computer and use it in GitHub Desktop.
Save greggyNapalm/3d920f1cecf83c0a9f87 to your computer and use it in GitHub Desktop.
developers_groups:
- 'developres'
- 'ninjas'
ops_groups:
- 'ops'
- 'wheel'
robots_groups:
- 'robots'
company_groups:
- 'company'
all_groups: developers_groups + ops_groups + robots_groups + company_groups
....
tasks:
- name: create or modify enabled user groups
group: name={{ item }} state=present
with_items: all_groups
....
TASK: [create or modify enabled user groups] **********************************
failed: [centos6vm] => (item=developers_groups + ops_groups + robots_groups + company_groups) => {"failed": true, "item": "developers_groups + ops_groups + robots_groups + company_groups"}
msg: this module requires key=value arguments (['name=developers_groups', '+', 'ops_groups', '+', 'robots_groups', '+', 'company_groups', 'state=present'])
FATAL: all hosts have already failed -- aborting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment