Skip to content

Commit

Permalink
add correct subdomain for certs
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Oct 25, 2023
1 parent b59bae3 commit 97c4ee1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions roles/setup_install_nginx/tasks/dotters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
state: directory
mode: '0755'

- name: Install/Update dotters.network SSL
- name: Install/Update rpc.dotters.network SSL
become: true
block:
- name: Git update
Expand Down Expand Up @@ -43,14 +43,14 @@
state: directory
mode: '0755'
loop:
- "/etc/letsencrypt/archive/dotters.network"
- "/etc/letsencrypt/live/dotters.network"
- "/etc/letsencrypt/archive/{{ default_public_dns_dotters }}"
- "/etc/letsencrypt/live/{{ default_public_dns_dotters }}"

# Copy the certificates to the archive folder
- name: Copy SSL certificates to archive directory
ansible.builtin.copy:
src: "/opt/github/dotters-ssl/cert/{{ item }}"
dest: "/etc/letsencrypt/archive/dotters.network/{{ item }}"
dest: "/etc/letsencrypt/archive/{{ default_public_dns_dotters }}/{{ item }}"
mode: '0644'
remote_src: yes
loop:
Expand All @@ -62,8 +62,8 @@
# Create symlinks in the live directory
- name: Create symlinks in live directory
ansible.builtin.file:
src: "/etc/letsencrypt/archive/dotters.network/{{ item }}"
dest: "/etc/letsencrypt/live/dotters.network/{{ item }}"
src: "/etc/letsencrypt/archive/{{ default_public_dns_dotters }}/{{ item }}"
dest: "/etc/letsencrypt/live/{{ default_public_dns_dotters }}/{{ item }}"
state: link
loop:
- cert.pem
Expand Down
10 changes: 5 additions & 5 deletions roles/setup_install_nginx/tasks/ibp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
state: directory
mode: '0755'
loop:
- "/etc/letsencrypt/archive/ibp.network"
- "/etc/letsencrypt/live/ibp.network"
- "/ets/letsencrypt/archive/{{ default_public_dns_ibp }}"
- "/etc/letsencrypt/live/{{ default_public_dns_ibp }}"

# Copy the certificates to the archive folder
- name: Copy SSL certificates to archive directory
ansible.builtin.copy:
src: "/opt/github/ibp-ssl/cert/{{ item }}"
dest: "/etc/letsencrypt/archive/ibp.network/{{ item }}"
dest: "/etc/letsencrypt/archive/{{ default_public_dns_ibs }}/{{ item }}"
mode: '0644'
remote_src: yes
loop:
Expand All @@ -62,8 +62,8 @@
# Create symlinks in the live directory
- name: Create symlinks in live directory
ansible.builtin.file:
src: "/etc/letsencrypt/archive/ibp.network/{{ item }}"
dest: "/etc/letsencrypt/live/ibp.network/{{ item }}"
src: "/etc/letsencrypt/archive/{{ default_public_dns_ibp }}/{{ item }}"
dest: "/etc/letsencrypt/live/{{ default_public_dns_ibp }}/{{ item }}"
state: link
loop:
- cert.pem
Expand Down

0 comments on commit 97c4ee1

Please sign in to comment.