Compare commits
2 Commits
v0.0.3z-ps
...
v0.0.4b-ps
Author | SHA1 | Date | |
---|---|---|---|
|
1e30fd87a9 | ||
|
924a11f843 |
@@ -29,9 +29,9 @@ WPREL=6.4.2
|
||||
#v6.1.1 le 17/01/2023
|
||||
str5="wget -nc -4 https://fr.wordpress.org/latest-fr_FR.tar.gz -O wordpress-6.4.2-fr_FR.tar.gz"
|
||||
|
||||
str6="curl -L -4 https://github.com/goss-org/goss/releases/latest/download/goss-linux-amd64 -o goss"
|
||||
str6="wget -nc -4 https://github.com/goss-org/goss/releases/latest/download/goss-linux-amd64 -O goss"
|
||||
|
||||
str7="curl -L -4 https://github.com/goss-org/goss/releases/latest/download/dgoss -o dgoss"
|
||||
str7="wget -nc -4 https://github.com/goss-org/goss/releases/latest/download/dgoss -O dgoss"
|
||||
|
||||
#GESTSUPREL=3.2.30
|
||||
#str8="wget -nc -4 'https://gestsup.fr/index.php?page=download&channel=stable&version=${GESTSUPREL}&type=gestsup' -O gestsup_${GESTSUPREL}.zip"
|
||||
@@ -59,7 +59,7 @@ ${str7}
|
||||
|
||||
chmod +x ./goss ./dgoss
|
||||
|
||||
curl -L -4 https://get.docker.com -o getdocker.sh
|
||||
wget -nc -4 https://get.docker.com -O getdocker.sh
|
||||
chmod +x ./getdocker.sh
|
||||
|
||||
wget -nc -4 https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64 -O mkcert
|
||||
@@ -81,7 +81,7 @@ cd "${STOREREP}" || exit 2
|
||||
bash getall
|
||||
cp goss /usr/local/bin
|
||||
|
||||
(cat <<EOT > "${STOREREP}/inst1"
|
||||
(cat <<'EOT' > "${STOREREP}/inst1"
|
||||
#!/bin/bash
|
||||
if [[ -z ${HOST+x} ]]; then
|
||||
echo "erreur : variable HOST indefinie"
|
||||
@@ -98,7 +98,7 @@ echo "vous pouvez redemarrer ..."
|
||||
EOT
|
||||
)
|
||||
|
||||
(cat <<EOT > "${STOREREP}/inst2"
|
||||
(cat <<'EOT' > "${STOREREP}/inst2"
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p ~/tools/ansible ; cd ~/tools/ansible
|
||||
|
@@ -6,7 +6,7 @@
|
||||
## Install time: Mon Jan 15 23:16:31 2024
|
||||
ipaddress='172.16.0.8'
|
||||
copybackold='0'
|
||||
interface='eth2'
|
||||
interface='enp0s9'
|
||||
submask='255.255.255.0'
|
||||
hostname='s-fog.gsb.lan'
|
||||
routeraddress='172.16.64.254'
|
||||
|
@@ -27,23 +27,28 @@
|
||||
- vsftpd
|
||||
- wget
|
||||
|
||||
- name: creation /root/tmp
|
||||
file:
|
||||
path: /root/tmp
|
||||
state: directory
|
||||
|
||||
- name: fichier config fogsettings
|
||||
copy:
|
||||
src: fogsettings
|
||||
dest: /tmp/
|
||||
dest: /root/tmp/
|
||||
|
||||
- name: Récupération archive d'installation Fog
|
||||
get_url:
|
||||
url: "{{ depl_url }}/{{ depl_fog }}"
|
||||
dest: "/tmp/"
|
||||
dest: "/root/tmp/"
|
||||
|
||||
- name: Décompression de l'archive
|
||||
ansible.builtin.unarchive:
|
||||
src: "/tmp/{{ depl_fog }}"
|
||||
dest: "/tmp/"
|
||||
src: "/root/tmp/{{ depl_fog }}"
|
||||
dest: "/root/tmp/"
|
||||
|
||||
#- name: Exécution du script d'installation Fog
|
||||
# ansible.builtin.shell: sudo bash /tmp/fogproject-1.5.10/bin/installfog.sh --recreate-keys -f /tmp/fogsettings -y
|
||||
# args:
|
||||
# chdir: "/tmp/fogproject-1.5.10/"
|
||||
- name: Exécution du script d'installation Fog
|
||||
ansible.builtin.shell: sudo bash /root/tmp/fogproject-1.5.10/bin/installfog.sh --recreate-keys -f /root/tmp/fogsettings -y
|
||||
args:
|
||||
chdir: "/root/tmp/fogproject-1.5.10/"
|
||||
|
||||
|
Reference in New Issue
Block a user