Merge branch 'master' of github.com:gtalent/debian-workstation
This commit is contained in:
commit
c33ca3d80c
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
setup.retry
|
||||
debian.retry
|
||||
|
4
Makefile
4
Makefile
@ -1,4 +1,4 @@
|
||||
apply:
|
||||
ansible-playbook setup.yml -u root -i "127.0.0.1,"
|
||||
ansible-playbook debian.yml -u root -i "127.0.0.1,"
|
||||
init:
|
||||
ansible-playbook setup.yml -u root -i "127.0.0.1," -k
|
||||
ansible-playbook debian.yml -u root -i "127.0.0.1," -k
|
||||
|
229
debian.yml
Normal file
229
debian.yml
Normal file
@ -0,0 +1,229 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Install apt-transport-https
|
||||
apt:
|
||||
name: apt-transport-https
|
||||
state: latest
|
||||
|
||||
- name: "Contrib, Non-free"
|
||||
apt_repository:
|
||||
repo: "deb http://ftp.us.debian.org/debian stretch contrib non-free"
|
||||
state: present
|
||||
|
||||
- name: Tarsnap Repository Key
|
||||
apt_key:
|
||||
url: https://pkg.tarsnap.com/tarsnap-deb-packaging-key.asc
|
||||
state: present
|
||||
- name: Tarsnap Repository
|
||||
apt_repository:
|
||||
repo: "deb http://pkg.tarsnap.com/deb/stretch ./"
|
||||
state: present
|
||||
|
||||
- name: Chrome Repository Key
|
||||
apt_key:
|
||||
url: https://dl-ssl.google.com/linux/linux_signing_key.pub
|
||||
state: present
|
||||
- name: Chrome Repository
|
||||
apt_repository:
|
||||
repo: "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
|
||||
filename: google-chrome
|
||||
state: present
|
||||
|
||||
- name: Docker Repository Key
|
||||
apt_key:
|
||||
url: https://download.docker.com/linux/debian/gpg
|
||||
state: present
|
||||
- name: Docker Repository
|
||||
apt_repository:
|
||||
repo: "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable"
|
||||
state: present
|
||||
|
||||
# update system
|
||||
- name: Update | Update System
|
||||
apt:
|
||||
upgrade: dist
|
||||
update_cache: true
|
||||
|
||||
# install packages
|
||||
|
||||
- name: Install Ansible
|
||||
apt:
|
||||
name: ansible
|
||||
state: latest
|
||||
|
||||
- name: Install bzr
|
||||
apt:
|
||||
name: bzr
|
||||
state: latest
|
||||
|
||||
- name: Install clang
|
||||
apt:
|
||||
name: clang
|
||||
state: latest
|
||||
|
||||
- name: Install CTags
|
||||
apt:
|
||||
name: ctags
|
||||
state: latest
|
||||
|
||||
- name: Install Docker
|
||||
apt:
|
||||
name: docker-ce
|
||||
state: latest
|
||||
|
||||
- name: Install Docker Compose
|
||||
apt:
|
||||
name: docker-compose
|
||||
state: latest
|
||||
|
||||
- name: Install firmware-iwlwifi
|
||||
apt:
|
||||
name: firmware-iwlwifi
|
||||
state: latest
|
||||
|
||||
- name: Install Git
|
||||
apt:
|
||||
name: git
|
||||
state: latest
|
||||
|
||||
- name: Install gnome-tweak-tool
|
||||
apt:
|
||||
name: gnome-tweak-tool
|
||||
state: latest
|
||||
|
||||
- name: Install Go
|
||||
apt:
|
||||
name: golang
|
||||
state: latest
|
||||
|
||||
- name: Install Google Chrome
|
||||
apt:
|
||||
name: google-chrome-stable
|
||||
state: latest
|
||||
|
||||
- name: Install jq
|
||||
apt:
|
||||
name: jq
|
||||
state: latest
|
||||
|
||||
- name: Install llvm
|
||||
apt:
|
||||
name: llvm
|
||||
state: latest
|
||||
|
||||
# - name: Install npm
|
||||
# apt:
|
||||
# name: npm
|
||||
# state: latest
|
||||
|
||||
- name: Install pandoc
|
||||
apt:
|
||||
name: pandoc
|
||||
state: latest
|
||||
|
||||
- name: Install polari
|
||||
apt:
|
||||
name: polari
|
||||
state: latest
|
||||
|
||||
- name: Install python-pip
|
||||
apt:
|
||||
name: python-pip
|
||||
state: latest
|
||||
|
||||
- name: Install python-netaddr
|
||||
apt:
|
||||
name: python-netaddr
|
||||
state: latest
|
||||
|
||||
- name: Install qtcreator
|
||||
apt:
|
||||
name: qtcreator
|
||||
state: latest
|
||||
|
||||
- name: Install redshift-gtk
|
||||
apt:
|
||||
name: redshift-gtk
|
||||
state: latest
|
||||
|
||||
- name: Install remmina
|
||||
apt:
|
||||
name: remmina
|
||||
state: latest
|
||||
|
||||
- name: Install rsync
|
||||
apt:
|
||||
name: rsync
|
||||
state: latest
|
||||
|
||||
- name: Install samba
|
||||
apt:
|
||||
name: samba
|
||||
state: latest
|
||||
|
||||
# - name: Install slack
|
||||
# apt:
|
||||
# name: slack
|
||||
# state: latest
|
||||
|
||||
# - name: Install steam
|
||||
# apt:
|
||||
# name: steam
|
||||
# state: latest
|
||||
|
||||
- name: Install sudo
|
||||
apt:
|
||||
name: sudo
|
||||
state: latest
|
||||
|
||||
- name: Install syncthing
|
||||
apt:
|
||||
name: syncthing
|
||||
state: latest
|
||||
|
||||
- name: Install tarsnap
|
||||
apt:
|
||||
name: tarsnap
|
||||
state: latest
|
||||
|
||||
- name: Install tig
|
||||
apt:
|
||||
name: tig
|
||||
state: latest
|
||||
|
||||
- name: Install tmux
|
||||
apt:
|
||||
name: tmux
|
||||
state: latest
|
||||
|
||||
- name: Install tree
|
||||
apt:
|
||||
name: tree
|
||||
state: latest
|
||||
|
||||
- name: Install vim-gtk3
|
||||
apt:
|
||||
name: vim-gtk3
|
||||
state: latest
|
||||
|
||||
- name: Install vlc
|
||||
apt:
|
||||
name: vlc
|
||||
state: latest
|
||||
|
||||
- name: Install ZSH
|
||||
apt:
|
||||
name: zsh
|
||||
state: latest
|
||||
|
||||
- name: Install ZFS
|
||||
apt:
|
||||
name: zfs-dkms
|
||||
state: latest
|
||||
|
||||
- name: Install ZFS Utils
|
||||
apt:
|
||||
name: zfsutils-linux
|
||||
state: latest
|
||||
|
||||
- include: 'general.yml'
|
@ -1,8 +0,0 @@
|
||||
[slack]
|
||||
name=slack
|
||||
baseurl=https://packagecloud.io/slacktechnologies/slack/fedora/21/x86_64
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
gpgkey=https://packagecloud.io/gpg.key
|
||||
sslverify=1
|
||||
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
|
92
general.yml
Normal file
92
general.yml
Normal file
@ -0,0 +1,92 @@
|
||||
# setup config files
|
||||
|
||||
- name: Clear /etc/vimrc
|
||||
copy:
|
||||
src: etc/vimrc
|
||||
dest: /etc/vimrc
|
||||
mode: 0644
|
||||
force: yes
|
||||
|
||||
- name: Install /etc/sudoers
|
||||
copy:
|
||||
src: etc/sudoers
|
||||
dest: /etc/sudoers
|
||||
mode: 0644
|
||||
force: yes
|
||||
|
||||
# pip packages
|
||||
|
||||
- name: yq - YAML Query
|
||||
pip:
|
||||
name: yq
|
||||
|
||||
|
||||
# services
|
||||
|
||||
- name: Enable SSH Daemon
|
||||
service:
|
||||
name: sshd
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
|
||||
- name: Enable Docker Daemon
|
||||
service:
|
||||
name: docker
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
|
||||
# setup users and groups
|
||||
|
||||
- name: wheel Group
|
||||
group:
|
||||
name: wheel
|
||||
state: present
|
||||
- name: Add gary to wheel
|
||||
user:
|
||||
name: gary
|
||||
groups: wheel
|
||||
append: true
|
||||
|
||||
- name: Docker Group
|
||||
group:
|
||||
name: docker
|
||||
state: present
|
||||
- name: Add gary to docker
|
||||
user:
|
||||
name: gary
|
||||
groups: docker
|
||||
append: true
|
||||
|
||||
- name: libvirt Group
|
||||
group:
|
||||
name: libvirt
|
||||
state: present
|
||||
- name: Add gary to libvirt
|
||||
user:
|
||||
name: gary
|
||||
groups: libvirt
|
||||
append: true
|
||||
|
||||
|
||||
# services
|
||||
|
||||
- name: Enable SSH Daemon
|
||||
service:
|
||||
name: sshd
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
- name: Enable Docker Daemon
|
||||
service:
|
||||
name: docker
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
- name: Enable Syncthing Daemon
|
||||
service:
|
||||
name: syncthing@gary
|
||||
enabled: yes
|
||||
state: started
|
||||
|
315
setup.yml
315
setup.yml
@ -1,315 +0,0 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
|
||||
|
||||
# setup config files
|
||||
|
||||
- name: Clear /etc/vimrc
|
||||
copy:
|
||||
src: etc/vimrc
|
||||
dest: /etc/vimrc
|
||||
mode: 0644
|
||||
force: yes
|
||||
|
||||
- name: Install /etc/sudoers
|
||||
copy:
|
||||
src: etc/sudoers
|
||||
dest: /etc/sudoers
|
||||
mode: 0644
|
||||
force: yes
|
||||
|
||||
- name: Install /etc/yum.repos.d
|
||||
copy:
|
||||
src: etc/yum.repos.d/slack.repo
|
||||
dest: /etc/yum.repos.d/slack.repo
|
||||
mode: 0644
|
||||
force: yes
|
||||
|
||||
|
||||
# setup yum repos
|
||||
|
||||
- name: RPM Fusion - Free
|
||||
dnf:
|
||||
name: 'https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-25.noarch.rpm'
|
||||
state: present
|
||||
|
||||
- name: RPM Fusion - Non-free
|
||||
dnf:
|
||||
name: 'https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-25.noarch.rpm'
|
||||
state: present
|
||||
|
||||
- name: Google Chrome Repository
|
||||
dnf:
|
||||
name: 'https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm'
|
||||
state: present
|
||||
|
||||
- name: ZFS
|
||||
dnf:
|
||||
name: 'http://download.zfsonlinux.org/fedora/zfs-release.fc25.noarch.rpm'
|
||||
state: present
|
||||
|
||||
|
||||
# install packages
|
||||
|
||||
- name: Install Ansible
|
||||
dnf:
|
||||
name: ansible
|
||||
state: latest
|
||||
|
||||
- name: Install bzr
|
||||
dnf:
|
||||
name: bzr
|
||||
state: latest
|
||||
|
||||
- name: Install cargo
|
||||
dnf:
|
||||
name: cargo
|
||||
state: latest
|
||||
|
||||
- name: Install clang
|
||||
dnf:
|
||||
name: clang
|
||||
state: latest
|
||||
|
||||
- name: Install CTags
|
||||
dnf:
|
||||
name: ctags
|
||||
state: latest
|
||||
|
||||
- name: Install Docker
|
||||
dnf:
|
||||
name: docker
|
||||
state: latest
|
||||
|
||||
- name: Install Docker Compose
|
||||
dnf:
|
||||
name: docker-compose
|
||||
state: latest
|
||||
|
||||
- name: Install Dropbox
|
||||
dnf:
|
||||
name: nautilus-dropbox
|
||||
state: latest
|
||||
|
||||
- name: Install Git
|
||||
dnf:
|
||||
name: git
|
||||
state: latest
|
||||
|
||||
- name: Install gnome-tweak-tool
|
||||
dnf:
|
||||
name: gnome-tweak-tool
|
||||
state: latest
|
||||
|
||||
- name: Install Go
|
||||
dnf:
|
||||
name: golang
|
||||
state: latest
|
||||
|
||||
- name: Install Google Chrome
|
||||
dnf:
|
||||
name: google-chrome
|
||||
state: latest
|
||||
|
||||
- name: Install Java
|
||||
dnf:
|
||||
name: java-1.8.0-openjdk
|
||||
state: latest
|
||||
|
||||
- name: Install jq
|
||||
dnf:
|
||||
name: jq
|
||||
state: latest
|
||||
|
||||
- name: Install kernel-devel
|
||||
dnf:
|
||||
name: kernel-devel
|
||||
state: latest
|
||||
|
||||
- name: Install llvm
|
||||
dnf:
|
||||
name: llvm
|
||||
state: latest
|
||||
|
||||
- name: Install libselinux-python
|
||||
dnf:
|
||||
name: libselinux-python
|
||||
state: latest
|
||||
|
||||
- name: Install ninja
|
||||
dnf:
|
||||
name: ninja-build
|
||||
state: latest
|
||||
|
||||
- name: Install npm
|
||||
dnf:
|
||||
name: npm
|
||||
state: latest
|
||||
|
||||
- name: Install pandoc
|
||||
dnf:
|
||||
name: pandoc
|
||||
state: latest
|
||||
|
||||
- name: Install polari
|
||||
dnf:
|
||||
name: polari
|
||||
state: latest
|
||||
|
||||
- name: Install python-netaddr
|
||||
dnf:
|
||||
name: python-netaddr
|
||||
state: latest
|
||||
|
||||
- name: Install Qt 5 Devel
|
||||
dnf:
|
||||
name: qt5-devel
|
||||
state: latest
|
||||
|
||||
- name: Install qtcreator
|
||||
dnf:
|
||||
name: qtcreator
|
||||
state: latest
|
||||
|
||||
- name: Install redshift-gtk
|
||||
dnf:
|
||||
name: redshift-gtk
|
||||
state: latest
|
||||
|
||||
- name: Install remmina
|
||||
dnf:
|
||||
name: remmina
|
||||
state: latest
|
||||
|
||||
- name: Install rsync
|
||||
dnf:
|
||||
name: rsync
|
||||
state: latest
|
||||
|
||||
- name: Install samba
|
||||
dnf:
|
||||
name: samba
|
||||
state: latest
|
||||
|
||||
- name: Install slack
|
||||
dnf:
|
||||
name: slack
|
||||
state: latest
|
||||
|
||||
- name: Install steam
|
||||
dnf:
|
||||
name: steam
|
||||
state: latest
|
||||
|
||||
- name: Install sudo
|
||||
dnf:
|
||||
name: sudo
|
||||
state: latest
|
||||
|
||||
- name: Install tig
|
||||
dnf:
|
||||
name: tig
|
||||
state: latest
|
||||
|
||||
- name: Install tarsnap
|
||||
dnf:
|
||||
name: tarsnap
|
||||
state: latest
|
||||
|
||||
- name: Install tmux
|
||||
dnf:
|
||||
name: tmux
|
||||
state: latest
|
||||
|
||||
- name: Install vim-enhanced
|
||||
dnf:
|
||||
name: vim-enhanced
|
||||
state: latest
|
||||
|
||||
- name: Install vim-X11
|
||||
dnf:
|
||||
name: vim-X11
|
||||
state: latest
|
||||
|
||||
- name: Install vlc
|
||||
dnf:
|
||||
name: vlc
|
||||
state: latest
|
||||
|
||||
- name: Install ZFS
|
||||
dnf:
|
||||
name: zfs
|
||||
state: latest
|
||||
|
||||
- name: Install ZSH
|
||||
dnf:
|
||||
name: zsh
|
||||
state: latest
|
||||
|
||||
|
||||
# pip packages
|
||||
|
||||
- name: yq - YAML Query
|
||||
pip:
|
||||
name: yq
|
||||
|
||||
|
||||
# services
|
||||
|
||||
- name: Enable SSH Daemon
|
||||
service:
|
||||
name: sshd
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
|
||||
- name: Enable Docker Daemon
|
||||
service:
|
||||
name: docker
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
|
||||
# setup users and groups
|
||||
|
||||
- name: Docker Group
|
||||
group:
|
||||
name: docker
|
||||
state: present
|
||||
- name: Add gary to docker
|
||||
user:
|
||||
name: gary
|
||||
groups: docker
|
||||
append: true
|
||||
|
||||
- name: libvirt Group
|
||||
group:
|
||||
name: libvirt
|
||||
state: present
|
||||
- name: Add gary to libvirt
|
||||
user:
|
||||
name: gary
|
||||
groups: libvirt
|
||||
append: true
|
||||
|
||||
|
||||
# services
|
||||
|
||||
- name: Enable SSH Daemon
|
||||
service:
|
||||
name: sshd
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
- name: Enable Docker Daemon
|
||||
service:
|
||||
name: docker
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
|
||||
# disable SELinux
|
||||
|
||||
- name: Disable SELinux
|
||||
selinux:
|
||||
state: disabled
|
Reference in New Issue
Block a user