summaryrefslogtreecommitdiff
path: root/roles/ick-controller/tasks/main.yml
blob: 1ebc4d794720ba7f65089a0f3dbb706544bcdf47 (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
- name: install controller packages
  apt:
    name: "{{ item }}"
  with_items:
    - "{{ ci_prefix }}ick2"
    - curl
    - psmisc
    - less
    - locales-all
    - systemd-container

- name: create config dirs
  file:
    state: directory
    path: "{{ item }}"
    owner: root
    group: root
    mode: 0755
  with_items:
    - /etc/ick

- name: install controller config
  template:
    src: controller.yaml.j2
    dest: /etc/ick/controller.yaml
    owner: root
    group: root
    mode: 0644

- name: enable and start units
  systemd:
    daemon_reload: yes
    name: "{{ item }}"
    state: restarted
    enabled: yes
  with_items:
    - ick-controller