Commit 9112f234 by ansible

no message

1 parent 960cba45
Showing with 20 additions and 20 deletions
- name: Create Partiton "{{ app_disk }}" - name: Create Partiton "{{ app_disk }}"
parted: parted:
device: "{{ item.device }}" device: "{{ item.device }}"
number: "{{ item.number }}" number: "{{ item.number }}"
part_end: "{{ item.end }}" part_end: "{{ item.end }}"
part_start: "{{ item.start }}" part_start: "{{ item.start }}"
state: present state: present
# part_type: logical # part_type: logical
with_items: with_items:
- { device: "{{ app_disk }}", number: "1", start: "0%", end: "40%" } - { device: "{{ app_disk }}", number: "1", start: "0%", end: "40%" }
- { device: "{{ app_disk }}", number: "2", start: "41%", end: "80%" } - { device: "{{ app_disk }}", number: "2", start: "41%", end: "80%" }
- { device: "{{ app_disk }}", number: "3", start: "81%", end: "90%" } - { device: "{{ app_disk }}", number: "3", start: "81%", end: "90%" }
- { device: "{{ app_disk }}", number: "4", start: "91%", end: "100%" } - { device: "{{ app_disk }}", number: "4", start: "91%", end: "100%" }
- name: "Format disk: \"{{ item.device }}\" using etx4" - name: "Format disk: \"{{ item.device }}\" using etx4"
filesystem: filesystem:
dev: "{{ item.device }}" dev: "{{ item.device }}"
fstype: ext4 fstype: ext4
with_items: with_items:
- { device: "{{ app_disk }}"1 } - { device: "{{ app_disk }}"1 }
- { device: "{{ app_disk }}"2 } - { device: "{{ app_disk }}"2 }
- { device: "{{ app_disk }}"3 } - { device: "{{ app_disk }}"3 }
- { device: "{{ app_disk }}"4 } - { device: "{{ app_disk }}"4 }
- name: "Mount up \"{{ item.device }}\" to \"{{ item.path }}\"" - name: "Mount up \"{{ item.device }}\" to \"{{ item.path }}\""
mount: mount:
state: mounted state: mounted
fstype: ext4 fstype: ext4
src: "{{ item.device }}" src: "{{ item.device }}"
path: "{{ item.path }}" path: "{{ item.path }}"
with_items: with_items:
- { device: "{{ app_disk }}"1, path: /opt } - { device: "{{ app_disk }}"1, path: /opt }
- { device: "{{ app_disk }}"2, path: /upload } - { device: "{{ app_disk }}"2, path: /upload }
- { device: "{{ app_disk }}"3, path: /archive } - { device: "{{ app_disk }}"3, path: /archive }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!