aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/docker_images/tasks/tg.yaml
blob: f4184d43d7a48746a1a477edab1bc9f24d7e61d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
# file: tasks/tg.yaml

- name: "Create a Directory For Docker Images"
  ansible.builtin.file:
    path: "/opt/csit-docker-images/"
    state: "directory"
    mode: 0755
  tags:
    - docker-base

- name: "Copy Build Items"
  ansible.builtin.copy:
    src: "{{ item }}"
    dest: "/opt/csit-docker-images/{{ item }}"
    owner: "root"
    group: "root"
    mode: 0755
  with_items:
    - "tg/"
  tags:
    - docker-base

- name: "Template Compose File"
  ansible.builtin.template:
    src: "{{ item }}.j2"
    dest: "/opt/csit-docker-images/{{ item }}"
    owner: "root"
    group: "root"
    mode: 0755
  with_items:
    - "docker-compose-tg.yaml"
  tags:
    - docker-tg

- name: "Start csit-initialize-docker-tg.service"
  ansible.builtin.copy:
    src: "files/csit-initialize-docker-tg.service"
    dest: "/etc/systemd/system/"
    owner: "root"
    group: "root"
    mode: 0644
  notify:
    - "Start csit-initialize-docker-tg.service"
  tags:
    - docker-tg

- meta: flush_handlers