Skip to content

Instantly share code, notes, and snippets.

@parberge
Created January 25, 2017 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parberge/6d4e070c76dfa4fcb67127d9958294fb to your computer and use it in GitHub Desktop.
Save parberge/6d4e070c76dfa4fcb67127d9958294fb to your computer and use it in GitHub Desktop.
task with conditional that fails
- name: "users | Creating local user(s)"
user:
name: "{{ item }}"
password: "{{ def_local_user_password }}"
state: present
update_password: on_create
when: local_users_extra is defined
with_items: '{{ local_users_extra }}'
tags: "local_users"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment