feat: deployable playbook
This commit is contained in:
parent
f8e1de4f0a
commit
7ab2b719dc
23 changed files with 754 additions and 176 deletions
|
|
@ -16,14 +16,14 @@
|
|||
- update-repo
|
||||
|
||||
- name: Pull latest Docker images
|
||||
docker_compose:
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ netbox_install_dir }}"
|
||||
pull: yes
|
||||
tags:
|
||||
- pull-images
|
||||
|
||||
- name: Restart NetBox services
|
||||
docker_compose:
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ netbox_install_dir }}"
|
||||
state: present
|
||||
recreate: yes
|
||||
|
|
@ -32,9 +32,10 @@
|
|||
|
||||
- name: Wait for NetBox to be ready
|
||||
uri:
|
||||
url: "http://localhost:8000/"
|
||||
url: "https://{{ netbox_domain }}/"
|
||||
method: GET
|
||||
status_code: 200
|
||||
validate_certs: false
|
||||
register: netbox_ready
|
||||
until: netbox_ready.status == 200
|
||||
retries: 30
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue