Загрузить файлы в «test-playbooks»
This commit is contained in:
16
test-playbooks/add_user[1].yml
Normal file
16
test-playbooks/add_user[1].yml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user