Skip to content

Commit

Permalink
Remove certs from prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
ruaridhg committed Dec 3, 2024
1 parent c85e8ee commit a9d0c00
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions roles/nginx/molecule/resources/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,3 @@
ansible.builtin.systemd:
name: gunicorn
state: restarted

- name: Add test certificates
hosts: all
become: true
tasks:
- name: Create the directory for Nginx certificates
ansible.builtin.file:
path: /etc/nginx/certs
state: directory
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:
cmd:
openssl req -new -x509 -key /etc/nginx/certs/test.key -out
/etc/nginx/certs/test.crt -days 365 -subj '/CN=example.com'
args:
creates: /etc/nginx/certs/test.crt

0 comments on commit a9d0c00

Please sign in to comment.