Initial commit - Install server + agent.

This commit is contained in:
2021-09-17 08:37:23 +02:00
parent 1e984d21be
commit 891ea2a47b
6 changed files with 77 additions and 7 deletions

View File

@@ -4,7 +4,9 @@
hosts: all
become: true
# Set default variables (if any)
vars: []
vars:
server_host: "portainer-server"
domain_suffix: "laurii.lan"
# Use pre_tasks when you need a setup to be executed each time you run converge.
# Otherwise, 'prepare.yml' is the way to go
@@ -15,5 +17,5 @@
# name: "docker_repository"
roles:
- role: ansible-clean-vagrant
- role: docker.portainer
become: true

View File

@@ -8,14 +8,24 @@ driver:
provider:
name: virtualbox
platforms:
- name: ubuntu-2004
- name: portainer-server
box: generic/ubuntu2004
memory: 8192
cpus: 4
instance_raw_config_args:
# Forward the necessary ports for your app (if any)
#
- "vm.network 'forwarded_port', guest: 1880, host: 1880"
- "vm.network 'forwarded_port', guest: 8000, host: 8000"
- "vm.network 'forwarded_port', guest: 9000, host: 9000"
- name: portainer-agent
box: generic/ubuntu2004
memory: 8192
cpus: 4
instance_raw_config_args:
# Forward the necessary ports for your app (if any)
#
- "vm.network 'forwarded_port', guest: 9001, host: 9001"
provisioner:
name: ansible

View File

@@ -11,8 +11,11 @@
apt:
name: ansible
state: present
autoclean: yes
autoremove: yes
update_cache: yes
become: true
# Install docker (and update repos)
#
- name: "Set up docker on the machine"