Patching Dec 9, 2021 6-7a CST- All GitLab services may be unavailable for 5-10 minutes

smrt.yml 1.29 KB
Newer Older
Alexander Withers's avatar
Alexander Withers committed
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
---

# install cifv3
- synchronize: mode=pull src=bearded-avenger-deploymentkit dest=/usr/local/src
#- name: untar cifv3
#  command: tar vxf bearded-avenger-deploymentkit.tar
#  args:
#    chdir: "/usr/local/src"
- name: deploy cifv3
  command: /bin/bash easybutton.sh
  args:
    chdir: "/usr/local/src/bearded-avenger-deploymentkit"

- name: systemd env file
  template: src=csirtg-cef.env.j2 dest=/etc/csirtg-cef.env mode=0660 owner="{{ app_user }}" group="{{ app_user }}" mode=644

- name: csirtg-cef-zmq systemd services
  template: src=csirtg-cef-zmq.service.j2 dest=/etc/systemd/system/csirtg-cef-zmq.service owner=root group=root mode=0644
  notify:
    - reload systemd
  when: (ansible_distribution == "CentOS")

- name: csirtg-cef-zmq systemd services
  template: src=csirtg-cef-zmq.service.j2 dest=/etc/systemd/system/csirtg-cef-zmq.service owner=root group=root mode=0644
  notify:
    - reload systemd
  when: (ansible_distribution == "Ubuntu")

- name: start csirt-cef-zmq
  service: name=csirtg-cef-zmq.service state=started

- name: enable csirt-cef-zmq at boot
  service: name=csirtg-cef-zmq.service enabled=yes state=started
  notify:
    - reload systemd

- name: patch csirtg zmq
  copy:
    remote_src: true
    src: zzmq.py
    dest: /usr/local/lib/python2.7/dist-packages/csirtg_smrt/client/