Compare commits

..

No commits in common. "e8b686c8a82c205adf1c2b48662f4911dad277ab" and "927b6604c9a4cfdd35d9089fe387f549a9bdb18a" have entirely different histories.

4 changed files with 0 additions and 44 deletions

5
hosts
View file

@ -1,5 +0,0 @@
[testing]
test.band-on.com
[production]
band-on.com

View file

@ -1,15 +0,0 @@
---
- hosts: production
become: true
# vars_files:
# - vars/production/users.yml
roles:
- users
- hosts: testing
become: true
# vars_files:
# - vars/testing/users.yml
roles:
- users

View file

@ -1 +0,0 @@
%admins ALL=(ALL) NOPASSWD: ALL

View file

@ -1,23 +0,0 @@
---
- name: Ensure group "admins" exists
# include_tasks: create_groups.yml
ansible.builtin.group:
name: admins
state: present
tags: groups
- name: Grant sudo without PW to admins group
ansible.builtin.file:
src: roles/users/files/sudo_group_admins
path: /etc/sudoers.d/admins
owner: root
group: root
mode: '0440'
- name: Ensure user "rulrich" exists
ansible.builtin.user:
name: rulrich
shell: /bin/bash
groups: admins
append: yes
ssh_public_key: "'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEecPevXnWu9Rs7QhDFAdeKl/E6cBPwUno+nEd4qoUAK rulrich@rabbit'\n"