FROM ubuntu:22.04
LABEL maintainer="nickolay3n <gmail.com>"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
git \
ansible \
apt-transport-https \
ca-certificates-java \
curl \
init \
openssh-server openssh-client \
unzip \
rsync \
sudo \
whois \
libstring-mkpasswd-perl \
python3 python3-pip \
fuse snapd snap-confine squashfuse \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install --upgrade pywinrm
RUN pip3 install --upgrade pyopenssl
RUN sed -i 's/TLSv1.2/TLSv1.0/g' /etc/ssl/openssl.cnf
# Configure udev for docker integration
RUN dpkg-divert --local --rename --add /sbin/udevadm && ln -s /bin/true /sbin/udevadm
RUN ansible-galaxy collection install amazon.aws; \
ansible-galaxy collection install ansible.netcommon; \
ansible-galaxy collection install ansible.posix; \
ansible-galaxy collection install ansible.windows; \
ansible-galaxy collection install arista.eos; \
ansible-galaxy collection install arubanetworks.aruba_central; \
ansible-galaxy collection install arubanetworks.aos_switch; \
ansible-galaxy collection install arubanetworks.aoscx; \
ansible-galaxy collection install awx.awx; \
ansible-galaxy collection install azure.azcollection; \
ansible-galaxy collection install check_point.mgmt; \
ansible-galaxy collection install chocolatey.chocolatey; \
ansible-galaxy collection install cisco.aci; \
ansible-galaxy collection install cisco.asa; \
ansible-galaxy collection install cisco.intersight; \
ansible-galaxy collection install cisco.ios; \
ansible-galaxy collection install cisco.iosxr; \
ansible-galaxy collection install cisco.meraki; \
ansible-galaxy collection install cisco.mso; \
ansible-galaxy collection install cisco.nso; \
ansible-galaxy collection install cisco.nxos; \
ansible-galaxy collection install cisco.ucs; \
ansible-galaxy collection install cloudscale_ch.cloud; \
ansible-galaxy collection install community.aws; \
ansible-galaxy collection install community.azure; \
ansible-galaxy collection install community.crypto; \
ansible-galaxy collection install community.digitalocean; \
ansible-galaxy collection install community.docker; \
ansible-galaxy collection install community.fortios; \
ansible-galaxy collection install community.general; \
ansible-galaxy collection install community.google; \
ansible-galaxy collection install community.grafana; \
ansible-galaxy collection install community.hashi_vault; \
ansible-galaxy collection install community.hrobot; \
ansible-galaxy collection install community.kubernetes; \
ansible-galaxy collection install community.kubevirt; \
ansible-galaxy collection install community.libvirt; \
ansible-galaxy collection install community.mongodb; \
ansible-galaxy collection install community.mysql; \
ansible-galaxy collection install community.network; \
ansible-galaxy collection install community.okd; \
ansible-galaxy collection install community.postgresql; \
ansible-galaxy collection install community.proxysql; \
ansible-galaxy collection install community.rabbitmq; \
ansible-galaxy collection install community.routeros; \
ansible-galaxy collection install community.skydive; \
ansible-galaxy collection install community.vmware; \
ansible-galaxy collection install community.windows; \
ansible-galaxy collection install community.zabbix; \
ansible-galaxy collection install containers.podman; \
ansible-galaxy collection install cyberark.conjur; \
ansible-galaxy collection install cyberark.pas; \
ansible-galaxy collection install dellemc.os10; \
ansible-galaxy collection install dellemc.os6; \
ansible-galaxy collection install dellemc.os9; \
ansible-galaxy collection install f5networks.f5_modules; \
ansible-galaxy collection install fortinet.fortimanager; \
ansible-galaxy collection install fortinet.fortios; \
ansible-galaxy collection install frr.frr; \
ansible-galaxy collection install gluster.gluster; \
ansible-galaxy collection install google.cloud; \
ansible-galaxy collection install hetzner.hcloud; \
ansible-galaxy collection install ibm.qradar; \
ansible-galaxy collection install infinidat.infinibox; \
ansible-galaxy collection install junipernetworks.junos; \
ansible-galaxy collection install mellanox.onyx; \
ansible-galaxy collection install netapp.aws; \
ansible-galaxy collection install netapp.elementsw; \
ansible-galaxy collection install netapp.ontap; \
ansible-galaxy collection install netapp_eseries.santricity 1.1.0 ; \
ansible-galaxy collection install netbox.netbox; \
ansible-galaxy collection install ngine_io.cloudstack; \
ansible-galaxy collection install ngine_io.exoscale; \
ansible-galaxy collection install ngine_io.vultr; \
ansible-galaxy collection install openstack.cloud; \
ansible-galaxy collection install openvswitch.openvswitch 1.1.0 ; \
ansible-galaxy collection install ovirt.ovirt; \
ansible-galaxy collection install purestorage.flasharray; \
ansible-galaxy collection install purestorage.flashblade; \
ansible-galaxy collection install servicenow.servicenow; \
ansible-galaxy collection install splunk.es; \
ansible-galaxy collection install theforeman.foreman; \
ansible-galaxy collection install vyos.vyos; \
ansible-galaxy collection install wti.remote
RUN apt-get update && apt-get install -y mc nano && rm -rf /var/lib/apt/lists/*
RUN mkdir /etc/ansible && echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
CMD ["/sbin/init"]
x-log-defaults: &log-defaults
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "10"
x-env-defaults: &env-defaults
environment:
TZ: 'Europe/Moscow'
services:
ansible:
<<: [*log-defaults, *env-defaults]
image: 'nickolay3n/ansible'
container_name: 'ansible'
restart: always
dns:
- 10.40.39.10
# volumes:
# - ./ansible.cfg:/etc/ansible/ansible.cfg
network_mode: "host"
command: tail -f /dev/null
cat ./attach.sh
#!/bin/bash
docker exec -it ansible /bin/bash
Content type
Image
Digest
sha256:94b1dadca…
Size
991.2 MB
Last updated
12 months ago
docker pull nickolay3n/ansible:8.6.1