Skip to content

Commit

Permalink
Merge pull request #33 from valiantlynx:working
Browse files Browse the repository at this point in the history
s
  • Loading branch information
valiantlynx authored Apr 6, 2024
2 parents f93fb94 + deccc7e commit d0d1937
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions ansible/roles/docker_deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
src: "docker/docker-compose.yaml.j2"
dest: "{{ ansible_env.HOME }}/docker-compose.yml"
mode: "0644"
vars:
docker_hub_username: "{{ lookup('env', 'DOCKER_HUB_USERNAME') }}"
docker_hub_password: "{{ lookup('env', 'DOCKER_HUB_PASSWORD') }}"

- name: Generate Docker Compose file for certbot with dynamic domain names
ansible.builtin.template:
Expand All @@ -49,12 +46,6 @@
dest: "{{ ansible_env.HOME }}/nginx/nginx.conf"
mode: "0644"

- name: Stop existing Docker Compose services
command: docker-compose down --remove-orphans
become: true
args:
chdir: "{{ ansible_env.HOME }}/"

- name: Create 'monitoring' network if it does not exist
become: true # Escalate if necessary for Docker commands
ansible.builtin.command: docker network create monitoring
Expand Down Expand Up @@ -127,7 +118,7 @@
special_time: "hourly"
job: "cd {{ ansible_env.HOME }} && docker system prune -a -f"
user: ubuntu

- name: Schedule automated certificate renewal
ansible.builtin.cron:
name: "Renew Let's Encrypt certificates"
Expand Down

0 comments on commit d0d1937

Please sign in to comment.