aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/tg/tasks/main.yaml
blob: 1893fb4a9330620c30dccd1a41fbda7d8ba3cccf (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
---
# file: roles/tg/tasks/main.yaml

- name: Conf - csit-initialize-docker-tg.sh
  ansible.builtin.copy:
    src: "files/csit-initialize-docker-tg.sh"
    dest: "/usr/local/bin/csit-initialize-docker-tg.sh"
    owner: "root"
    group: "root"
    mode: 0744
  when:
    - docker_tg is defined
  tags:
    - tg-conf-docker

- name: Conf - 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"
  when:
    - docker_tg is defined
  tags:
    - tg-conf-docker

- meta: flush_handlers