Commit 5a89fa27 by ansible

no message

1 parent b5209f1e
---
- hosts: NewServer
become: true
tasks:
- import_role:
name: formatpartition
\ No newline at end of file
---
- hosts: NewServer
become: true
tasks:
- import_role:
name: mountpartition
\ No newline at end of file
......@@ -3,5 +3,4 @@
become: true
tasks:
- import_role:
name: partition
name: partition
\ No newline at end of file
- name: "Format disk: \"{{ item.device }}\" using etx4"
filesystem:
dev: "{{ item.device }}"
fstype: ext4
with_items:
- { device: "{{ app_disk }}"1 }
- { device: "{{ app_disk }}"2 }
- { device: "{{ app_disk }}"3 }
- { device: "{{ app_disk }}"4 }
\ No newline at end of file
- name: Format Partitioning based on Application Name
import_tasks: apimanager.yml
when: app_name == 'apimanager'
- import_tasks: dma.yml
when: app_name == 'dma'
- import_tasks: wdchat.yml
when: app_name == 'wdchat'
- name: "Format disk: \"{{ item.device }}\" using etx4"
filesystem:
dev: "{{ item.device }}"
fstype: ext4
with_items:
- { device: "{{ app_disk }}"1 }
- { device: "{{ app_disk }}"2 }
- { device: "{{ app_disk }}"3 }
- { device: "{{ app_disk }}"4 }
\ No newline at end of file
- name: "Mount up \"{{ item.device }}\" to \"{{ item.path }}\""
mount:
state: mounted
fstype: ext4
src: "{{ item.device }}"
path: "{{ item.path }}"
with_items:
- { device: "{{ app_disk }}"1, path: /opt }
- { device: "{{ app_disk }}"1, path: /upload }
- { device: "{{ app_disk }}"1, path: /archive }
- { device: "{{ app_disk }}"1, path: /data }
\ No newline at end of file
- name: Mount Partitioning based on Application Name
import_tasks: apimanager.yml
when: app_name == 'apimanager'
- import_tasks: dma.yml
when: app_name == 'dma'
- import_tasks: wdchat.yml
when: app_name == 'wdchat'
- name: "Mount up \"{{ item.device }}\" to \"{{ item.path }}\""
mount:
state: mounted
fstype: ext4
src: "{{ item.device }}"
path: "{{ item.path }}"
with_items:
- { device: "{{ app_disk }}"1, path: /opt }
- { device: "{{ app_disk }}"1, path: /upload }
- { device: "{{ app_disk }}"1, path: /archive }
- { device: "{{ app_disk }}"1, path: /data }
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!