feat: deployable playbook
This commit is contained in:
parent
f8e1de4f0a
commit
7ab2b719dc
23 changed files with 754 additions and 176 deletions
|
|
@ -5,6 +5,9 @@
|
|||
gather_facts: yes
|
||||
|
||||
pre_tasks:
|
||||
- name: Include vault variables
|
||||
include_vars: ../inventory/group_vars/netbox_servers_vault
|
||||
|
||||
- name: Verify Ubuntu distribution
|
||||
fail:
|
||||
msg: "This playbook only supports Ubuntu distributions"
|
||||
|
|
@ -33,6 +36,12 @@
|
|||
- docker
|
||||
- containers
|
||||
|
||||
- role: traefik
|
||||
tags:
|
||||
- traefik-deploy
|
||||
- traefik
|
||||
- reverse-proxy
|
||||
|
||||
- role: netbox-deploy
|
||||
tags:
|
||||
- netbox-deploy
|
||||
|
|
@ -44,13 +53,15 @@
|
|||
debug:
|
||||
msg:
|
||||
- "NetBox deployment completed successfully!"
|
||||
- "Access NetBox at: http://{{ ansible_default_ipv4.address }}:8000"
|
||||
- "Access NetBox at: https://{{ netbox_domain }}"
|
||||
- "Traefik Dashboard at: https://{{ traefik_domain }}:{{ traefik_dashboard_port }}"
|
||||
- "Default admin credentials:"
|
||||
- " Username: {{ netbox_superuser_name }}"
|
||||
- " Email: {{ netbox_superuser_email }}"
|
||||
- " Password: {{ netbox_superuser_password }}"
|
||||
- "Installation directory: {{ netbox_install_dir }}"
|
||||
- "Data directory: {{ netbox_data_dir }}"
|
||||
- "Traefik installation directory: {{ traefik_install_dir }}"
|
||||
tags: always
|
||||
|
||||
- name: Show Docker Compose status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue