More organization and beginning to add 1337 share.

This commit is contained in:
2021-02-01 05:03:27 -06:00
parent 834800df8c
commit af1eee5f03
12 changed files with 34 additions and 9 deletions

View File

@ -0,0 +1,6 @@
---
# Groups that do not come to all distros by default.
- name: Ensure sudo group exists (Looking at you BSD!)
group:
name: sudo

View File

@ -0,0 +1,10 @@
---
# Extra SSH keys
- name: Create Root's SSH Key
openssh_keypair:
path: /root/.ssh/id_rsa
- name: Join System to 1337 Share
shell:
path: ssh-copy-id -f ling@leet

View File

@ -0,0 +1,9 @@
---
# Mount shares that all systems should have.
- name: Add 1337 to fstab
blockinfile:
path: /etc/fstab
block: |
ling@leet: /mnt/leet fuse.sshfs defaults,_netdev,allow_other,delay_connect 0 0
backup: yes

View File

@ -0,0 +1,18 @@
---
# Ensure the proper users have sudo access.
- name: Add Ansible Sudoers File
copy:
src: sudoers_ansible
dest: "{{ sudoers_install_dir }}"
owner: root
group: "{{ root_group }}"
mode: 0440
- name: Add Sudo Group Sudoers File
copy:
src: sudoers_sudo
dest: "{{ sudoers_install_dir }}"
owner: root
group: "{{ root_group }}"
mode: 0440

View File

@ -0,0 +1,22 @@
---
# Create users for both desktop and server machines.
# Scheduler
- name: Create User Ansible
user:
name: ansible
comment: Ansible
system: yes
# Superuser
- name: Create User Hyperling
user:
name: ling
comment: Hyperling
groups:
- sudo
append: yes
shell: /bin/bash
create_home: yes
generate_ssh_key: yes