diff --git a/.ansible/inventory.yaml b/.ansible/inventory.yaml index 9fe752e..c9780e0 100644 --- a/.ansible/inventory.yaml +++ b/.ansible/inventory.yaml @@ -3,10 +3,11 @@ mac_desktops: localhost: ansible_connection: local +linux_desktops: + hosts: + localhost: + ansible_connection: local + home_servers: hosts: homer - -pihole: - hosts: - pihole diff --git a/.ansible/linux_desktop.yaml b/.ansible/linux_desktop.yaml new file mode 100644 index 0000000..adc61ac --- /dev/null +++ b/.ansible/linux_desktop.yaml @@ -0,0 +1,4 @@ +- name: Linux desktops + hosts: linux_desktops + roles: + - linux_desktop diff --git a/.ansible/mac_desktop.yaml b/.ansible/mac_desktop.yaml new file mode 100644 index 0000000..cbac088 --- /dev/null +++ b/.ansible/mac_desktop.yaml @@ -0,0 +1,4 @@ +- name: Mac desktops + hosts: mac_desktops + roles: + - mac_desktop diff --git a/.ansible/roles/linux_desktop/tasks/config.yaml b/.ansible/roles/linux_desktop/tasks/config.yaml new file mode 100644 index 0000000..4c8d588 --- /dev/null +++ b/.ansible/roles/linux_desktop/tasks/config.yaml @@ -0,0 +1,7 @@ +- name: Checkout some repositories for local config + tags: + - config + git: + repo: "{{ item.repo }}" + dest: "{{ item.dest }}" + with_items: "{{ config_repos }}" diff --git a/.ansible/roles/linux_desktop/tasks/main.yaml b/.ansible/roles/linux_desktop/tasks/main.yaml new file mode 100644 index 0000000..bcdf3f7 --- /dev/null +++ b/.ansible/roles/linux_desktop/tasks/main.yaml @@ -0,0 +1,3 @@ +- name: Linux desktop tasks + import_tasks: software.yaml +- import_tasks: config.yaml diff --git a/.ansible/roles/linux_desktop/tasks/software.yaml b/.ansible/roles/linux_desktop/tasks/software.yaml new file mode 100644 index 0000000..9091fe1 --- /dev/null +++ b/.ansible/roles/linux_desktop/tasks/software.yaml @@ -0,0 +1,24 @@ +- name: Adding repositories + tags: install + apt_repository: + repo: "{{ item }}" + state: present + with_items: "{{ linux_repos }}" + become: true + +- name: Installing packages + tags: install + package: + name: "{{ item }}" + state: present + with_items: "{{ linux_packages }}" + become: true + +- name: Installing Snaps + tags: install +# snap: +# name: "{{ item }}" +# state: present + command: "snap install {{ item }}" + with_items: "{{ linux_apps }}" + become: true diff --git a/.ansible/roles/linux_desktop/vars/main.yaml b/.ansible/roles/linux_desktop/vars/main.yaml new file mode 100644 index 0000000..521e2f0 --- /dev/null +++ b/.ansible/roles/linux_desktop/vars/main.yaml @@ -0,0 +1,40 @@ +config_repos: + # - name: "dotfiles" + # repo: "git@github.com:scottwallacesh/dotfiles.git" + # dest: "~/" + - name: "albert" + repo: "git@github.com:scottwallacesh/albert.git" + dest: "~/.local/share/albert" + +linux_repos: + - "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" # Visual Studio Code + - "deb http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_18.10/ /" # Albert + - "deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" # Resilio Sync + - "deb http://prerelease.keybase.io/deb stable main" # Keybase + - "deb https://apt.enpass.io/ stable main" # Enpass + +linux_packages: + - albert + - code + - conky + - copyq + - dconf-editor + - enpass + - franz + - git + - glances + - gnome-tweaks + - keybase + - netcat + - qrencode + - resilio-sync + - screen + - sonos-controller-unofficial + - units + - vim + - wireshark-qt + +linux_apps: + - google-play-music-desktop-player + - skype + - wireguard-ammp diff --git a/.ansible/site.yaml b/.ansible/site.yaml index e08df9e..9bece12 100644 --- a/.ansible/site.yaml +++ b/.ansible/site.yaml @@ -1,14 +1,4 @@ -- name: Mac desktops - hosts: mac_desktops - roles: - - mac_desktop - - name: Home server hosts: home_servers roles: - home_server - -- name: pi-hole - hosts: pihole - roles: - - pi_hole