mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-25 06:01:04 +01:00
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
---
|
|
|
|
# Necessary for building: https://chat.openai.com/share/99d258cc-294b-4924-8eef-02fe419bb838
|
|
- name: install which
|
|
pacman:
|
|
name: which
|
|
state: present
|
|
|
|
- name: "include docker-compose-common.yml"
|
|
include_tasks: docker-compose-common.yml
|
|
|
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
|
include_tasks: nginx-docker-proxy-domain.yml
|
|
loop: "{{ domains }}"
|
|
loop_control:
|
|
loop_var: domain
|
|
|
|
- name: "create {{docker_compose_instance_directory}}"
|
|
file:
|
|
path: "{{docker_compose_instance_directory}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: checkout repository
|
|
ansible.builtin.shell: git checkout .
|
|
become: true
|
|
args:
|
|
chdir: "{{docker_compose_instance_directory}}"
|
|
ignore_errors: true
|
|
|
|
- name: pull docker repository
|
|
git:
|
|
repo: "https://github.com/discourse/discourse_docker.git"
|
|
dest: "{{docker_compose_instance_directory}}"
|
|
update: yes
|
|
notify: recreate discourse
|
|
become: true
|
|
ignore_errors: true
|
|
|
|
- name: set chmod 700 for {{docker_compose_instance_directory}}containers
|
|
ansible.builtin.file:
|
|
path: "{{docker_compose_instance_directory}}/containers"
|
|
mode: '700'
|
|
state: directory
|
|
|
|
- name: "copy configuration to {{docker_compose_instance_directory}}containers/app.yml"
|
|
template:
|
|
src: app.yml.j2
|
|
dest: "{{docker_compose_instance_directory}}containers/app.yml"
|
|
notify: recreate discourse |