From 623f575c7ae6cd8d96b5a5bc4faa0e0bd2fe75d9 Mon Sep 17 00:00:00 2001 From: Caleb Fultz Date: Sun, 14 Jul 2024 11:11:17 -0400 Subject: [PATCH] about to reinstall --- roles/docker/tasks/main.yml | 43 +++++++++++++++++++++++++++++++++++++ roles/nvidia/tasks/main.yml | 7 ++++++ roles/ppa/tasks/main.yml | 11 ++++++++++ site.yml | 5 ++++- 4 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 roles/docker/tasks/main.yml create mode 100644 roles/nvidia/tasks/main.yml create mode 100644 roles/ppa/tasks/main.yml diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml new file mode 100644 index 0000000..0120a04 --- /dev/null +++ b/roles/docker/tasks/main.yml @@ -0,0 +1,43 @@ +- name: Install aptitude + apt: + name: aptitude + state: present + update_cache: true + +- name: Install required system packages + apt: + pkg: + - apt-transport-https + - ca-certificates + - curl + - software-properties-common + - python3-pip + - virtualenv + - python3-setuptools + state: latest + update_cache: true + +- name: Add Docker GPG apt Key + apt_key: + url: https://download.docker.com/linux/ubuntu/gpg + state: present + +- name: Add Docker Repository + apt_repository: + repo: deb https://download.docker.com/linux/ubuntu focal stable + state: present + +- name: Update apt and install docker-ce + apt: + name: + - docker-ce + - docker-ce-cli + - containerd.io + - docker-buildx-plugin + - docker-compose-plugin + state: latest + update_cache: true + +- name: Install Docker Module for Python + pip: + name: docker \ No newline at end of file diff --git a/roles/nvidia/tasks/main.yml b/roles/nvidia/tasks/main.yml new file mode 100644 index 0000000..447f951 --- /dev/null +++ b/roles/nvidia/tasks/main.yml @@ -0,0 +1,7 @@ +- name: Install nVidia Drivers + become: yes + package: + name: + - nvidia-driver-555 + - nvidia-dkms-555 + state: present \ No newline at end of file diff --git a/roles/ppa/tasks/main.yml b/roles/ppa/tasks/main.yml new file mode 100644 index 0000000..f6fa854 --- /dev/null +++ b/roles/ppa/tasks/main.yml @@ -0,0 +1,11 @@ +- name: Add neofetch + apt_repository: + validate_certs: no + repo: 'ppa:zhangsongcui3371/fastfetch' + state: present + +- name: Add nVidia + apt_repository: + validate_certs: no + repo: 'ppa:graphics-drivers/ppa' + state: present diff --git a/site.yml b/site.yml index cbcfa01..c4a74ae 100644 --- a/site.yml +++ b/site.yml @@ -13,4 +13,7 @@ - hosts: all become: true roles: - - base \ No newline at end of file + - base + - ppa + - docker + - nvidia \ No newline at end of file