Capturing containers running directly on Node
This commit is contained in:
+7
-1
@@ -85,6 +85,12 @@ all:
|
|||||||
tap: true
|
tap: true
|
||||||
active_vms:
|
active_vms:
|
||||||
- TDS-Jump
|
- TDS-Jump
|
||||||
|
active_containers:
|
||||||
|
- 'takserver-5.4-RELEASE-17': 'takserver:5.4-RELEASE-17'
|
||||||
|
- 'takserver-db-5.4-RELEASE-17': 'takserver-db:5.4-RELEASE-17'
|
||||||
|
- 'filestash': 'machines/filestash'
|
||||||
|
- 'filestash_oods': 'onlyoffice/documentserver'
|
||||||
|
- 'geth-rancher': 'rancher/rancher'
|
||||||
Node4:
|
Node4:
|
||||||
ansible_user: depriv
|
ansible_user: depriv
|
||||||
ipinterface: enp1s0
|
ipinterface: enp1s0
|
||||||
@@ -96,7 +102,7 @@ all:
|
|||||||
- Yggdrasil
|
- Yggdrasil
|
||||||
Geth:
|
Geth:
|
||||||
vars:
|
vars:
|
||||||
primary: Geth0
|
geth_primary: Geth1
|
||||||
hosts:
|
hosts:
|
||||||
Geth0:
|
Geth0:
|
||||||
ipinterface: eth0
|
ipinterface: eth0
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
- qemu-base
|
- qemu-base
|
||||||
- qemu-emulators-full
|
- qemu-emulators-full
|
||||||
- ddrescue
|
- ddrescue
|
||||||
|
- docker
|
||||||
|
- python-requests
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Copy VM definitions
|
- name: Copy VM definitions
|
||||||
@@ -69,3 +71,11 @@
|
|||||||
name: "{{ item }}-vm.service"
|
name: "{{ item }}-vm.service"
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
|
- name: Enable containers
|
||||||
|
become: yes
|
||||||
|
community.docker.docker_container:
|
||||||
|
name: "{{ item.key }}"
|
||||||
|
image: '{{ item.value }}'
|
||||||
|
state: started
|
||||||
|
with_dict: "{{ active_containers }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user