b2ac6e80cd
sudo requires a tty to function by default on centos. Instead of tweaking the sudo conf we can just add a tty. This has the added advantage of making the containers more friendly if you have to `docker exec -i <container> bash` into them. Change-Id: If97a02ca1d37c243a787d98ade54bde8d641aecd backport: liberty Partially-Implements: blueprint functional-testing-gate
20 lines
587 B
YAML
20 lines
587 B
YAML
---
|
|
- name: Starting Swift data container
|
|
docker:
|
|
tty: True
|
|
net: host
|
|
pull: "{{ docker_pull_policy }}"
|
|
restart_policy: "{{ docker_restart_policy }}"
|
|
restart_policy_retry: "{{ docker_restart_policy_retry }}"
|
|
state: reloaded
|
|
registry: "{{ docker_registry }}"
|
|
username: "{{ docker_registry_username }}"
|
|
password: "{{ docker_registry_password }}"
|
|
insecure_registry: "{{ docker_insecure_registry }}"
|
|
name: swift_data
|
|
image: "{{ swift_data_image_full }}"
|
|
volumes:
|
|
- "/srv/node/sdb1"
|
|
- "/srv/node/sdb2"
|
|
- "/srv/node/sdb3"
|