add arch variable
This commit is contained in:
parent
800e47c63e
commit
a1bf5d4392
@ -1,4 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
- name: Include OS-specific variables.
|
||||||
|
include_vars: "{{ ansible_architecture }}.yml"
|
||||||
|
|
||||||
- name: create config directory
|
- name: create config directory
|
||||||
file:
|
file:
|
||||||
path: "{{cloud_commander_config_path}}"
|
path: "{{cloud_commander_config_path}}"
|
||||||
@ -16,7 +19,7 @@
|
|||||||
docker_container:
|
docker_container:
|
||||||
name: "cloudcommander" # required. Assign a name to a new container or match an existing container.,When identifying an existing container name may be a name or a long or short container ID.
|
name: "cloudcommander" # required. Assign a name to a new container or match an existing container.,When identifying an existing container name may be a name or a long or short container ID.
|
||||||
tty: yes # not required. Allocate a pseudo-TTY.
|
tty: yes # not required. Allocate a pseudo-TTY.
|
||||||
image: coderaiser/cloudcmd # not required. Repository path and tag used to create the container. If an image is not found or pull is true, the image will be pulled from the registry. If no tag is included, 'latest' will be used.
|
image: "{{cloud_commander_image}}" # not required. Repository path and tag used to create the container. If an image is not found or pull is true, the image will be pulled from the registry. If no tag is included, 'latest' will be used.
|
||||||
working_dir: /root # not required. Path to the working directory.
|
working_dir: /root # not required. Path to the working directory.
|
||||||
published_ports: "{{cloud_commander_port}}" # not required. List of ports to publish from the container to the host.,Use docker CLI syntax: C(8000), C(9000:8000), or C(0.0.0.0:9000:8000), where 8000 is a container port, 9000 is a host port, and 0.0.0.0 is a host interface.,Container ports must be exposed either in the Dockerfile or via the C(expose) option.,A value of all will publish all exposed container ports to random host ports, ignoring any other mappings.,If C(networks) parameter is provided, will inspect each network to see if there exists a bridge network with optional parameter com.docker.network.bridge.host_binding_ipv4. If such a network is found, then published ports where no host IP address is specified will be bound to the host IP pointed to by com.docker.network.bridge.host_binding_ipv4. Note that the first bridge network with a com.docker.network.bridge.host_binding_ipv4 value encountered in the list of C(networks) is the one that will be used.
|
published_ports: "{{cloud_commander_port}}" # not required. List of ports to publish from the container to the host.,Use docker CLI syntax: C(8000), C(9000:8000), or C(0.0.0.0:9000:8000), where 8000 is a container port, 9000 is a host port, and 0.0.0.0 is a host interface.,Container ports must be exposed either in the Dockerfile or via the C(expose) option.,A value of all will publish all exposed container ports to random host ports, ignoring any other mappings.,If C(networks) parameter is provided, will inspect each network to see if there exists a bridge network with optional parameter com.docker.network.bridge.host_binding_ipv4. If such a network is found, then published ports where no host IP address is specified will be bound to the host IP pointed to by com.docker.network.bridge.host_binding_ipv4. Note that the first bridge network with a com.docker.network.bridge.host_binding_ipv4 value encountered in the list of C(networks) is the one that will be used.
|
||||||
pull: yes # not required. If true, always pull the latest version of an image. Otherwise, will only pull an image when missing.
|
pull: yes # not required. If true, always pull the latest version of an image. Otherwise, will only pull an image when missing.
|
||||||
@ -26,4 +29,3 @@
|
|||||||
command: "{{cloud_commander_option}}" # not required. Command to execute when the container starts. A command may be either a string or a list. Prior to version 2.4, strings were split on commas.
|
command: "{{cloud_commander_option}}" # not required. Command to execute when the container starts. A command may be either a string or a list. Prior to version 2.4, strings were split on commas.
|
||||||
volumes: "{{cloud_commander_volume}}" # not required. List of volumes to mount within the container.,Use docker CLI-style syntax: C(/host:/container[:mode]),You can specify a read mode for the mount with either C(ro) or C(rw).,SELinux hosts can additionally use C(z) or C(Z) to use a shared or private label for the volume.
|
volumes: "{{cloud_commander_volume}}" # not required. List of volumes to mount within the container.,Use docker CLI-style syntax: C(/host:/container[:mode]),You can specify a read mode for the mount with either C(ro) or C(rw).,SELinux hosts can additionally use C(z) or C(Z) to use a shared or private label for the volume.
|
||||||
become: yes
|
become: yes
|
||||||
|
|
1
vars/armv7l.yml
Normal file
1
vars/armv7l.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
cloud_commander_image: "ducampsv/cloudcmd"
|
1
vars/x86_64.yml
Normal file
1
vars/x86_64.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
cloud_commander_image: "coderaiser/cloudcmd"
|
Loading…
Reference in New Issue
Block a user