diff --git a/all.yml b/all.yml index e39826c..a44b664 100644 --- a/all.yml +++ b/all.yml @@ -35,5 +35,5 @@ vars: cert: name: "{{ acme_domain|default(inventory_hostname) }}" - alias: "{{ acme_alias|default([]) }}" + alias: "{{ acme_alias|default(cname|default([])) }}" renewal_hook: "{{ renewal_hook }}" \ No newline at end of file diff --git a/inventory.yml b/inventory.yml index 7c6f5e1..28cd9e3 100644 --- a/inventory.yml +++ b/inventory.yml @@ -79,6 +79,11 @@ lxc: ansible_host: 10.255.3.18 resources: { cpu: 4, ram: 2048, swap: 1024, disk: 32 } + monica.vm.chapo.li: + ansible_host: 10.255.3.19 + resources: { cpu: 1, ram: 1024, swap: 1024, disk: 32 } + cname: [ monica2.vm.chapo.li ] + vars: ansible_user: root @@ -107,6 +112,8 @@ acme: hosts: status.vm.chapo.li: renewal_hook: systemctl restart nginx + monica.vm.chapo.li: + renewal_hook: systemctl restart nginx docker: hosts: @@ -121,6 +128,7 @@ docker: sharkey.vm.chapo.li: status.vm.chapo.li: action.vm.chapo.li: + monica.vm.chapo.li: backup: hosts: