Skip to content

Commit 1dabb38

Browse files
committed
enabled specifying portainer version
1 parent ac57e9a commit 1dabb38

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

defaults/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,13 @@ perun_sync_users:
738738
######################
739739
# You do not need to modify values below
740740
######################
741+
742+
# https://www.postgresql.org/support/versioning/
741743
perun_postgresql_version: 16
742744

745+
# https://github.com/portainer/portainer/releases
746+
perun_portainer_version: latest
747+
743748
# directory with SSL/TLS certificates and keys
744749
perun_certs_dir: "/etc/perun/ssl"
745750
perun_certificate_file: "{{ perun_certs_dir }}/hostcert.pem"

tasks/perun_docker.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,17 @@
100100
- name: "install portainer container"
101101
docker_container:
102102
name: portainer
103-
image: "portainer/portainer-ce:latest"
103+
image: "portainer/portainer-ce:{{ perun_portainer_version }}"
104104
pull: yes
105105
restart_policy: always
106106
command: "-H unix:///var/run/docker.sock --http-disabled --sslcert {{ perun_certificate_fullchain_file }} --sslkey {{ perun_certificate_key_file }} --admin-password-file {{ perun_certs_dir }}/portainer_admin_password.txt"
107107
ports:
108108
- 9000:9443
109109
default_host_ip: ''
110110
mounts: "{{ portainer_mounts }}"
111-
container_default_behavior: no_defaults
111+
image_name_mismatch: recreate
112+
comparisons:
113+
'*': strict
112114
register: portainer_container
113115

114116
- name: "login into gitlab docker registry"

0 commit comments

Comments
 (0)