Added common role and local
This commit is contained in:
parent
77e0ffa5a1
commit
2d8fbcc22a
4 changed files with 38 additions and 6 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
||||||
# ---> Ansible
|
# ---> Ansible
|
||||||
*.retry
|
*.retry
|
||||||
|
|
||||||
|
|
19
README.md
19
README.md
|
@ -1,3 +1,16 @@
|
||||||
# Ansible-Config
|
# Ansible-Config
|
||||||
|
This project aims to be my personal ansible configuration for setup and maintainance of my server
|
||||||
My personal Ansible Configuration
|
and client machines.
|
||||||
|
|
||||||
|
### Setup
|
||||||
|
This is ran on the machines to set themselves up to be in a useable state.
|
||||||
|
Either for Workstations or Servers
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt install ansible
|
||||||
|
ansible-pull -o -U https://code.booklordofthe.dev/Booklordofthedings/Ansible-Config
|
||||||
|
```
|
||||||
|
|
||||||
|
### Update
|
||||||
|
Machines being able to keep themselves up to date automatically,
|
||||||
|
currently not supported yet
|
||||||
|
|
7
local.yml
Normal file
7
local.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
- name: Workmachine Setup
|
||||||
|
become: true
|
||||||
|
hosts:
|
||||||
|
- localhost
|
||||||
|
roles:
|
||||||
|
- common
|
12
roles/common/tasks/main.yml
Normal file
12
roles/common/tasks/main.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Install Micro (Text editor)
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: curl https://getmic.ro | bash
|
||||||
|
|
||||||
|
- name: Install packages
|
||||||
|
apt:
|
||||||
|
update_cache: true
|
||||||
|
pkg:
|
||||||
|
- git
|
||||||
|
- neofetch
|
Loading…
Add table
Add a link
Reference in a new issue