about summary refs log tree commit diff
path: root/certs.yml
diff options
context:
space:
mode:
Diffstat (limited to 'certs.yml')
-rw-r--r--certs.yml26
1 files changed, 15 insertions, 11 deletions
diff --git a/certs.yml b/certs.yml
index 6f747ba..7a9b036 100644
--- a/certs.yml
+++ b/certs.yml
@@ -1,22 +1,26 @@
 ---
 - name: Certbot
   hosts: tamriel
-  remote_user: ansible_worker
+  remote_user: root
   tasks:
   - synchronize:
       src: ~/.ovh/
       dest: ~/ovh
-  - docker_container:
-      image: certbot/dns-ovh
+  - containers.podman.podman_container:
+      image: docker.io/certbot/dns-ovh
       name: certbot-ovh
-      auto_remove: true
-      cleanup: true
-      detach: false
+      #rm: true
+      #detach: false
       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 59 --dns-ovh-credentials /opt/ovh/credentials.ini -d "dybiec.info,*.dybiec.info"
-  - file:
-      path: ~/ovh
-      state: absent
+        - /var/log/letsencrypt:/var/log/letsencrypt:rw
+        - /home/pawel/ovh:/opt/ovh:ro
+      network: slirp4netns
+      command: certonly --dns-ovh --dns-ovh-propagation-seconds 59 --dns-ovh-credentials /opt/ovh/credentials.ini -d dybiec.info,*.dybiec.info --agree-tos -m pawel+letsencrypt@dybiec.info -v
+#  - containers.podman.podman_container:
+#      name: certbot-ovh
+#      state: absent
+#  - file:
+#      path: ~/ovh
+#      state: absent