From fa5582d751678d3b3047b64c486d8c327f649b95 Mon Sep 17 00:00:00 2001 From: ogrechko Date: Tue, 2 Dec 2025 15:54:30 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?test-playbooks=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-playbooks/add_user[1].yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test-playbooks/add_user[1].yml 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