Skip to content

Instantly share code, notes, and snippets.

@amaurybsouza
Created February 28, 2022 11:51
Show Gist options
  • Save amaurybsouza/6b4698fa413774c8340397a78521b8f7 to your computer and use it in GitHub Desktop.
Save amaurybsouza/6b4698fa413774c8340397a78521b8f7 to your computer and use it in GitHub Desktop.
ansible-loops
- name: add several users
user:
name: "{{ item }}"
groups: "wheel"
state: present
with_items:
- testuser1
- testuser2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment