You've already forked ansible-role-unix-users
Initial Commit
This commit is contained in:
29
tasks/main.yml
Normal file
29
tasks/main.yml
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
|
||||
- name: Remove unix groups
|
||||
include_tasks: remove_unix_group.yml
|
||||
with_dict: "{{ unix_groups }}"
|
||||
loop_control:
|
||||
loop_var: unix_group
|
||||
when: unix_group.value.state is defined and unix_group.value.state == 'absent'
|
||||
|
||||
- name: Remove unix user
|
||||
include_tasks: remove_unix_user.yml
|
||||
with_dict: "{{ unix_users }}"
|
||||
loop_control:
|
||||
loop_var: unix_user
|
||||
when: unix_user.value.state is defined and unix_user.value.state == 'absent'
|
||||
|
||||
- name: Create unix groups
|
||||
include_tasks: create_unix_group.yml
|
||||
with_dict: "{{ unix_groups }}"
|
||||
loop_control:
|
||||
loop_var: unix_group
|
||||
when: unix_group.value.state is defined and unix_group.value.state == 'present' or unix_group.value.state is not defined
|
||||
|
||||
- name: Create unix users
|
||||
include_tasks: create_unix_user.yml
|
||||
with_dict: "{{ unix_users }}"
|
||||
loop_control:
|
||||
loop_var: unix_user
|
||||
when: unix_user.value.state is defined and unix_user.value.state == 'present' or unix_user.value.state is not defined
|
Reference in New Issue
Block a user