diff --git a/test-playbooks/add_user[1].yml b/test-playbooks/add_user[1].yml new file mode 100644 index 0000000..593ff8b --- /dev/null +++ b/test-playbooks/add_user[1].yml @@ -0,0 +1,16 @@ +--- +- hosts: all + become: yes + gather_facts: no + serial: 100 + vars: + wheel: wheel + + tasks: + - include_vars: single_user.yml + - name: add administrators on all servers + user: name={{item.user}} password={{item.password}} groups={{item.groups}} + with_items: '{{admins}}' + register: task + + - include: tasks/collect_changed_hosts.yml