Skip to content

Commit

Permalink
Fix prepare.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ruaridhg committed Dec 2, 2024
1 parent 710dec8 commit c85e8ee
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions roles/nginx/molecule/resources/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,15 @@
ansible.builtin.file:
path: /etc/nginx/certs
state: directory
mode: "0700"
owner: nginx
group: nginx
owner: root
group: root
mode: "0644"

- name: Generate test private key
ansible.builtin.command:
cmd: openssl genrsa -out /etc/nginx/certs/test.key 2048
args:
creates: /etc/nginx/certs/test.key

- name: Generate test certificate
ansible.builtin.command:
Expand All @@ -64,9 +70,3 @@
/etc/nginx/certs/test.crt -days 365 -subj '/CN=example.com'
args:
creates: /etc/nginx/certs/test.crt

- name: Generate test private key
ansible.builtin.command:
cmd: openssl genrsa -out /etc/nginx/certs/test.key 2048
args:
creates: /etc/nginx/certs/test.key

0 comments on commit c85e8ee

Please sign in to comment.