Substitute LXD image fingerprint for alias

This commit is contained in:
Jorge Enrique Gómez Gómez 2020-09-29 23:35:58 -05:00
parent f2e76af503
commit ab9c0a3e12
3 changed files with 11 additions and 3 deletions

View File

@ -6,7 +6,10 @@ To be used in the LXD host (currently **servidora1e0.bogota.agofer**), via
```sh ```sh
ansible-pull \ ansible-pull \
-U ssh://git@gitea.agofer.net:22001/jegomez/ansible-role-launch-container.git \ -U ssh://git@gitea.agofer.net:22001/jegomez/ansible-role-launch-container.git \
-e nombre=<newodoocontainer> -e nombre=<newodoocontainer> \
--vault-password-file ~/.vault_pass.txt \
-i hosts
``` ```
* Launches a new container called **newodoocontainer**. * Launches a new container called **newodoocontainer**.
@ -16,3 +19,6 @@ ansible-pull \
* Requests an SSL certificate to _Let's Encrypt_ for the new domain, storing * Requests an SSL certificate to _Let's Encrypt_ for the new domain, storing
the certificates in the Nginx Proxy container. the certificates in the Nginx Proxy container.
The file ~/.vault_pass.txt contains the cleartext password to the vault
file where the Dreamhost API key and the Gitea deploy keys are stored
encrypted.

View File

@ -1,5 +1,5 @@
- hosts: localhost - hosts: localhost
gather_facts: no gather_facts: yes
tasks: tasks:
- name: Verify correct usage of parameter - name: Verify correct usage of parameter

View File

@ -15,7 +15,9 @@
mode: pull mode: pull
server: https://cloud-images.ubuntu.com/releases server: https://cloud-images.ubuntu.com/releases
protocol: simplestreams protocol: simplestreams
alias: ubuntu/18.04 fingerprint: 39a93d0b3552
# alias: ubuntu/18.04
- name: Register DNS CNAME alias using Dreamhost API - name: Register DNS CNAME alias using Dreamhost API
shell: shell: