Skip to content
Snippets Groups Projects

WIP: add acmebot role

1 file
+ 7
13
Compare changes
  • Side-by-side
  • Inline
@@ -6,35 +6,29 @@
dest: "/root/.ssh/{{ item.deploy_key_name }}"
owner: root
group: root
mode: 0600
mode: '0600'
when:
- item.deploy_key is defined
- item.deploy_key != ''
- item.deploy_key|bool
- item.deploy_key_name is defined
- item.deploy_key_name != ''
- item.deploy_key_name|bool
with_items: "{{ static_websites }}"
tags:
- static-website
# https://github.com/ansible/ansible/issues/27699
- name: ensure git module is able to clone
command: mount -o remount,exec /tmp
tags:
- static-website
# https://github.com/ansible/ansible/issues/30064#issuecomment-487149251
- name: ensure we have up-to-date websites
git:
repo: "{{ item.git_url }}"
dest: "{{ item.path }}"
# yamllint disable-line rule:line-length
key_file: "/root/.ssh/{{ item.deploy_key_name|default(None, true) or omit }}"
version: "{{ item.git_version|default('HEAD') }}"
umask: "{{ item.umask|default('022') }}"
with_items: "{{ static_websites }}"
tags:
- static-website
- name: ensure git module is not able to clone anymore
command: mount -o remount,noexec /tmp
environment:
TMPDIR: /root/.ansible/tmp
tags:
- static-website
Loading