users

Galaksiya Статус сборки

memoryleak.users

Простая роль для управления пользователями.

Требования

Нет

Переменные роли

users_groups: []
users_users: []
users_filter_groups: []
users_filter_users: []
users_default_group: users

Зависимости

Нет

Пример плейбука

- hosts: all
  roles:
    - role: memoryleak.users
      users_filter_groups: ['разработчики', 'посетители', 'интеграция']
      users_filter_users: ['john.doe', 'cicd']
      users_groups:
        - name: разработчики
          state: present
          sudo: true

        - name: посетители
          state: present
          sudo: false

        - name: интеграция
          state: present
          sudo: nopasswd

        - name: заглушка
          state: present
          sudo: nopasswd

      users_users:
        - name: john.doe
          state: present
          # Пароль: hello123!
          password: $6$J2OJ2Mvb3jVVkwvR$qz0nnBMwtzz9U2sS20C0iuyj07KhGC/QsLBoTdeo2Jwurj6U22c7UoknG2F1Kklvyd13hkFpPrEVqXXQyOzLj0
          public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCdMalXirJubfSJu/8zY742O0whspI26g/d5gXWOiGUvCbxUdD8mOUKSvxIW+RKNiQyh9awgag/wTF+7K/RgtTPwVz687a2ZalVGI8/TTeZfldM9SsytCGniX9qyYkha206MV0C2vMbPKsBPFvuMMzZXer/mArl/2a0yDWEUhuHFz2D3ztfLmFVrEUfED8gQfmF4GRFGwlPhKJsMSevSxRaOvdyLfWSnrjVjEnc58W5xEcBXgG03BNZHK5k013tqag06zEC30YBWKqRR2eOf2yfjAkTzoZKM/TRvMaI8IFFH20z8SjuC8q7O1wfp+NEHmB6K7Ml38ByfOGTJiBEwv//
          public_key_comment: Джон Доу <[email protected]>
          group: разработчики

        - name: cicd
          state: present
          # Пароль: hello123!
          password: $6$J2OJ2Mvb3jVVkwvR$qz0nnBMwtzz9U2sS20C0iuyj07KhGC/QsLBoTdeo2Jwurj6U22c7UoknG2F1Kklvyd13hkFpPrEVqXXQyOzLj0
          public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCdMalXirJubfSJu/8zY742O0whspI26g/d5gXWOiGUvCbxUdD8mOUKSvxIW+RKNiQyh9awgag/wTF+7K/RgtTPwVz687a2ZalVGI8/TTeZfldM9SsytCGniX9qyYkha206MV0C2vMbPKsBPFvuMMzZXer/mArl/2a0yDWEUhuHFz2D3ztfLmFVrEUfED8gQfmF4GRFGwlPhKJsMSevSxRaOvdyLfWSnrjVjEnc58W5xEcBXgG03BNZHK5k013tqag06zEC30YBWKqRR2eOf2yfjAkTzoZKM/TRvMaI8IFFH20z8SjuC8q7O1wfp+NEHmB6K7Ml38ByfOGTJiBEwv//
          groups:
            - посетители
            - интеграция

        - name: заглушка
          state: present
          # Пароль: hello123!
          password: $6$J2OJ2Mvb3jVVkwvR$qz0nnBMwtzz9U2sS20C0iuyj07KhGC/QsLBoTdeo2Jwurj6U22c7UoknG2F1Kklvyd13hkFpPrEVqXXQyOzLj0
          public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCdMalXirJubfSJu/8zY742O0whspI26g/d5gXWOiGUvCbxUdD8mOUKSvxIW+RKNiQyh9awgag/wTF+7K/RgtTPwVz687a2ZalVGI8/TTeZfldM9SsytCGniX9qyYkha206MV0C2vMbPKsBPFvuMMzZXer/mArl/2a0yDWEUhuHFz2D3ztfLmFVrEUfED8gQfmF4GRFGwlPhKJsMSevSxRaOvdyLfWSnrjVjEnc58W5xEcBXgG03BNZHK5k013tqag06zEC30YBWKqRR2eOf2yfjAkTzoZKM/TRvMaI8IFFH20z8SjuC8q7O1wfp+NEHmB6K7Ml38ByfOGTJiBEwv//
          groups:
            - посетители
            - интеграция

Лицензия

BSD

Авторская информация

Хайдар Чифтчи haydar.ciftci@gmail.com

О проекте

A ansible role to manage users and groups.

Установить
ansible-galaxy install memoryleak/ansible-role-users
Лицензия
Unknown
Загрузки
17786
Владелец
Software Engineering Manager interested in all kinds of development related topics. Strong focus on automating workflows and lean development processes.