diff --git a/ansible/.tomcat-setup.yml.swp b/ansible/.tomcat-setup.yml.swp
deleted file mode 100644
index f55f859..0000000
Binary files a/ansible/.tomcat-setup.yml.swp and /dev/null differ
diff --git a/ansible/hosts b/ansible/hosts
deleted file mode 100644
index 9a9fe91..0000000
--- a/ansible/hosts
+++ /dev/null
@@ -1,2 +0,0 @@
-[tomcat-nodes]
-localhost # Add Server IP address, one line per server
diff --git a/ansible/invent b/ansible/invent
deleted file mode 100644
index 2fbb50c..0000000
--- a/ansible/invent
+++ /dev/null
@@ -1 +0,0 @@
-localhost
diff --git a/ansible/local2.yml b/ansible/local2.yml
deleted file mode 100644
index 6bd73c6..0000000
--- a/ansible/local2.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-- hosts: all
- roles:
- - db
diff --git a/ansible/roles/db/tasks/main.yml b/ansible/roles/db/tasks/main.yml
deleted file mode 100644
index 3e4d7e1..0000000
--- a/ansible/roles/db/tasks/main.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-- name: "[MYSQL] - update cache"
- apt:
- update_cache: yes
-
-- name: "[MYSQL] - install"
- apt:
- name: mariadb-server
- state: latest
-
-- name: "[Python] - install"
- apt:
- name: python
- state: latest
-
-- name: "[MYSQL] - start mysql"
- service:
- name: "mysqld"
- state: started
- enabled: yes
-
-- name: "[MYSQL] - create database"
- community.mysql.mysql_db:
- name:
- - sdis29
- state: present
-
-- name: "[MYSQL] - create user"
- mysql_user:
- name: "slam"
- password: "Azerty1+"
- priv: "*.*:ALL"
- host: "127.0.0.1"
- become: yes
-
-- name: Copier dump
- copy:
- src: db-sauv.sql.gz
- dest: /tmp
-
-- name: Restorer la base de données
- community.mysql.mysql_db:
- name: my_db
- state: import
- target: /tmp/db-sauv.sql.gz
diff --git a/ansible/roles/db/vars/debian.yml b/ansible/roles/db/vars/debian.yml
deleted file mode 100644
index f3a9994..0000000
--- a/ansible/roles/db/vars/debian.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-mysql_packages:
- - mariadb-server
- - python-m ysqldb
mysql_db: "sdis29"
- - mysql_user: "slam"
- - mysql_password: "Azerty1+"
diff --git a/ansible/roles/dbdump/tasks/main.yml b/ansible/roles/dbdump/tasks/main.yml
deleted file mode 100644
index 5cbc073..0000000
--- a/ansible/roles/dbdump/tasks/main.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-- name: create a backup
- mysql_db:
- name: sdis29
- state: dump
- target: /tmp/sdis29.sql
- login_host: localhost
- login_user: slam
- login_password: Azerty1+
diff --git a/ansible/roles/tomcat/defaults/main.yml b/ansible/roles/tomcat/defaults/main.yml
deleted file mode 100644
index 6086e1e..0000000
--- a/ansible/roles/tomcat/defaults/main.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-tomcat_archive_url: https://dlcdn.apache.org/tomcat/tomcat-10/v10.0.14/bin/apache-tomcat-10.0.14.tar.gz
-tomcat_archive_dest: /tmp/apache-tomcat-{{ tomcat_ver }}.tar.gz
diff --git a/ansible/roles/tomcat/handlers/main.yml b/ansible/roles/tomcat/handlers/main.yml
deleted file mode 100644
index 02c4fcb..0000000
--- a/ansible/roles/tomcat/handlers/main.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-- name: restart tomcat
- service:
- name: tomcat
- state: restarted
diff --git a/ansible/roles/tomcat/tasks/main.yaml b/ansible/roles/tomcat/tasks/main.yaml
deleted file mode 100644
index 9ba17ed..0000000
--- a/ansible/roles/tomcat/tasks/main.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
----
-- name: Add the OS specific variables
- include_vars: "{{ item }}"
- with_first_found:
- - "{{ ansible_distribution }}{{ ansible_distribution_major_version }}.yml"
- - "{{ ansible_os_family }}.yml"
-
-- include_tasks: "tomcat-setup-{{ ansible_os_family }}.yml"
diff --git a/ansible/roles/tomcat/tasks/tomcat-setup-Debian.yml b/ansible/roles/tomcat/tasks/tomcat-setup-Debian.yml
deleted file mode 100644
index 90a81ce..0000000
--- a/ansible/roles/tomcat/tasks/tomcat-setup-Debian.yml
+++ /dev/null
@@ -1,85 +0,0 @@
-- name: Ensure the system can use the HTTPS transport for APT.
- stat:
- path: /usr/lib/apt/methods/https
- register: apt_https_transport
-
-- name: Install APT HTTPS transport.
- apt:
- name: "apt-transport-https"
- state: present
- update_cache: yes
- when: not apt_https_transport.stat.exists
-
-- name: Install basic packages
- package:
- name: ['vim','aptitude','bash-completion','tmux','tree','htop','wget','unzip','curl','git','python']
- state: present
- update_cache: yes
-
-- name: Install Default Java (Debian/Ubuntu)
- apt:
- name: default-jdk
- state: present
-
-- name: Add tomcat group
- group:
- name: tomcat
-
-- name: Add "tomcat" user
- user:
- name: tomcat
- group: tomcat
- home: /usr/share/tomcat
- createhome: no
- system: yes
-
-- name: Download Tomcat
- get_url:
- url: "https://dlcdn.apache.org/tomcat/tomcat-10/v10.0.14/bin/apache-tomcat-10.0.14.tar.gz"
- dest: "{{ tomcat_archive_dest }}"
-
-- name: Create a tomcat directory
- file:
- path: /usr/share/tomcat
- state: directory
- owner: tomcat
- group: tomcat
-
-- name: Extract tomcat archive
- unarchive:
- src: "{{ tomcat_archive_dest }}"
- dest: /usr/share/tomcat
- owner: tomcat
- group: tomcat
- remote_src: yes
- extra_opts: "--strip-components=1"
- creates: /usr/share/tomcat/bin
-
-- name: Copy tomcat service file
- template:
- src: templates/tomcat.service.j2
- dest: /etc/systemd/system/tomcat.service
- when: ansible_service_mgr == "systemd"
-
-- name: Start and enable tomcat
- service:
- daemon_reload: yes
- name: tomcat
- state: started
- enabled: yes
- when: ansible_service_mgr == "systemd"
-- name: Set UI access credentials
- template:
- src: tomcat-users.xml.j2
- dest: /usr/share/tomcat/conf/tomcat-users.xml
- notify: restart tomcat
-
-- name: Allow access to Manager and Host Manager apps from any IP
- template:
- src: context.xml.j2
- dest: "{{ item }}"
- with_items:
- - /usr/share/tomcat/webapps/host-manager/META-INF/context.xml
- - /usr/share/tomcat/webapps/manager/META-INF/context.xml
- notify: restart tomcat
-
diff --git a/ansible/roles/tomcat/templates/context.xml.j2 b/ansible/roles/tomcat/templates/context.xml.j2
deleted file mode 100644
index 9265673..0000000
--- a/ansible/roles/tomcat/templates/context.xml.j2
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/ansible/roles/tomcat/templates/tomcat-users.xml.j2 b/ansible/roles/tomcat/templates/tomcat-users.xml.j2
deleted file mode 100644
index 976627e..0000000
--- a/ansible/roles/tomcat/templates/tomcat-users.xml.j2
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ansible/roles/tomcat/templates/tomcat.service.j2 b/ansible/roles/tomcat/templates/tomcat.service.j2
deleted file mode 100644
index e0d34bd..0000000
--- a/ansible/roles/tomcat/templates/tomcat.service.j2
+++ /dev/null
@@ -1,22 +0,0 @@
-[Unit]
-Description=Tomcat
-After=syslog.target network.target
-
-[Service]
-Type=forking
-
-User=tomcat
-Group=tomcat
-
-Environment=JAVA_HOME={{ JAVA_HOME }}
-Environment='JAVA_OPTS=-Djava.awt.headless=true'
-
-Environment=CATALINA_HOME=/usr/share/tomcat
-Environment=CATALINA_BASE=/usr/share/tomcat
-Environment=CATALINA_PID=/usr/share/tomcat/temp/tomcat.pid
-
-ExecStart=/usr/share/tomcat/bin/catalina.sh start
-ExecStop=/usr/share/tomcat/bin/catalina.sh stop
-
-[Install]
-WantedBy=multi-user.target
diff --git a/ansible/roles/tomcat/vars/Debian.yml b/ansible/roles/tomcat/vars/Debian.yml
deleted file mode 100644
index aae9205..0000000
--- a/ansible/roles/tomcat/vars/Debian.yml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-JAVA_HOME: /usr/lib/jvm/default-java
diff --git a/ansible/roles/tomcat/vars/RedHat.yml b/ansible/roles/tomcat/vars/RedHat.yml
deleted file mode 100644
index 60943a8..0000000
--- a/ansible/roles/tomcat/vars/RedHat.yml
+++ /dev/null
@@ -1 +0,0 @@
-JAVA_HOME: /usr/lib/jvm/jre
diff --git a/ansible/tomcat-setup.yml b/ansible/tomcat-setup.yml
deleted file mode 100644
index 47378e3..0000000
--- a/ansible/tomcat-setup.yml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-- name: Tomcat deployment playbook
- hosts: all # Inventory hosts group / server to act on
- become: yes # If to escalate privilege
- become_method: sudo # Set become method
- remote_user: root # Update username for remote server
- vars:
- tomcat_ver: 10.0.14 # Tomcat version to install
- ui_manager_user: manager # User who can access the UI manager section only
- ui_manager_pass: root # UI manager user password
- ui_admin_username: admin # User who can access bpth manager and admin UI sections
- ui_admin_pass: root # UI admin password
- roles:
- - tomcat
-