Last active
September 10, 2018 18:29
-
-
Save bjonnh/87f59a58d8bd4dbf41cb1f2ec61b6803 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
failed: [<DOMAINNAME>] (item={'name': 'myuser', 'ssh_key': 'ssh-rsa <SOMEKEY> cardno:<SOMEID>', 'groups': 'sudo'}) => { | |
"changed": false, | |
"item": { | |
"groups": "sudo", | |
"name": "myuser", | |
"ssh_key": "ssh-rsa <SOMEKEY> cardno:<SOMEID>" | |
}, | |
"module_stderr": "Error: not found\n", | |
"module_stdout": "", | |
"msg": "MODULE FAILURE", | |
"rc": 1 | |
} | |
In my yml task: | |
- name: Add Users | |
user: | |
name: "{{ item.name }}" | |
groups: "{{ item.groups }}" | |
with_items: "{{ uusers }}" | |
when: item.name != "root" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment