Create etc directories on heimdall
This commit is contained in:
parent
b335a94ec0
commit
f62132169a
@ -19,6 +19,11 @@ system_mail_smtp_server: "{{ vault_system_mail_smtp_server }}"
|
|||||||
system_mail_smtp_port: 465
|
system_mail_smtp_port: 465
|
||||||
system_mail_smtp_user: "{{ vault_system_mail_smtp_user }}"
|
system_mail_smtp_user: "{{ vault_system_mail_smtp_user }}"
|
||||||
|
|
||||||
|
# --------------------------------------------------------------------------------------------------
|
||||||
|
# system:var
|
||||||
|
# --------------------------------------------------------------------------------------------------
|
||||||
|
system_etc_root_directory: "/etc/the-nine-worlds"
|
||||||
|
|
||||||
# --------------------------------------------------------------------------------------------------
|
# --------------------------------------------------------------------------------------------------
|
||||||
# vpn
|
# vpn
|
||||||
# --------------------------------------------------------------------------------------------------
|
# --------------------------------------------------------------------------------------------------
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
# --------------------------------------------------------------------------------------------------
|
# --------------------------------------------------------------------------------------------------
|
||||||
# system:var
|
# system:var
|
||||||
# --------------------------------------------------------------------------------------------------
|
# --------------------------------------------------------------------------------------------------
|
||||||
system_etc_root_directory: "/etc/the-nine-worlds"
|
|
||||||
system_var_root_directory: "/var/lib/the-nine-worlds"
|
system_var_root_directory: "/var/lib/the-nine-worlds"
|
||||||
system_var_home_directory: "{{ system_var_root_directory }}/home"
|
system_var_home_directory: "{{ system_var_root_directory }}/home"
|
||||||
system_var_data_directory: "{{ system_var_root_directory }}/data"
|
system_var_data_directory: "{{ system_var_root_directory }}/data"
|
||||||
|
@ -5,15 +5,24 @@ argument_specs:
|
|||||||
ansible_hostname:
|
ansible_hostname:
|
||||||
type: "str"
|
type: "str"
|
||||||
required: true
|
required: true
|
||||||
|
system_directories_create_etc:
|
||||||
|
type: "bool"
|
||||||
|
required: true
|
||||||
|
system_directories_create_var:
|
||||||
|
type: "bool"
|
||||||
|
required: true
|
||||||
|
system_etc_root_directory:
|
||||||
|
type: "str"
|
||||||
|
required: "{{ system_directories_create_etc | bool }}"
|
||||||
system_var_root_directory:
|
system_var_root_directory:
|
||||||
type: "str"
|
type: "str"
|
||||||
required: true
|
required: "{{ system_directories_create_var | bool }}"
|
||||||
system_var_home_directory:
|
system_var_home_directory:
|
||||||
type: "str"
|
type: "str"
|
||||||
required: true
|
required: "{{ system_directories_create_var | bool }}"
|
||||||
system_var_data_directory:
|
system_var_data_directory:
|
||||||
type: "str"
|
type: "str"
|
||||||
required: true
|
required: "{{ system_directories_create_var | bool }}"
|
||||||
system_var_containers_directory:
|
system_var_containers_directory:
|
||||||
type: "str"
|
type: "str"
|
||||||
required: true
|
required: "{{ system_directories_create_var | bool }}"
|
||||||
|
@ -4,27 +4,33 @@
|
|||||||
path: "{{ system_etc_root_directory }}"
|
path: "{{ system_etc_root_directory }}"
|
||||||
state: "directory"
|
state: "directory"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
when:
|
||||||
|
system_directories_create_etc
|
||||||
|
|
||||||
- name: "create services var directory"
|
- block:
|
||||||
ansible.builtin.file:
|
- name: "create services var directory"
|
||||||
path: "{{ system_var_root_directory }}"
|
ansible.builtin.file:
|
||||||
state: "directory"
|
path: "{{ system_var_root_directory }}"
|
||||||
mode: 0755
|
state: "directory"
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: "create containers root directory"
|
- name: "create containers root directory"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ system_var_containers_directory }}"
|
path: "{{ system_var_containers_directory }}"
|
||||||
state: "directory"
|
state: "directory"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "create data root directory"
|
- name: "create data root directory"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ system_var_data_directory }}"
|
path: "{{ system_var_data_directory }}"
|
||||||
state: "directory"
|
state: "directory"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "create home root directory"
|
- name: "create home root directory"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ system_var_home_directory }}"
|
path: "{{ system_var_home_directory }}"
|
||||||
state: "directory"
|
state: "directory"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
when:
|
||||||
|
system_directories_create_var
|
||||||
|
@ -128,8 +128,20 @@
|
|||||||
{% endif %}\
|
{% endif %}\
|
||||||
{{ _zvol_properties }}"
|
{{ _zvol_properties }}"
|
||||||
|
|
||||||
|
- name: "system : bifrost"
|
||||||
|
hosts: "bifrost"
|
||||||
|
roles:
|
||||||
|
- role: "system/directories"
|
||||||
|
tags: "system:directories"
|
||||||
|
vars:
|
||||||
|
system_directories_create_etc: true
|
||||||
|
system_directories_create_var: false
|
||||||
|
|
||||||
- name: "system : asgard"
|
- name: "system : asgard"
|
||||||
hosts: "asgard"
|
hosts: "asgard"
|
||||||
roles:
|
roles:
|
||||||
- role: "system/directories"
|
- role: "system/directories"
|
||||||
tags: "system:directories"
|
tags: "system:directories"
|
||||||
|
vars:
|
||||||
|
system_directories_create_etc: true
|
||||||
|
system_directories_create_var: true
|
||||||
|
2
roles
2
roles
@ -1 +1 @@
|
|||||||
Subproject commit b47f48e7f37b968de6862b42dfab51df1f504b56
|
Subproject commit b93d4a4dcb12bb36c27284d02015e074d8c3c870
|
Loading…
Reference in New Issue
Block a user