ansible-course/10-host-vars/roles/base/tasks/main.yml
2024-07-14 00:57:15 -04:00

33 lines
616 B
YAML

- name: Install common packages
package:
name:
- htop
- neofetch
- name: Add lfultz account
tags: lfultz
user:
name: lfultz
comment: Logan Fultz
uid: 1040
groups: root
append: yes
shell: /bin/bash
generate_ssh_key: yes
ssh_key_bits: 2048
ssh_key_file: .ssh/id_rsa
- name: Add lfultz group
tags: group
group:
name: lfultz
state: present
gid: 1040
- name: Add cfultz ssh key
tags: ssh_keys
authorized_key:
user: cfultz
state: present
key: "{{ lookup('url', 'https://git.cfultz.wtf/cfultz.keys', split_lines=False) }}"