WIP test first role
This commit is contained in:
parent
35cd457986
commit
986535882a
10
local.yml
10
local.yml
@ -16,13 +16,3 @@
|
||||
- lxchost
|
||||
vars:
|
||||
dominio: agofer.net
|
||||
|
||||
- hosts: nginx
|
||||
gather_facts: yes
|
||||
roles:
|
||||
- nginxproxy
|
||||
vars:
|
||||
dominio: agofer.net
|
||||
ansible_python_interpreter: python3
|
||||
ansible_connection: lxd
|
||||
ansible_host: local:nginx
|
||||
|
||||
@ -5,27 +5,3 @@
|
||||
|
||||
- import_playbook: lxd_profile.yml
|
||||
|
||||
- name: Launch LXD container
|
||||
lxd_container:
|
||||
name: '{{ container }}'
|
||||
ephemeral: no
|
||||
profiles: ['odoo14']
|
||||
source:
|
||||
type: image
|
||||
mode: pull
|
||||
server: https://cloud-images.ubuntu.com/releases
|
||||
protocol: simplestreams
|
||||
fingerprint: 39a93d0b3552
|
||||
|
||||
# alias: ubuntu/20.04
|
||||
|
||||
- name: Announce expected container deployment time
|
||||
debug:
|
||||
msg:
|
||||
- 'El nuevo contenedor {{ container }} ha sido lanzado.'
|
||||
- 'El tiempo de carga de Odoo es de 3.5 horas aproximadamente.'
|
||||
|
||||
- name: Register DNS CNAME alias using Dreamhost API
|
||||
uri:
|
||||
url: 'https://api.dreamhost.com/?key={{ apikey }}&cmd=dns-add_record&record={{ container }}.{{ dominio }}&type=CNAME&value=externo.{{ dominio }}.'
|
||||
|
||||
|
||||
@ -22,9 +22,9 @@
|
||||
name: nginx
|
||||
state: restarted
|
||||
|
||||
- name: Request Let's Encrypt certificate
|
||||
command:
|
||||
cmd: 'certbot --redirect --agree-tos -m {{ email }} --hsts --nginx -n -d {{ container }}.{{ dominio }}'
|
||||
#-name: Request Let's Encrypt certificate
|
||||
# command:
|
||||
# cmd: 'certbot --redirect --agree-tos -m {{ email }} --hsts --nginx -n -d {{ container }}.{{ dominio }}'
|
||||
|
||||
# Certbot doesn't add proxy_protocol.
|
||||
# (https://github.com/certbot/certbot/issues/8057)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user