Загрузить файлы в «test-playbooks»

This commit is contained in:
2025-12-02 13:30:40 +00:00
commit 27a3ed065c
2 changed files with 30 additions and 0 deletions

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

View File

@@ -0,0 +1,13 @@
---
- hosts: all
ignore_unreachable: yes
gather_facts: no
become: yes
serial: 1
tasks:
- name: change user password
user:
name:
password: ""
update_password: always