Skip to content

Commit

Permalink
Merge pull request #2367 from nordic-institute/XRDDEV-2707
Browse files Browse the repository at this point in the history
chore: As a Security Auditor I want to have an environment to test ag…
  • Loading branch information
mikkbachmann authored Oct 14, 2024
2 parents 2b49ea2 + ce89966 commit 350d1c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ansible/roles/xroad-ca/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
items:
- "python3"
- "acl"
- "nginx-light"
- "nginx-core"
- "openssl"
- "python3-pip"
- "uwsgi"
Expand All @@ -23,6 +23,7 @@
get_url:
url: "https://github.com/grindsa/acme2certifier/releases/download/{{ a2c_ver }}/acme2certifier_{{ a2c_ver }}-1_all.deb"
dest: /tmp/
when: (ansible_distribution_release == "jammy" or ansible_distribution_release == "noble")

- name: group ca
group:
Expand Down Expand Up @@ -155,7 +156,9 @@
chdir: "/home/ca/CA"
become: true
become_user: root
when: stat_result.stat.exists == False
when:
- stat_result.stat.exists == False
- (ansible_distribution_release == "jammy" or ansible_distribution_release == "noble")


- name: copy acme2certifier conf
Expand All @@ -166,6 +169,7 @@
owner: "www-data"
with_items:
- "acme2certifier/acme_srv.cfg"
when: (ansible_distribution_release == "jammy" or ansible_distribution_release == "noble")

- name: remove obsolete files
file:
Expand Down

0 comments on commit 350d1c7

Please sign in to comment.