Commit b5209f1e by ansible

add wdchat configuration for new server group

1 parent 3bc792a6
......@@ -3,4 +3,7 @@
when: app_name == 'apimanager'
- import_tasks: dma.yml
when: app_name == 'dma'
- import_tasks: wdchat.yml
when: app_name == 'wdchat'
- name: Create "DMA" Folder Structure
file:
path: "{{ item.path }}"
owner: "{{ item.owner }}"
group: "{{ item.owner }}"
state: directory
with_items:
- { owner: root, path: /opt/stack/dma/conf }
- { owner: root, path: /home/chroot/wdftp }
- { owner: root, path: /data }
- { owner: wildfly, path: /upload }
- { owner: wildfly, path: /archive }
- { owner: wildfly, path: /dmaimg }
- { owner: wildfly, path: /dmatmp }
\ No newline at end of file
......@@ -3,4 +3,5 @@
when: app_name == 'apimanager'
- import_tasks: dma.yml
when: app_name == 'dma'
- import_tasks: wdchat.yml
when: app_name == 'wdchat'
- name: Create Partiton "{{ app_disk }}"
parted:
device: "{{ item.device }}"
number: "{{ item.number }}"
part_end: "{{ item.end }}"
part_start: "{{ item.start }}"
state: present
# part_type: logical
with_items:
- { device: "{{ app_disk }}", number: "1", start: "0%", end: "40%" }
- { device: "{{ app_disk }}", number: "2", start: "41%", end: "80%" }
- { device: "{{ app_disk }}", number: "3", start: "81%", end: "90%" }
- { device: "{{ app_disk }}", number: "4", start: "91%", end: "100%" }
\ No newline at end of file
......@@ -3,4 +3,5 @@
when: app_name == 'apimanager'
- import_tasks: dma.yml
when: app_name == 'dma'
- import_tasks: wdchat.yml
when: app_name == 'wdchat'
- name: Run the equivalent of "apt-get update" as a separate step
apt:
update_cache: yes
- name: Install required packages
apt: name={{ item }} state=present
with_items:
- sysstat
- gnuplot
- bc
- ntp
- jq
- parted
- python3-pip
- python-dev
- build-essential
- plymouth
- plymouth-theme-edubuntu
- pip: name={{ item }} state=present
with_items:
- virtualenv
- pexpect
- pymongo
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!