Skip to content

Instantly share code, notes, and snippets.

@github-somerandomguy-xyz
Created April 11, 2020 07:24
Show Gist options
  • Save github-somerandomguy-xyz/29c2536d4e7065d7eab2d9da71ca8da4 to your computer and use it in GitHub Desktop.
Save github-somerandomguy-xyz/29c2536d4e7065d7eab2d9da71ca8da4 to your computer and use it in GitHub Desktop.
/roles/tasks/kvm/debian.yml
- name: adding existing user ansible to group libvirt/-qemu
user:
name: "{{ansible_user}}"
groups: libvirt,libvirt-qemu
# if append is not set to yes, the user is removed from all other groups and gets added only to this one!
append: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment