about summary refs log tree commit diff
path: root/dns.yml
diff options
context:
space:
mode:
authorPaweł Dybiec <pawel.to.malpa@gmail.com>2019-02-03 14:35:05 +0100
committerPaweł Dybiec <pawel.to.malpa@gmail.com>2019-02-03 14:35:05 +0100
commit2406114b41265a9995fc76e20d63c85f4ce81492 (patch)
tree42c5f4df6eef18ddb642d21142dab3aafdf01f2e /dns.yml
parentSample services (diff)
Certificate retrieval
Diffstat (limited to 'dns.yml')
-rw-r--r--dns.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/dns.yml b/dns.yml
new file mode 100644
index 0000000..e8a81e0
--- /dev/null
+++ b/dns.yml
@@ -0,0 +1,20 @@
+---
+  - name: Certbot
+    hosts: tamriel
+    remote_user: ansible_worker
+    tasks:
+    - synchronize:
+        src: ~/.ovh/
+        dest: ~/ovh
+    - docker_container:
+        image: certbot/dns-ovh
+        name: certbot-ovh
+        #auto_remove: true
+        volumes:
+          - /etc/letsencrypt:/etc/letsencrypt:rw
+          - /var/lib/letsencrypt:/var/lib/letsencrypt:rw
+          - /home/ansible_worker/ovh:/opt/ovh:ro
+        command: certonly --dns-ovh --dns-ovh-propagation-seconds 60 --dns-ovh-credentials /opt/ovh/credentials.ini -d "dybiec.info,*.dybiec.info"
+    - file:
+        path: ~/ovh
+        state: absent