diff --git a/playbooks/code-deploy.yml b/playbooks/code-deploy.yml index 93c70cb..85d10fb 100644 --- a/playbooks/code-deploy.yml +++ b/playbooks/code-deploy.yml @@ -23,11 +23,13 @@ - name: Kill and remove container command: docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) - when: wrestlingdev_running != "" + #when: wrestlingdev_running != "" + ignore_errors: yes - name: Start docker container command: docker run -h {{ansible_hostname}} --name wrestlingdev-web -d --restart=always --env-file /root/prod.env -v /srv/docker/apache2/logs:/var/log/apache2 -v /etc/localtime:/etc/localtime -p 80:80 -p 443:443 wrestlingdev-web - when: wrestlingdev_running == "" + #when: wrestlingdev_running == "" + ignore_errors: yes - hosts: worker remote_user: root @@ -50,8 +52,10 @@ - name: Kill and remove container command: docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) - when: wrestlingdev_running != "" + #when: wrestlingdev_running != "" + ignore_errors: yes - name: Start docker container command: docker run -h {{ansible_hostname}} --name wrestlingdev-worker -d --restart=always --env-file /root/prod.env -v /etc/localtime:/etc/localtime wrestlingdev-worker bundle exec rake jobs:work RAILS_ENV=production - when: wrestlingdev_running == "" + #when: wrestlingdev_running == "" + ignore_errors: yes diff --git a/roles/rails/tasks/web.yml b/roles/rails/tasks/web.yml index 145224a..73f3cfc 100644 --- a/roles/rails/tasks/web.yml +++ b/roles/rails/tasks/web.yml @@ -14,8 +14,10 @@ - name: Kill and remove container command: docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) - when: wrestlingdev_running != "" + #when: wrestlingdev_running != "" + ignore_errors: yes - name: Start docker container command: docker run -h {{ansible_hostname}} --name wrestlingdev-web -d --restart=always --env-file /root/prod.env -v /srv/docker/apache2/logs:/var/log/apache2 -v /etc/localtime:/etc/localtime -p 80:80 -p 443:443 wrestlingdev-web - when: wrestlingdev_running == "" + #when: wrestlingdev_running == "" + ignore_errors: yes diff --git a/roles/rails/tasks/worker.yml b/roles/rails/tasks/worker.yml index 4b471ba..2260568 100644 --- a/roles/rails/tasks/worker.yml +++ b/roles/rails/tasks/worker.yml @@ -14,8 +14,10 @@ - name: Kill and remove container command: docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) - when: wrestlingdev_running != "" + #when: wrestlingdev_running != "" + ignore_errors: yes - name: Start docker container command: docker run -h {{ansible_hostname}} --name wrestlingdev-worker -d --restart=always --env-file /root/prod.env -v /etc/localtime:/etc/localtime wrestlingdev-worker bundle exec rake jobs:work RAILS_ENV=production - when: wrestlingdev_running == "" + #when: wrestlingdev_running == "" + ignore_errors: yes