Commit 41d4f5ed by ansible

no message

1 parent ee45df69
...@@ -8,3 +8,6 @@ ...@@ -8,3 +8,6 @@
- file: - file:
path: /tmp/configuration path: /tmp/configuration
state: absent state: absent
- file:
path: /tmp/application
state: absent
\ No newline at end of file
--- ---
- hosts: new_host - hosts: new-host
become: true become: true
tasks: tasks:
- name: Create WDCHAT Directory Structure - name: Create WDCHAT Directory Structure
...@@ -9,8 +9,9 @@ ...@@ -9,8 +9,9 @@
group: "{{ item.owner }}" group: "{{ item.owner }}"
state: directory state: directory
with_items: with_items:
- { owner: root, path: /opt/stack } - { owner: root, path: /opt/stack/dma/conf }
- { owner: root, path: /home/chroot/wdftp } - { owner: root, path: /home/chroot/wdftp }
- { owner: root, path: /data }
- { owner: wildfly, path: /upload } - { owner: wildfly, path: /upload }
- { owner: wildfly, path: /archive } - { owner: wildfly, path: /archive }
- { owner: wildfly, path: /dmaimg } - { owner: wildfly, path: /dmaimg }
......
--- ---
- hosts: new_host - hosts: new-host
become: true become: true
tasks: tasks:
- name: "Format disk: \"{{ item.device }}\" using etx4" - name: "Format disk: \"{{ item.device }}\" using etx4"
...@@ -10,4 +10,5 @@ ...@@ -10,4 +10,5 @@
- { device: /dev/vdc1 } - { device: /dev/vdc1 }
- { device: /dev/vdc2 } - { device: /dev/vdc2 }
- { device: /dev/vdc3 } - { device: /dev/vdc3 }
- { device: /dev/vdc4 }
--- ---
- hosts: new_host - hosts: new-host
become: true become: true
tasks: tasks:
- name: "Mount up \"{{ item.device }}\" to \"{{ item.path }}\"" - name: "Mount up \"{{ item.device }}\" to \"{{ item.path }}\""
...@@ -12,4 +12,5 @@ ...@@ -12,4 +12,5 @@
- { device: /dev/vdc1, path: /opt } - { device: /dev/vdc1, path: /opt }
- { device: /dev/vdc2, path: /upload } - { device: /dev/vdc2, path: /upload }
- { device: /dev/vdc3, path: /archive } - { device: /dev/vdc3, path: /archive }
- { device: /dev/vdc4, path: /data }
--- ---
- hosts: new_host - hosts: new-host
become: true become: true
tasks: tasks:
- name: Create partiton - name: Create partiton
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
state: present state: present
# part_type: logical # part_type: logical
with_items: with_items:
- { device: "/dev/vdc", number: "1", start: "0%", end: "50GiB" } - { device: "/dev/vdc", number: "1", start: "0", end: "100GiB" }
- { device: "/dev/vdc", number: "2", start: "51GiB", end: "100GiB" } - { device: "/dev/vdc", number: "2", start: "101GiB", end: "200GiB" }
- { device: "/dev/vdc", number: "3", start: "101GiB", end: "100%" } - { device: "/dev/vdc", number: "3", start: "201GiB", end: "250GiB" }
- { device: "/dev/vdc", number: "4", start: "251GiB", end: "100%" }
--- ---
- hosts: new_host - hosts: new-host
become: true become: true
tasks: tasks:
- name: Run the equivalent of "apt-get update" as a separate step - name: Run the equivalent of "apt-get update" as a separate step
......
--- ---
- hosts: all - hosts: install-wdchat-dma
become: true become: true
tasks: tasks:
- copy: - copy:
......
--- ---
- hosts: all - hosts: install-wdchat-dma
become: true become: true
tasks: tasks:
- copy: - copy:
......
--- ---
- hosts: all - hosts: install-wdchat-dma
become: true become: true
tasks: tasks:
- copy: - copy:
......
--- ---
- hosts: new_host - hosts: new-host
become: true become: true
tasks: tasks:
- name: Create Groups - name: Create Groups
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!