feat: init commit
This commit is contained in:
commit
0289360eb6
16 changed files with 449 additions and 0 deletions
39
tasks/cuyper-hook.yml
Normal file
39
tasks/cuyper-hook.yml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
|
||||
- name: Create cuyper directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ cuyper__cuyper_instance_path }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Clone cuyper-hook repository
|
||||
ansible.builtin.git:
|
||||
repo: ssh://git@git.nsnm.net:222/nsnm/cupyer-hook.git
|
||||
dest: "{{ cuyper__cuyper_instance_path }}/cuyper-hook/"
|
||||
version: main
|
||||
update: yes
|
||||
|
||||
- name: create env on cuyper-hook
|
||||
ansible.builtin.template:
|
||||
src: templates/env.cuyper-hook.j2
|
||||
dest: "{{ cuyper__cuyper_instance_path }}/.env"
|
||||
|
||||
- name: create nginx hook file on loadbalancer
|
||||
ansible.builtin.template:
|
||||
src: templates/config.cupyer-hook.j2
|
||||
dest: "{{ cuyper__cuyper_config_file }}"
|
||||
|
||||
- name: Touch vhosts
|
||||
ansible.builtin.file:
|
||||
path: "{{ cuyper__cuyper_vhosts_file }}"
|
||||
state: touch
|
||||
|
||||
- name: Copy docker-compose.yml
|
||||
ansible.builtin.copy:
|
||||
src: templates/docker-compose.cupyer-hook.j2
|
||||
dest: "{{ cuyper__cuyper_instance_path }}docker-compose.yml"
|
||||
mode: '0644'
|
||||
|
||||
- name: Start cuyper service
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ cuyper__cuyper_instance_path }}"
|
||||
state: present
|
||||
Loading…
Add table
Add a link
Reference in a new issue