From 29ba7b44072742c282ea52dde8329cf1ece067ca Mon Sep 17 00:00:00 2001 From: jpwilliam Date: Wed, 15 Nov 2023 16:32:35 -0300 Subject: [PATCH] command 4 root --- create-cont.sh | 2 +- install_ansible.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/create-cont.sh b/create-cont.sh index f9ce085..add2fcc 100755 --- a/create-cont.sh +++ b/create-cont.sh @@ -27,7 +27,7 @@ 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 11 et rocky 8" +echo "Création des containers Debian 12 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 diff --git a/install_ansible.sh b/install_ansible.sh index eace9f6..71cb7ec 100755 --- a/install_ansible.sh +++ b/install_ansible.sh @@ -5,9 +5,9 @@ then mkdir /etc/ansible mkdir /etc/ansible/group_vars mkdir /etc/ansible/roles - sudo cp /home/ansible/group_vars/* /etc/ansible/group_vars/ - sudo cp /home/ansible/ansible.cfg /etc/ansible/ansible.cfg - sudo cp /home/ansible/hosts /etc/ansible/hosts + cp ./group_vars/* /etc/ansible/group_vars/ + cp ./ansible.cfg /etc/ansible/ansible.cfg + cp ./hosts /etc/ansible/hosts fi pip3 install ansible pip3 install ansible-lint