...
 
Commits (1)
---
# install cifv3
- synchronize: mode=pull src=bearded-avenger-deploymentkit dest=/usr/local/src
##- 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: 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
......@@ -34,16 +34,16 @@
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/
when: (ansible_distribution == "Ubuntu")
- name: patch csirtg zmq
copy:
remote_src: true
src: zzmq.py
dest: /usr/lib/python2.7/site-packages/csirtg_smrt/client/
when: (ansible_distribution == "CentOS")
##- name: patch csirtg zmq
## copy:
## remote_src: true
## src: zzmq.py
## dest: /usr/local/lib/python2.7/dist-packages/csirtg_smrt/client/
## when: (ansible_distribution == "Ubuntu")
##- name: patch csirtg zmq
## copy:
## remote_src: true
## src: zzmq.py
## dest: /usr/lib/python2.7/site-packages/csirtg_smrt/client/
## when: (ansible_distribution == "CentOS")
......@@ -4,7 +4,7 @@
- name: Ensure path has correct permissions
file: path={{ app_user_home }} owner={{ app_user }} group={{ app_group }} mode=0750
- user: name="{{ ansible_env.SUDO_USER }}" groups={{ app_group }} append=yes
#- user: name="{{ ansible_env.SUDO_USER }}" groups={{ app_group }} append=yes
- name: add docker group
group: name=docker state=present system=yes
......
......@@ -45,6 +45,7 @@
- libssl-dev
- aptitude
- uuid-dev
- policycoreutils
# - libzyre-dev
when: (ansible_distribution == "Ubuntu")
......@@ -86,3 +87,4 @@
with_items:
- { name: docker-compose, version: 1.9.0 }
- { name: docker-py, version: 1.10.6 }
- { name: tzlocal }
---
- user: name="{{ ansible_env.SUDO_USER }}" groups=docker append=yes
#- user: name="{{ ansible_env.SUDO_USER }}" groups=docker append=yes
- name: systemd services
template: src=ssh-auth-logger.service.j2 dest=/etc/systemd/system/ssh-auth-logger.service owner=root group=root mode=0644
......
......@@ -4,7 +4,7 @@
- name: Ensure path has correct permissions
file: path={{ app_user_home }} owner={{ app_user }} group={{ app_group }} mode=0750
- user: name="{{ ansible_env.SUDO_USER }}" groups={{ app_group }} append=yes
#- user: name="{{ ansible_env.SUDO_USER }}" groups={{ app_group }} append=yes
- name: add docker group
group: name=docker state=present system=yes
......
......@@ -4,7 +4,7 @@
- name: Ensure path has correct permissions
file: path={{ app_user_home }} owner={{ app_user }} group={{ app_group }} mode=0750
- user: name="{{ ansible_env.SUDO_USER }}" groups={{ app_group }} append=yes
#- user: name="{{ ansible_env.SUDO_USER }}" groups={{ app_group }} append=yes
- name: add docker group
group: name=docker state=present system=yes
......
......@@ -4,7 +4,7 @@
- name: Ensure path has correct permissions
file: path={{ app_user_home }} owner={{ app_user }} group={{ app_group }} mode=0750
- user: name="{{ ansible_env.SUDO_USER }}" groups={{ app_group }} append=yes
#- user: name="{{ ansible_env.SUDO_USER }}" groups={{ app_group }} append=yes
- name: add docker group
group: name=docker state=present system=yes
......