moved user tasks to an own file

so they can be called from other roles
This commit is contained in:
rene
2022-02-25 14:59:09 +01:00
parent bff9415438
commit 64bbb73b71
3 changed files with 17 additions and 12 deletions

View File

@@ -23,18 +23,7 @@
- import_tasks: system_setup/openssh.yml - import_tasks: system_setup/openssh.yml
- import_tasks: system_setup/scripts.yml - import_tasks: system_setup/scripts.yml
# Make sure users exist on the system - import_tasks: users.yml
- import_tasks: users/root.yml
- import_tasks: users/rene.yml
- import_tasks: users/ansible.yml
- name: users | all | repeating tasks for all users
include_tasks: users/all.yml
loop:
- rene
- root
loop_control:
loop_var: user
# Set up the ansible environment # Set up the ansible environment
# - import_tasks: ansible_setup.yml # - import_tasks: ansible_setup.yml

View File

@@ -0,0 +1,12 @@
# Make sure users exist on the system
- import_tasks: users/root.yml
- import_tasks: users/rene.yml
- import_tasks: users/ansible.yml
- name: users | all | repeating tasks for all users
include_tasks: users/all.yml
loop:
- rene
- root
loop_control:
loop_var: user

View File

@@ -10,4 +10,8 @@
- include_tasks: utilities/snmpd.yml - include_tasks: utilities/snmpd.yml
- include_tasks: utilities/wireguard.yml - include_tasks: utilities/wireguard.yml
- include_role:
name: base
tasks_from: users
# vim: ts=2 sw=2 # vim: ts=2 sw=2