Compare commits

...

3 Commits

3 changed files with 42 additions and 1 deletions

View File

@ -93,7 +93,7 @@ services:
container_name: calibre
ports:
- "8219:8080"
- "8220:8081"
- "8081:8081"
restart: unless-stopped
environment:
PUID: 1000

View File

@ -9,3 +9,6 @@ all:
dev:
hosts:
localhost:
onprem:
hosts:
hatchery:

View File

@ -0,0 +1,38 @@
- hosts: onprem
remote_user: josiah
gather_facts: false
become: yes
vars:
create_user: josiah
sys_packages: [ 'curl', 'vim', 'git', '', 'emacs', 'build-essential' ]
tasks:
- name: Install aptitude using apt
apt: name=aptitude state=latest update_cache=yes force_apt_get=yes
- name: Install required system packages for docker install
apt: name={{ item }} state=latest update_cache=yes
loop: [ 'apt-transport-https', 'ca-certificates', 'software-properties-common' ]
- name: Add Docker GPG apt Key
apt_key:
url: https://download.docker.com/linux/debian/gpg
state: present
- name: Add Docker Repository
apt_repository:
repo: deb https://download.docker.com/linux/ubuntu bionic stable
state: present
- name: Update apt
apt: update_cache=yes
- name: Install required system packages
apt: name={{ sys_packages }} state=latest
- name: add 'josiah' to docker group
user:
name='josiah'
groups=docker
append=yes