Compare commits
2
Commits
f325fcbeb5
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
773c70e5a8 | ||
|
|
2fcbee0b4d |
No files matched your search
@@ -0,0 +1,36 @@
|
||||
FROM rockylinux/rockylinux:10
|
||||
|
||||
ENV container=docker
|
||||
|
||||
RUN dnf -y install epel-release \
|
||||
&& crb enable \
|
||||
&& dnf update -y \
|
||||
&& dnf install -y sudo \
|
||||
which \
|
||||
hostname \
|
||||
libyaml-devel \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-pyyaml \
|
||||
rsync \
|
||||
wget \
|
||||
curl \
|
||||
git \
|
||||
ruby \
|
||||
&& dnf clean all
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir --upgrade pip \
|
||||
&& pip3 install --no-cache-dir ansible
|
||||
|
||||
RUN ansible-galaxy collection install community.general && \
|
||||
ansible-galaxy collection install ansible.posix && \
|
||||
ansible-galaxy collection install community.docker && \
|
||||
ansible-galaxy collection list
|
||||
|
||||
RUN mkdir -p /root/.ssh
|
||||
|
||||
# Disable requiretty.
|
||||
RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
|
||||
|
||||
CMD ["ansible-playbook"]
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
collections:
|
||||
- community.general
|
||||
- ansible.posix
|
||||
- community.docker
|
||||
@@ -0,0 +1,32 @@
|
||||
FROM rockylinux:9
|
||||
|
||||
ENV container=docker
|
||||
|
||||
# Install requirements.
|
||||
RUN dnf -y install rpm dnf-plugins-core \
|
||||
&& dnf -y config-manager --set-enabled crb \
|
||||
&& dnf -y update \
|
||||
&& dnf -y install --allowerasing \
|
||||
epel-release \
|
||||
sudo \
|
||||
which \
|
||||
hostname \
|
||||
libyaml-devel \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-pyyaml \
|
||||
rsync \
|
||||
wget \
|
||||
curl \
|
||||
git \
|
||||
ruby ruby-devel \
|
||||
ruby bash bash-completion openssh sshpass nmap-ncat \
|
||||
nmap \
|
||||
&& dnf clean all
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir --upgrade pip
|
||||
|
||||
|
||||
RUN mkdir -p /root/.ssh
|
||||
|
||||
CMD ["bash"]
|
||||
Reference in new issue
Block a user