Commit e4a7bbf5 authored by Alexander Withers's avatar Alexander Withers
Browse files

new release of cifv3 easybutton being tested

parent ab96755d
--- ---
# install cifv3 # 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 #- name: untar cifv3
# command: tar vxf bearded-avenger-deploymentkit.tar # command: tar vxf bearded-avenger-deploymentkit.tar
# args: # args:
# chdir: "/usr/local/src" # chdir: "/usr/local/src"
- name: deploy cifv3 ##- name: deploy cifv3
command: /bin/bash easybutton.sh ## command: /bin/bash easybutton.sh
args: ## args:
chdir: "/usr/local/src/bearded-avenger-deploymentkit" ## chdir: "/usr/local/src/bearded-avenger-deploymentkit"
- name: systemd env file - 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 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 @@ ...@@ -34,16 +34,16 @@
notify: notify:
- reload systemd - reload systemd
- name: patch csirtg zmq ##- name: patch csirtg zmq
copy: ## copy:
remote_src: true ## remote_src: true
src: zzmq.py ## src: zzmq.py
dest: /usr/local/lib/python2.7/dist-packages/csirtg_smrt/client/ ## dest: /usr/local/lib/python2.7/dist-packages/csirtg_smrt/client/
when: (ansible_distribution == "Ubuntu") ## when: (ansible_distribution == "Ubuntu")
- name: patch csirtg zmq ##- name: patch csirtg zmq
copy: ## copy:
remote_src: true ## remote_src: true
src: zzmq.py ## src: zzmq.py
dest: /usr/lib/python2.7/site-packages/csirtg_smrt/client/ ## dest: /usr/lib/python2.7/site-packages/csirtg_smrt/client/
when: (ansible_distribution == "CentOS") ## when: (ansible_distribution == "CentOS")
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
- name: Ensure path has correct permissions - name: Ensure path has correct permissions
file: path={{ app_user_home }} owner={{ app_user }} group={{ app_group }} mode=0750 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 - name: add docker group
group: name=docker state=present system=yes group: name=docker state=present system=yes
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
- libssl-dev - libssl-dev
- aptitude - aptitude
- uuid-dev - uuid-dev
- policycoreutils
# - libzyre-dev # - libzyre-dev
when: (ansible_distribution == "Ubuntu") when: (ansible_distribution == "Ubuntu")
...@@ -86,3 +87,4 @@ ...@@ -86,3 +87,4 @@
with_items: with_items:
- { name: docker-compose, version: 1.9.0 } - { name: docker-compose, version: 1.9.0 }
- { name: docker-py, version: 1.10.6 } - { 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 - name: systemd services
template: src=ssh-auth-logger.service.j2 dest=/etc/systemd/system/ssh-auth-logger.service owner=root group=root mode=0644 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 @@ ...@@ -4,7 +4,7 @@
- name: Ensure path has correct permissions - name: Ensure path has correct permissions
file: path={{ app_user_home }} owner={{ app_user }} group={{ app_group }} mode=0750 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 - name: add docker group
group: name=docker state=present system=yes group: name=docker state=present system=yes
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
- name: Ensure path has correct permissions - name: Ensure path has correct permissions
file: path={{ app_user_home }} owner={{ app_user }} group={{ app_group }} mode=0750 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 - name: add docker group
group: name=docker state=present system=yes group: name=docker state=present system=yes
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
- name: Ensure path has correct permissions - name: Ensure path has correct permissions
file: path={{ app_user_home }} owner={{ app_user }} group={{ app_group }} mode=0750 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 - name: add docker group
group: name=docker state=present system=yes group: name=docker state=present system=yes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment