mirror of
https://github.com/DO1JLR/ansible_playbook_servers.git
synced 2024-09-14 19:53:56 +02:00
update users collection, adding sshd
This commit is contained in:
parent
b80c90a272
commit
60ccaf81ce
4 changed files with 11 additions and 8 deletions
|
@ -1 +1 @@
|
|||
Subproject commit bc383b8f7bd3c4ef465507cad5e22076e7739489
|
||||
Subproject commit 980fa36facb2c103e2c16048aa209262dcf08950
|
|
@ -1 +1 @@
|
|||
Subproject commit 6362a56ad362c25bdcaa4fe16d6cae7662723737
|
||||
Subproject commit 0a1c76e21c82471e9da0366f7ab1201787156434
|
|
@ -29,17 +29,18 @@ l3d_users__default_users:
|
|||
shell: '/bin/bash'
|
||||
create_home: true
|
||||
admin: true
|
||||
admin_nopassword: true
|
||||
admin_commands: 'ALL'
|
||||
pubkeys: |
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPvvXN33GwkTF4ZOwPgF21Un4R2z9hWUuQt1qIfzQyhC
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAG65EdcM+JLv0gnzT9LcqVU47Pkw0SqiIg7XipXENi8
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJz7zEvUVgJJJsIgfG3izsqYcM22IaKz4jGVUbNRL2PX
|
||||
- name: 'alice'
|
||||
state: 'absent'
|
||||
remove: true
|
||||
|
||||
# l3d.users.user
|
||||
l3d_users_user__create_ansible: true
|
||||
l3d_users_user__set_ansible_ssh_keys: true
|
||||
l3d_users__create_ansible: true
|
||||
l3d_users__ansible_user_state: 'present'
|
||||
l3d_users__set_ansible_ssh_keys: true
|
||||
l3d_users__ansible_ssh_keys: "{{ lookup('url', 'https://github.com/do1jlr.keys', split_lines=False) }}"
|
||||
|
||||
# do1jlr.users
|
||||
admins:
|
||||
|
|
4
site.yml
4
site.yml
|
@ -7,7 +7,9 @@
|
|||
- name: General roles for all hosts
|
||||
hosts: all
|
||||
roles:
|
||||
- {role: l3d.users.user, tags: [usr]}
|
||||
- {role: l3d.users.user, tags: [test, users, user]}
|
||||
- {role: l3d.users.admin, tags: [test, users, admin]}
|
||||
- {role: l3d.users.sshd, tags: [test, users, sshd]}
|
||||
- {role: l3d.packages, tags: [packages, general]}
|
||||
- {role: do1jlr.ranger, tags: [packages, ranger]}
|
||||
- {role: gantsign.bat, tags: [packages, bat], when: [ansible_os_family == 'Debian']}
|
||||
|
|
Loading…
Reference in a new issue