Initial commit - Install server + agent.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user