1
0
Fork 0
ansible-collection-kit/roles/admin
2022-04-06 22:20:02 +02:00
..
defaults Add the admin role 2021-01-07 00:44:07 +01:00
tasks Use FQCN 2022-04-06 22:20:02 +02:00
README.md Add the admin role 2021-01-07 00:44:07 +01:00

Admin

Create an admin user that is added to the sudo group.

Role Variables

  • admin_become - Default: true. Enable/disable the Ansible become functionality.
  • admin_become_user - Default: root. When using become functionality for privilege escalation, this is the user with desired privileges you become.
  • admin_user - Username of the admin account.
  • admin_password - Password of the admin account.
  • admin_key_file - Path to the ssh public key of the admin account.

Example Playbook

- hosts: my-server
  vars:
    admin_user: administrator
    admin_password: the_secret_password
    admin_key_file: /path/to/ssh/key.pub
  roles:
    - eriol.kit.admin