Skip to content
Snippets Groups Projects
Commit 2f045fc7 authored by Lars Beckers's avatar Lars Beckers
Browse files

static-website: fix linter issues

parent 1e1d55f2
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment