mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 04:31:13 +01:00
Compare commits
No commits in common. "ba82ebce3c9bad01cad0ae153bd560fb83896c60" and "ab82afa7b9abecb2c157d84e36a13470f4f4dd09" have entirely different histories.
ba82ebce3c
...
ab82afa7b9
@ -1,21 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: "stop and remove discourse container if it exist"
|
- name: recreate discourse
|
||||||
docker_container:
|
|
||||||
name: "{{discourse_application_container}}"
|
|
||||||
state: absent
|
|
||||||
register: container_action
|
|
||||||
failed_when: container_action.failed and 'No such container' not in container_action.msg
|
|
||||||
listen: recreate discourse
|
|
||||||
|
|
||||||
- name: "add central database temporary to {{docker_compose_project_name}}_default"
|
|
||||||
command:
|
|
||||||
cmd: "docker network connect discourse_default central-{{ database_type }}"
|
|
||||||
ignore_errors: true
|
|
||||||
when: enable_central_database | bool
|
|
||||||
listen: recreate discourse
|
|
||||||
|
|
||||||
- name: rebuild discourse
|
|
||||||
command:
|
command:
|
||||||
cmd: "./launcher rebuild {{discourse_application_container}}"
|
cmd: "./launcher rebuild {{discourse_application_container}}"
|
||||||
chdir: "{{discourse_repository_directory}}"
|
chdir: "{{discourse_repository_directory}}"
|
||||||
listen: recreate discourse
|
|
@ -48,12 +48,17 @@
|
|||||||
dest: "{{discourse_repository_directory}}containers/discourse_application.yml"
|
dest: "{{discourse_repository_directory}}containers/discourse_application.yml"
|
||||||
notify: recreate discourse
|
notify: recreate discourse
|
||||||
|
|
||||||
|
- name: "add central database temporary to {{docker_compose_project_name}}_default"
|
||||||
|
command:
|
||||||
|
cmd: "docker network connect discourse_default central-{{ database_type }}"
|
||||||
|
ignore_errors: true
|
||||||
|
when: enable_central_database | bool
|
||||||
|
|
||||||
- name: "destroy container discourse_application"
|
- name: "destroy container discourse_application"
|
||||||
command:
|
command:
|
||||||
cmd: "./launcher destroy discourse_application"
|
cmd: "./launcher destroy discourse_application"
|
||||||
chdir: "{{discourse_repository_directory}}"
|
chdir: "{{discourse_repository_directory}}"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
notify: recreate discourse
|
|
||||||
when: mode_reset | bool
|
when: mode_reset | bool
|
||||||
|
|
||||||
- name: flush, to recreate discourse app
|
- name: flush, to recreate discourse app
|
||||||
|
@ -23,10 +23,5 @@ Configure the role by setting the required variables. These can be set in the pl
|
|||||||
- `database_username`: The username for the database user.
|
- `database_username`: The username for the database user.
|
||||||
- `database_password`: The password for the database user.
|
- `database_password`: The password for the database user.
|
||||||
|
|
||||||
## Execute SQL commands
|
|
||||||
```bash
|
|
||||||
docker exec -it central-mariadb mysql -u root -p
|
|
||||||
```
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
Contributions to this project are welcome. Please submit issues and pull requests with your suggestions.
|
Contributions to this project are welcome. Please submit issues and pull requests with your suggestions.
|
||||||
|
@ -10,11 +10,6 @@ To gain shell access to the application container, run the following command:
|
|||||||
docker-compose exec -it application bash
|
docker-compose exec -it application bash
|
||||||
```
|
```
|
||||||
|
|
||||||
### Clear Cache
|
|
||||||
```bash
|
|
||||||
docker compose exec -it application php artisan cache:clear
|
|
||||||
```
|
|
||||||
|
|
||||||
### Database Access
|
### Database Access
|
||||||
To access the MariaDB instance in the database container, run the following command:
|
To access the MariaDB instance in the database container, run the following command:
|
||||||
```bash
|
```bash
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
src: update-docker.service.j2
|
src: update-docker.service.j2
|
||||||
dest: /etc/systemd/system/update-docker.cymais.service
|
dest: /etc/systemd/system/update-docker.cymais.service
|
||||||
|
|
||||||
- name: "restart update-docker.cymais.service"
|
- name: "reload update-docker.cymais.service"
|
||||||
systemd:
|
systemd:
|
||||||
name: update-docker.cymais.service
|
name: update-docker.cymais.service
|
||||||
state: restarted
|
state: reloaded
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
Loading…
Reference in New Issue
Block a user