ansible-course/10-host-vars/roles/base/tasks/main.yml

32 lines
615 B
YAML
Raw Normal View History

2024-07-14 05:10:41 +02:00
- 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
2024-07-14 06:28:09 +02:00
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) }}"