blob: 5738eb8f82146cf7a957981aaa7e89ea022a818d [file] [log] [blame]
---
- name: "Create the spopenstack group"
become: true
ansible.builtin.group:
name: spopenstack
system: true
- name: "Add the 'cinder', 'nova', and 'glance' accounts to that group"
become: true
ansible.builtin.lineinfile:
backrefs: true
line: "\\g<1>:cinder,nova,glance,stack"
path: /etc/group
regexp: "^(spopenstack:[^:]*:[^:]*):$"
- name: "Let's see what we did there..."
shell: getent group spopenstack
- name: "Create the /var/spool/openstack-storpool directory"
become: true
ansible.builtin.file:
path: /var/spool/openstack-storpool
state: directory
owner: root
group: spopenstack
mode: 0770
- name: "Create the /var/spool/openstack-storpool/openstack-attach.json file"
become: true
ansible.builtin.copy:
dest: /var/spool/openstack-storpool/openstack-attach.json
owner: root
group: spopenstack
mode: 0660
content: |
{}