From 1e30fd87a91335d025e33bcbbadf03f75ae67e47 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 17 Jan 2024 13:39:34 +0100 Subject: [PATCH] adapt diverses --- roles/fog/files/fogsettings | 2 +- roles/fog/tasks/main.yml | 21 +++++++++++++-------- s-fog.yml | 2 +- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/roles/fog/files/fogsettings b/roles/fog/files/fogsettings index 5459690..29271b7 100644 --- a/roles/fog/files/fogsettings +++ b/roles/fog/files/fogsettings @@ -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' diff --git a/roles/fog/tasks/main.yml b/roles/fog/tasks/main.yml index 86fb6a2..e49e96b 100644 --- a/roles/fog/tasks/main.yml +++ b/roles/fog/tasks/main.yml @@ -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/" diff --git a/s-fog.yml b/s-fog.yml index 4d5a8ab..8658ab4 100644 --- a/s-fog.yml +++ b/s-fog.yml @@ -11,4 +11,4 @@ # - syslog-cli - fog #- - journald-snd - #- post + - post