Inital Commit: Default buildout for fresh VM
Install pip, docker, and a few other baseline packages. Ensure zware user is setup and has a fresh SSH key. Some of this is duplicating efforts of the install_dotfiles.sh, but ideal this will replace or at least supplement that script.
This commit is contained in:
35
tasks/main.yml
Normal file
35
tasks/main.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
- name: Include external roles
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ item }}"
|
||||
loop:
|
||||
- geerlingguy.pip
|
||||
- geerlingguy.docker
|
||||
|
||||
- name: install packages
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop:
|
||||
- curl
|
||||
- git
|
||||
- jq
|
||||
- ncdu
|
||||
- nfs-common
|
||||
- python3
|
||||
- python3-pip
|
||||
- python3-venv
|
||||
- tree
|
||||
- tmux
|
||||
- zsh
|
||||
|
||||
- name: Add User
|
||||
ansible.builtin.user:
|
||||
name: zware
|
||||
append: true
|
||||
groups:
|
||||
- sudo
|
||||
generate_ssh_key: true
|
||||
ssh_key_type: ed25519
|
||||
create_home: true
|
||||
state: present
|
||||
Reference in New Issue
Block a user