Sign inSign up

deonj/ansible-ubuntu

By deonj

Updated over 5 years ago

Ansible on ubuntu:latest

Image
0

435

deonj/ansible-ubuntu repository overview

ansible-ubuntu

Ansible v2.9.6 built on ubuntu:latest

How to use:

  • A volume should be created and mounted which will allow scripts and logs to be copied from the host to the container and vice versa
  • Folders are created for script files (ansible_scripts) and log files (ansi_logs) in /etc/ansible
  • The username and password for remote login is specified in group_vars/all.yml and should be changed to match your specific credentials
  • Uses the default ini style for hosts. Uncomment the line specified and rebuild if using YAML style for hosts

docker run --name your_container_name --mount source=your_volume_name,target=/etc/ansible -it -d deonj/ansible-ubuntu

Example:

Create a docker volume:

docker volume create ansible_vol

Run the docker container:

docker run --name run_ansible --mount source=ansible_vol,target=/etc/ansible -it -d deonj/ansible-ubuntu

Tag summary

Content type

Image

Digest

Size

91.4 MB

Last updated

over 5 years ago

docker pull deonj/ansible-ubuntu