From ca8706011da0151935fb672fa8644898c82a340a Mon Sep 17 00:00:00 2001 From: Caleb Fultz Date: Sun, 14 Jul 2024 02:20:25 -0400 Subject: [PATCH] first commit --- ansible.cfg | 3 +++ inventory | 1 + roles/base/tasks/main.yml | 52 +++++++++++++++++++++++++++++++++++++++ site.yml | 16 ++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 ansible.cfg create mode 100644 inventory create mode 100644 roles/base/tasks/main.yml create mode 100644 site.yml diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..c526879 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,3 @@ +[defaults] +inventory = inventory +private_key_file = ~/.ssh/hetzner \ No newline at end of file diff --git a/inventory b/inventory new file mode 100644 index 0000000..d18580b --- /dev/null +++ b/inventory @@ -0,0 +1 @@ +localhost \ No newline at end of file diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml new file mode 100644 index 0000000..d9f3b45 --- /dev/null +++ b/roles/base/tasks/main.yml @@ -0,0 +1,52 @@ +- name: Install packages + become: yes + package: + name: + - openssh-server + - git + - nano + - tmux + - rsync + - htop + - python3 + - python-pip + - build-essential + + +- name: Install GNOME3 Desktop with extensions + become: yes + package: + - ubuntu-desktop + - task-gnome-desktop + - gnome-shell-extensions + +- name: Install GUI apps + become: yes + package: + - terminator + - flatpak + - gnome-shell-extensions + - gimp + - snapd + - openconnect + - network-manager-openconnect + - network-manager-openconnect-gnome + - calibre + +- name: Install flatpaks + become: yes + community.general.flatpak: + name: https://s3.amazonaws.com/alexlarsson/spotify-repo/spotify.flatpakref + state: present + + +- name: Install snaps + become: yes + community.general.snap: + name: + - steam + +- name: Install Chrome + become: yes + apt: + deb: https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb diff --git a/site.yml b/site.yml new file mode 100644 index 0000000..cbcfa01 --- /dev/null +++ b/site.yml @@ -0,0 +1,16 @@ +--- +- hosts: all + become: true + pre_tasks: + + - name: Run updates + tags: always + package: + upgrade: dist + update_cache: yes + when: ansible_os_family == "Debian" + +- hosts: all + become: true + roles: + - base \ No newline at end of file