mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-22 20:39:40 +01:00
Solved minor bugs which appeared during refactoring
This commit is contained in:
parent
aca3399e9d
commit
7ff03ef46b
@ -2,10 +2,10 @@
|
|||||||
default_system_email:
|
default_system_email:
|
||||||
local: no-reply
|
local: no-reply
|
||||||
domain: "{{primary_domain}}"
|
domain: "{{primary_domain}}"
|
||||||
username: "{{system_email.local}}@{{system_email.domain}}"
|
username: "no-reply@{{primary_domain}}"
|
||||||
host: "mail.{{primary_domain}}"
|
host: "mail.{{primary_domain}}"
|
||||||
smtp_port: 465
|
smtp_port: 465
|
||||||
tls: true
|
tls: true
|
||||||
start_tls: false
|
start_tls: false
|
||||||
from: "{{system_email.username}}"
|
from: "no-reply@{{primary_domain}}"
|
||||||
smtp: true
|
smtp: true
|
@ -2,6 +2,5 @@
|
|||||||
# Path Variables for Key Directories and Scripts
|
# Path Variables for Key Directories and Scripts
|
||||||
path_administrator_home: "/home/administrator/"
|
path_administrator_home: "/home/administrator/"
|
||||||
path_administrator_scripts: "/opt/scripts/"
|
path_administrator_scripts: "/opt/scripts/"
|
||||||
#path_docker_volumes: "{{path_administrator_home}}volumes/docker/"
|
|
||||||
path_docker_compose_instances: "/opt/docker/"
|
path_docker_compose_instances: "/opt/docker/"
|
||||||
path_system_lock_script: "/opt/scripts/system-maintenance-lock.py"
|
path_system_lock_script: "/opt/scripts/system-maintenance-lock.py"
|
@ -2,12 +2,12 @@
|
|||||||
- name: Merge variables
|
- name: Merge variables
|
||||||
hosts: all
|
hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: Merge domain definitions
|
|
||||||
set_fact:
|
|
||||||
domains: "{{ default_domains | combine(domains | default({}, true)) }}"
|
|
||||||
- name: Merge system_email definitions
|
- name: Merge system_email definitions
|
||||||
set_fact:
|
set_fact:
|
||||||
system_email: "{{ default_system_email | combine(system_email | default({}, true)) }}"
|
system_email: "{{ default_system_email | combine(system_email | default({}, true)) }}"
|
||||||
|
- name: Merge domain definitions
|
||||||
|
set_fact:
|
||||||
|
domains: "{{ default_domains | combine(domains | default({}, true)) }}"
|
||||||
|
|
||||||
- name: update device
|
- name: update device
|
||||||
hosts: all
|
hosts: all
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
- name: load docker compose dependencies
|
|
||||||
include_role:
|
|
||||||
name: docker-compose
|
|
||||||
|
|
||||||
- name: "remove {{ docker_compose_instance_directory }} and all its contents"
|
- name: "remove {{ docker_compose_instance_directory }} and all its contents"
|
||||||
file:
|
file:
|
||||||
path: "{{ docker_compose_instance_directory }}"
|
path: "{{ docker_compose_instance_directory }}"
|
||||||
|
@ -25,7 +25,7 @@ for filename in os.listdir(config_path):
|
|||||||
# Default: Expect status code 200 or 302 for a domain
|
# Default: Expect status code 200 or 302 for a domain
|
||||||
expected_statuses = [200,302]
|
expected_statuses = [200,302]
|
||||||
|
|
||||||
redirected_domains = [domain['source'] for domain in {{redirect_domains_mappings}}]
|
redirected_domains = [domain['source'] for domain in {{redirect_domain_mappings}}]
|
||||||
redirected_domains.append("{{domains.mailu}}")
|
redirected_domains.append("{{domains.mailu}}")
|
||||||
|
|
||||||
# Determine expected status codes based on the domain
|
# Determine expected status codes based on the domain
|
||||||
|
@ -46,15 +46,6 @@
|
|||||||
notify: sshd restart
|
notify: sshd restart
|
||||||
when: run_once_user_administrator is not defined
|
when: run_once_user_administrator is not defined
|
||||||
|
|
||||||
- name: "create {{path_administrator_home}}volumes/"
|
|
||||||
file:
|
|
||||||
path: "{{path_administrator_home}}volumes"
|
|
||||||
state: directory
|
|
||||||
owner: administrator
|
|
||||||
group: administrator
|
|
||||||
mode: 0700
|
|
||||||
when: run_once_user_administrator is not defined
|
|
||||||
|
|
||||||
- name: run the user_administrator tasks once
|
- name: run the user_administrator tasks once
|
||||||
set_fact:
|
set_fact:
|
||||||
run_once_user_administrator: true
|
run_once_user_administrator: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user