added stop and then start
parent
151d724e8b
commit
87aed53755
@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: Pull start-portainer-stack
|
||||
docker_image:
|
||||
name: ghcr.io/chatton/start-portainer-stack:master
|
||||
source: pull
|
||||
|
||||
- name: Start stack
|
||||
ansible.builtin.command: docker run --rm
|
||||
-e PORTAINER_USER_NAME=admin
|
||||
-e PORTAINER_PASSWORD="{{portainer_password}}"
|
||||
-e PORTAINER_BASE_URL="http://{{ansible_eth0.ipv4.address}}:9000"
|
||||
ghcr.io/chatton/start-portainer-stack:master "{{stack_name}}"
|
||||
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
vm_ip="${1}"
|
||||
|
||||
echo "Configuring new ip of: ${vm_ip}"
|
||||
|
||||
# update hosts file directly
|
||||
|
||||
rsync /Users/chatton/sync/Sync/backups/portainer_portainer_data-1-8-2022.tar.gz "root@${vm_ip}:/mnt/hdds/backups/"
|
||||
rsync /Users/chatton/sync/Sync/backups/linkding_data-1-8-2022.tar.gz "root@${vm_ip}:/mnt/hdds/backups/"
|
||||
Loading…
Reference in New Issue