summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/storage/tasks/main.yml
blob: 50ddd0d2ad8376bc325df8c9d898ed674a8844d0 (plain)
1
2
3
4
5
6

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyw
---
- name: check if physical device exists
  stat: path={{ physical_device }}
  register: status
  tags:
    - storage

- name: load loop.yml
  include: loop.yml
  when: status.stat.exists == False or status.stat.isblk == False 
  tags:
    - storage

- name: load real.yml
  include: real.yml
  when: status.stat.exists == True and status.stat.isblk == True
  tags:
    - storage

- name: make setup_storage directory
  file: path=/opt/setup_storage state=directory mode=0755
  tags:
    - storage

- name: copy setup storage scripts
  copy: src={{ item }} dest=/opt/setup_storage mode=0755
  with_items:
    - losetup.sh
  tags:
    - storage

- name: set autostart file
  copy: src=storage dest=/etc/init.d/storage mode=0755
  tags:
    - storage

- name: enable service
  service: name=storage enabled=yes
  tags:
    - storage

- meta: flush_handlers