Skip to content

Kreditorforeningens-Driftssentral-DA/container-image-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

container-image-ansible

Build (Docker)

Debian container, with python/ansible installed.

ENVIRONMENT VARIABLES

VARIABLE DEFAULT DESCRIPTION
RUN_AS_ROOT (Unset) Run container/commands as root (defaults unprivileged user)

EXAMPLE USE

# Default (print version)
docker run --rm -it kdsda/ansible:0.1

# Map folder & start shell
docker run -v $(pwd)/playbooks:/srv/playbooks:ro --rm -it kdsda/ansible:0.1 bash

# Map folder & start shell (as root)
docker run -v $(pwd)/playbooks:/srv/playbooks:ro -e RUN_AS_ROOT=1 --rm -it kdsda/ansible:0.1 bash