1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_playbook_servers.git synced 2024-09-14 19:53:56 +02:00

Start rewriting user creation

This commit is contained in:
L3D 2024-02-14 03:37:05 +01:00
parent 4d3de7af40
commit b80c90a272
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
6 changed files with 28 additions and 22 deletions

@ -1 +1 @@
Subproject commit eded6ebf648bc0ff76bcff5ddaf1d99ee4384636 Subproject commit bc383b8f7bd3c4ef465507cad5e22076e7739489

@ -1 +1 @@
Subproject commit 6976e9434e31290271290435d7872fa84c275f43 Subproject commit f62d67fb66138593d2f999b0e7e68282f9871e5b

@ -1 +1 @@
Subproject commit 1d54bbcb098ff1bcde073e11696f9e45b8c6cb99 Subproject commit 6362a56ad362c25bdcaa4fe16d6cae7662723737

View file

@ -22,6 +22,25 @@ ntp_servers:
# prometheus.prometeus.node_exporter # prometheus.prometeus.node_exporter
node_exporter_web_listen_address: '127.0.0.1:9100' node_exporter_web_listen_address: '127.0.0.1:9100'
# l3d.users
l3d_users__default_users:
- name: 'l3d'
state: 'present'
shell: '/bin/bash'
create_home: true
admin: true
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
# do1jlr.users # do1jlr.users
admins: admins:
- l3d - l3d

View file

@ -1,23 +1,9 @@
--- ---
users: l3d_users__local_users:
l3d: - name: 'mxusr'
- l3d@pinkie.l3d.yt state: 'present'
- l3d@mobile.l3d.yt admin: false
- l3d@backup.l3d.yt pubkeys: "{{ lookup('url', 'https://github.com/do1jlr.keys', split_lines=False) }}"
- l3d@derpy.l3d.yt
- l3d@backup-rsa.l3d.yt
- l3d@business.wingcon.com
mxusr:
- l3d@pinkie.l3d.yt
- l3d@mobile.l3d.yt
- l3d@backup.l3d.yt
- l3d@derpy.l3d.yt
- l3d@backup-rsa.l3d.yt
- l3d@business.wingcon.com
accounts:
- l3d
- mxusr
acme_domain_unwant_list: [] acme_domain_unwant_list: []
# - name: 'example.com' # - name: 'example.com'

View file

@ -7,6 +7,7 @@
- name: General roles for all hosts - name: General roles for all hosts
hosts: all hosts: all
roles: roles:
- {role: l3d.users.user, tags: [usr]}
- {role: l3d.packages, tags: [packages, general]} - {role: l3d.packages, tags: [packages, general]}
- {role: do1jlr.ranger, tags: [packages, ranger]} - {role: do1jlr.ranger, tags: [packages, ranger]}
- {role: gantsign.bat, tags: [packages, bat], when: [ansible_os_family == 'Debian']} - {role: gantsign.bat, tags: [packages, bat], when: [ansible_os_family == 'Debian']}