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_user: "{{ vault_system_mail_smtp_user }}"
|
||||
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
# system:var
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
system_etc_root_directory: "/etc/the-nine-worlds"
|
||||
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
# vpn
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
|
@ -2,7 +2,6 @@
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
# system:var
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
system_etc_root_directory: "/etc/the-nine-worlds"
|
||||
system_var_root_directory: "/var/lib/the-nine-worlds"
|
||||
system_var_home_directory: "{{ system_var_root_directory }}/home"
|
||||
system_var_data_directory: "{{ system_var_root_directory }}/data"
|
||||
|
@ -5,15 +5,24 @@ argument_specs:
|
||||
ansible_hostname:
|
||||
type: "str"
|
||||
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:
|
||||
type: "str"
|
||||
required: true
|
||||
required: "{{ system_directories_create_var | bool }}"
|
||||
system_var_home_directory:
|
||||
type: "str"
|
||||
required: true
|
||||
required: "{{ system_directories_create_var | bool }}"
|
||||
system_var_data_directory:
|
||||
type: "str"
|
||||
required: true
|
||||
required: "{{ system_directories_create_var | bool }}"
|
||||
system_var_containers_directory:
|
||||
type: "str"
|
||||
required: true
|
||||
required: "{{ system_directories_create_var | bool }}"
|
||||
|
@ -4,7 +4,10 @@
|
||||
path: "{{ system_etc_root_directory }}"
|
||||
state: "directory"
|
||||
mode: 0755
|
||||
when:
|
||||
system_directories_create_etc
|
||||
|
||||
- block:
|
||||
- name: "create services var directory"
|
||||
ansible.builtin.file:
|
||||
path: "{{ system_var_root_directory }}"
|
||||
@ -28,3 +31,6 @@
|
||||
path: "{{ system_var_home_directory }}"
|
||||
state: "directory"
|
||||
mode: 0755
|
||||
|
||||
when:
|
||||
system_directories_create_var
|
||||
|
@ -128,8 +128,20 @@
|
||||
{% endif %}\
|
||||
{{ _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"
|
||||
hosts: "asgard"
|
||||
roles:
|
||||
- role: "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