This commit is contained in:
user
2023-07-15 19:39:13 -05:00
parent 8ec6063d6f
commit 9c2035e09c
19 changed files with 196 additions and 227 deletions

View File

@@ -1,61 +1,12 @@
- name: add apt repository key
apt_key:
url: "{{ item }}"
with_items: "{{ apt_keys }}"
become: yes
- name: "Install apt"
include_tasks: "../scripts/install_apt.yml"
- name: add apt repository
apt_repository:
repo: "{{ item }}"
with_items: "{{ apt_repo }}"
become: yes
- name: Upgrade Packages
package:
update_cache: yes
upgrade: safe
become: yes
- name: Install Packages
apt:
state: latest
update_cache: yes
pkg: "{{ required_packages }}"
become: yes
when: required_packages is defined
- name: ensure fonts directory
become_user: user
file:
path: "~/.fonts"
state: directory
- name: FiraCode exists
become_user: user
shell: "ls ~/.fonts/*{{ item.name }}*"
register: FiraCode_exists
ignore_errors: yes
with_items: "{{ fonts }}"
- name: Download FiraCode
when: FiraCode_exists is failed
become_user: user
ansible.builtin.unarchive:
src: "{{ item.url }}"
dest: "~/.fonts/"
remote_src: yes
with_items: "{{ fonts }}"
- name: "Install flatpak"
include_tasks: "../scripts/install_flatpak.yml"
- name: Enable wayland
shell: sed -i 's/WaylandEnable=false/WaylandEnable=true/' /etc/gdm3/custom.conf
- name: download Nvim
ansible.builtin.get_url:
url: "https://github.com/neovim/neovim/releases/download/{{ nvim_version }}/nvim.appimage"
dest: /usr/bin/nvim
mode: '0755'
checksum: sha256:https://github.com/neovim/neovim/releases/download/{{ nvim_version }}/nvim.appimage.sha256sum
- name: Start and enable services
ansible.builtin.systemd:
state: started
@@ -69,3 +20,4 @@
groups: "{{ item }}"
append: yes
with_items: "{{ groups_to_add }}"

View File

@@ -6,5 +6,17 @@
- "vars/{{ ansible_os_family }}.yml"
- "vars/defaults.yml"
- name:
- name: "OS dependant"
include_tasks: "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
- name: "Install fonts"
include_tasks: "../scripts/install_fonts.yml"
- name: "Install nvim"
include_tasks: "../scripts/install_nvim.yml"
- name: "Install Go"
include_tasks: "../scripts/install_go.yml"
- name: Configure Gitlab SSH Key
ansible.builtin.command: pwsh -f ./scripts/configure-ssh.ps1 '{{ lookup('ansible.builtin.env', 'GITLAB_TOKEN') }}'