Add basic software installation and git repos for a Linux desktop

This commit is contained in:
Scott Wallace 2019-01-12 19:03:34 +00:00
parent 63ee924e0f
commit 3164671c1d
8 changed files with 87 additions and 14 deletions

View file

@ -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

View file

@ -0,0 +1,4 @@
- name: Linux desktops
hosts: linux_desktops
roles:
- linux_desktop

View file

@ -0,0 +1,4 @@
- name: Mac desktops
hosts: mac_desktops
roles:
- mac_desktop

View 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 }}"

View file

@ -0,0 +1,3 @@
- name: Linux desktop tasks
import_tasks: software.yaml
- import_tasks: config.yaml

View 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

View 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

View file

@ -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