Skip to content

Commit 001b548

Browse files
authored
Merge pull request #2 from T-Systems-MMS/workflows
Workflows
2 parents 436fcf8 + 7239633 commit 001b548

11 files changed

Lines changed: 18 additions & 13 deletions

File tree

.ansible-lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ skip_list:
22
- '204'
33
- '301'
44
- '306'
5+
- '701'

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
- stable-2.9
1818
- stable-2.10
1919
python:
20-
- 2.7
2120
- 3.7
2221
- 3.8
2322
exclude:
@@ -59,4 +58,6 @@ jobs:
5958

6059
- name: Run Linting
6160
uses: ansible/ansible-lint-action@master
62-
with: ./ansible_collections/t_systems_mms/letsencrypt/roles
61+
with:
62+
targets: ansible_collections/t_systems_mms/letsencrypt/roles/letsencrypt
63+
args: "-c ansible_collections/t_systems_mms/letsencrypt/.ansible-lint"
File renamed without changes.

roles/letsencrypt/meta/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
collections:
3+
- t_systems_mms.letsencrypt
4+
galaxy_info:
5+
author: t_systems_mms
6+
description: Issue certificates from Let's Encrypt via dns- or http-challenge.
7+
license: GPLv3
8+
min_ansible_version: 2.9
9+
galaxy_tags:
10+
- letsencrypt

roles/tasks/http-challenge.yml renamed to roles/letsencrypt/tasks/http-challenge.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
copy:
3939
dest: "acme-challenge.{{ domain.common_name }}"
4040
content: "{{ challenge['challenge_data'][domain.common_name]['http-01']['resource_value'] }}"
41+
owner: "{{ letsencrypt_conf_dir_user }}"
42+
group: "{{ letsencrypt_conf_dir_group }}"
4143
register: challenge_file
4244
when:
4345
# only runs if the challenge is run the first time, because then there is challenge_data
@@ -47,6 +49,8 @@
4749
copy:
4850
dest: "acme-challenge.{{ item }}"
4951
content: "{{ challenge['challenge_data'][item]['http-01']['resource_value'] }}"
52+
owner: "{{ letsencrypt_conf_dir_user }}"
53+
group: "{{ letsencrypt_conf_dir_group }}"
5054
loop: "{{ domain.subject_alt_name }}"
5155
when:
5256
- domain.subject_alt_name is defined

roles/meta/main.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)