Skip to main content

Users Role

Updated Jan 08, 2021 ·

Overview

This role contains user-management tasks used by the Ansible basics project.

It is intended for lab work around variables, conditionals, and reusable role structure.

Structure

PathPurpose
tasks/main.ymlMain user-management tasks.
defaults/main.ymlDefault role variables.
vars/main.ymlRole variables.
handlers/main.ymlHandlers available to the role.
testsBasic role test inventory and playbook.

Usage

Use the role from a playbook.

- name: Manage users
hosts: all
become: true
roles:
- users