restore conf debian11
This commit is contained in:
parent
339d3b956b
commit
0e83ebafff
@ -27,10 +27,10 @@ echo "################################"
|
||||
echo "supression des adresses des containers existants dans /etc/hosts"
|
||||
echo "################################"
|
||||
awk -v opt="i" -v lineNo="6" 'NR > lineNo-( opt == "i"? 1 : 0 ){exit};1' /etc/hosts > /tmp/hosts && mv /tmp/hosts /etc/hosts
|
||||
echo "Création des containers Debian 12 et rockylinux 8"
|
||||
echo "Création des containers Debian 11 et rockylinux 8"
|
||||
echo "################################"
|
||||
for x in $(seq 0 4); do docker run -d -p 322$x:22 -v /root/.ssh:/root/.ssh --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --net brrock_n_$x --name rocky-$x --hostname rocky-$x registry.iut-kourou.local/rockylinux-ssh:8 ;done
|
||||
for x in $(seq 0 4); do docker run -d -p 222$x:22 -v /root/.ssh:/root/.ssh --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --net brddeb_n_$x --name debian-$x --hostname debian-$x registry.iut-kourou.local/debian-ssh:12 ;done
|
||||
for x in $(seq 0 4); do docker run -d -p 222$x:22 -v /root/.ssh:/root/.ssh --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --net brddeb_n_$x --name debian-$x --hostname debian-$x registry.iut-kourou.local/debian-ssh:11 ;done
|
||||
echo "creation des ip des containers dans /etc/hosts"
|
||||
echo "################################"
|
||||
for x in $(seq 0 4); do echo "$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' rocky-$x) rocky-$x" >> /etc/hosts;done
|
||||
|
@ -9,23 +9,23 @@ then
|
||||
sudo cp ./ansible.cfg /etc/ansible/ansible.cfg
|
||||
sudo cp ./hosts /etc/ansible/hosts
|
||||
fi
|
||||
pipx install ansible
|
||||
pipx install ansible-lint
|
||||
pipx install ansible-runner
|
||||
pipx install ansible-builder
|
||||
pipx install netmiko
|
||||
pipx install netaddr
|
||||
pipx install argcomplete
|
||||
pip3 install ansible
|
||||
pip3 install ansible-lint
|
||||
pip3 install ansible-runner
|
||||
pip3 install ansible-builder
|
||||
pip3 install netmiko
|
||||
pip3 install netaddr
|
||||
pip3 install argcomplete
|
||||
activate-global-python-argcomplete
|
||||
pipx install cryptography --upgrade
|
||||
pipx install pywinrm
|
||||
pipx install pywinrm[credssp]
|
||||
pipx install pywinrm[kerberos]
|
||||
pipx install molecule[ansible,docker,lint]
|
||||
pipx install docker
|
||||
pipx install ansible-navigator[ansible-core]
|
||||
pipx install --upgrade git+https://github.com/networkop/docker-topo.git
|
||||
pipx ensurepath
|
||||
pip3 install cryptography --upgrade
|
||||
pip3 install pywinrm
|
||||
pip3 install pywinrm[credssp]
|
||||
pip3 install pywinrm[kerberos]
|
||||
pip3 install molecule[ansible,docker,lint]
|
||||
pip3 install docker
|
||||
pip3 install ansible-navigator[ansible-core]
|
||||
pip3 install --upgrade git+https://github.com/networkop/docker-topo.git
|
||||
# pip3 ensurepath
|
||||
source ~/.bashrc
|
||||
ansible-galaxy collection install arista.eos
|
||||
ansible-galaxy collection install community.general
|
||||
|
Loading…
x
Reference in New Issue
Block a user