Switched to yml vars files

gitea-rework
Jef Roosens 2021-12-23 12:01:28 +01:00
parent 51a82d1df2
commit b972819678
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
5 changed files with 26 additions and 5 deletions

View File

@ -0,0 +1,3 @@
[defaults]
vault_password_file = .ansible-password
inventory = rb.hosts.ini

View File

@ -0,0 +1,18 @@
---
ansible_ssh_user: debian
ansible_ssh_port: 2222
ansible_become_pass: !vault |
$ANSIBLE_VAULT;1.1;AES256
32636639346333343636656237353437333639376233613234663535306533306131323764633664
3735373364666336653137323233303135303961303462320a383635643865666330373438616535
65303939656336613730326363643133633834393066326163353038613230343039626666303261
3231376239656431300a383866636562613636383339396132316237323664383964383838653836
6432
portainer:
version: 2.11.0
domain: dock.rustybever.be
traefik:
version: 2.5.5
acme_email: roosensjef@gmail.com

View File

@ -3,7 +3,7 @@ version: '3.2'
services: services:
app: app:
image: 'portainer/portainer-ce:{{ portainer_version }}-alpine' image: 'portainer/portainer-ce:{{ portainer.version }}-alpine'
command: '-H tcp://tasks.agent:9001 --tlsskipverify' command: '-H tcp://tasks.agent:9001 --tlsskipverify'
deploy: deploy:
@ -14,7 +14,7 @@ services:
- node.role == manager - node.role == manager
labels: labels:
- 'traefik.enable=true' - 'traefik.enable=true'
- 'traefik.http.routers.portainer.rule=Host(`{{ portainer_domain }}`)' - 'traefik.http.routers.portainer.rule=Host(`{{ portainer.domain }}`)'
- 'traefik.http.routers.portainer.service=portainer' - 'traefik.http.routers.portainer.service=portainer'
- 'traefik.http.services.portainer.loadbalancer.server.port=9000' - 'traefik.http.services.portainer.loadbalancer.server.port=9000'
- 'traefik.http.routers.portainer.tls=true' - 'traefik.http.routers.portainer.tls=true'
@ -30,7 +30,7 @@ services:
- '8000:8000' - '8000:8000'
agent: agent:
image: 'portainer/agent:{{ portainer_version }}-alpine' image: 'portainer/agent:{{ portainer.version }}-alpine'
deploy: deploy:
mode: global mode: global

View File

@ -3,7 +3,7 @@ version: '3'
services: services:
app: app:
image: 'traefik:{{ traefik_version }}' image: 'traefik:{{ traefik.version }}'
deploy: deploy:
mode: replicated mode: replicated

View File

@ -19,7 +19,7 @@ providers:
certificatesResolvers: certificatesResolvers:
letsEncrypt: letsEncrypt:
acme: acme:
email: "{{ letsencrypt_email }}" email: "{{ traefik.acme_email }}"
storage: "/etc/traefik/acme/acme.json" storage: "/etc/traefik/acme/acme.json"
httpChallenge: httpChallenge:
entryPoint: web entryPoint: web