Add basic software installation and git repos for a Linux desktop
This commit is contained in:
parent
63ee924e0f
commit
3164671c1d
|
@ -3,10 +3,11 @@ mac_desktops:
|
||||||
localhost:
|
localhost:
|
||||||
ansible_connection: local
|
ansible_connection: local
|
||||||
|
|
||||||
|
linux_desktops:
|
||||||
|
hosts:
|
||||||
|
localhost:
|
||||||
|
ansible_connection: local
|
||||||
|
|
||||||
home_servers:
|
home_servers:
|
||||||
hosts:
|
hosts:
|
||||||
homer
|
homer
|
||||||
|
|
||||||
pihole:
|
|
||||||
hosts:
|
|
||||||
pihole
|
|
||||||
|
|
4
.ansible/linux_desktop.yaml
Normal file
4
.ansible/linux_desktop.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
- name: Linux desktops
|
||||||
|
hosts: linux_desktops
|
||||||
|
roles:
|
||||||
|
- linux_desktop
|
4
.ansible/mac_desktop.yaml
Normal file
4
.ansible/mac_desktop.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
- name: Mac desktops
|
||||||
|
hosts: mac_desktops
|
||||||
|
roles:
|
||||||
|
- mac_desktop
|
7
.ansible/roles/linux_desktop/tasks/config.yaml
Normal file
7
.ansible/roles/linux_desktop/tasks/config.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
- name: Checkout some repositories for local config
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
git:
|
||||||
|
repo: "{{ item.repo }}"
|
||||||
|
dest: "{{ item.dest }}"
|
||||||
|
with_items: "{{ config_repos }}"
|
3
.ansible/roles/linux_desktop/tasks/main.yaml
Normal file
3
.ansible/roles/linux_desktop/tasks/main.yaml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
- name: Linux desktop tasks
|
||||||
|
import_tasks: software.yaml
|
||||||
|
- import_tasks: config.yaml
|
24
.ansible/roles/linux_desktop/tasks/software.yaml
Normal file
24
.ansible/roles/linux_desktop/tasks/software.yaml
Normal file
|
@ -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
|
40
.ansible/roles/linux_desktop/vars/main.yaml
Normal file
40
.ansible/roles/linux_desktop/vars/main.yaml
Normal file
|
@ -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
|
|
@ -1,14 +1,4 @@
|
||||||
- name: Mac desktops
|
|
||||||
hosts: mac_desktops
|
|
||||||
roles:
|
|
||||||
- mac_desktop
|
|
||||||
|
|
||||||
- name: Home server
|
- name: Home server
|
||||||
hosts: home_servers
|
hosts: home_servers
|
||||||
roles:
|
roles:
|
||||||
- home_server
|
- home_server
|
||||||
|
|
||||||
- name: pi-hole
|
|
||||||
hosts: pihole
|
|
||||||
roles:
|
|
||||||
- pi_hole
|
|
||||||
|
|
Loading…
Reference in a new issue