From 6442aa8cc3f0d9972a52303ed2b42de2fe999214 Mon Sep 17 00:00:00 2001 From: Adam Alphonso Date: Fri, 15 Nov 2024 11:55:08 +0100 Subject: [PATCH] =?UTF-8?q?=09supprim=C3=A9=C2=A0:=20=20=20=20=20=20=20=20?= =?UTF-8?q?ansible/apbase.yml=20=09supprim=C3=A9=C2=A0:=20=20=20=20=20=20?= =?UTF-8?q?=20=20ansible/apdb.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ap32-prod/ansible/apbase.yml | 31 ----------------------------- ap32-prod/ansible/apdb.yml | 38 ------------------------------------ 2 files changed, 69 deletions(-) delete mode 100644 ap32-prod/ansible/apbase.yml delete mode 100644 ap32-prod/ansible/apdb.yml diff --git a/ap32-prod/ansible/apbase.yml b/ap32-prod/ansible/apbase.yml deleted file mode 100644 index 2a7ac23..0000000 --- a/ap32-prod/ansible/apbase.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -- hosts: all - become: true - - tasks: - - name: Parametrage Timezone Europe/Paris - community.general.timezone: - name: Europe/Paris - - - name: Copie apt.conf - copy: - content: | - Acquire::http::Proxy "http://10.121.38.1:8080"; - Acquire::https::Proxy "http://10.121.38.1:8080"; - dest: /etc/apt/apt.conf - - - name: Update and upgrade apt packages - apt: - upgrade: yes - update_cache: yes - cache_valid_time: 86400 #One day - - - - name: Installation paquets - apt: - name: "{{ item }}" - with_items: - - tomcat10 - - mariadb-server - - ant - - qemu-guest-agent diff --git a/ap32-prod/ansible/apdb.yml b/ap32-prod/ansible/apdb.yml deleted file mode 100644 index 82337d9..0000000 --- a/ap32-prod/ansible/apdb.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -- hosts: all - become: true - - - tasks: - - name: installation extensions python - apt: - name: python3-pymysql - state: present - - - name: Create a new database - community.mysql.mysql_db: - name: sdis29 - state: present - login_unix_socket: /run/mysqld/mysqld.sock - - - name: Create a new user - community.mysql.mysql_user: - name: admin - password: Azerty1+ - priv: 'sdis29.*:ALL' - state: present - login_unix_socket: /run/mysqld/mysqld.sock - - - name: - copy: - src: sdis29.sql - dest: /tmp/ - - - - - name: Import database - community.mysql.mysql_db: - name: sdis29 - state: import - target: /tmp/sdis29.sql - login_unix_socket: /run/mysqld/mysqld.sock