Обновить test-playbooks/add_admins.yml

This commit is contained in:
2025-12-02 15:53:22 +00:00
parent 9403a811f8
commit 99187c923e

View File

@@ -0,0 +1,17 @@
---
- hosts: all
become: yes
gather_facts: no
serial: 100
vars:
wheel: wheel
tasks:
- include_vars: users.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
- include: tasks/disable_ssh_root.yml