diff --git a/.gitignore b/.gitignore index 5c199eb..43878b6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -# ---> Ansible -*.retry - +# ---> Ansible +*.retry + diff --git a/README.md b/README.md index 8a97f56..cab0271 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,16 @@ -# Ansible-Config - -My personal Ansible Configuration \ No newline at end of file +# Ansible-Config +This project aims to be my personal ansible configuration for setup and maintainance of my server +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 diff --git a/local.yml b/local.yml new file mode 100644 index 0000000..4f14e5c --- /dev/null +++ b/local.yml @@ -0,0 +1,7 @@ +--- +- name: Workmachine Setup + become: true + hosts: + - localhost + roles: + - common diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml new file mode 100644 index 0000000..eea0a61 --- /dev/null +++ b/roles/common/tasks/main.yml @@ -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