From a5b306b461f45c55ffa9ab8e9e93ad1b32277c21 Mon Sep 17 00:00:00 2001 From: Jarod Pauchet Date: Fri, 8 Nov 2024 10:32:30 +0100 Subject: [PATCH] Ajout du playbook apbase.yml --- Ansible/apbase.yml | 27 +++++++++++++++++++++++++++ Ansible/hosts | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 Ansible/apbase.yml create mode 100644 Ansible/hosts diff --git a/Ansible/apbase.yml b/Ansible/apbase.yml new file mode 100644 index 0000000..27ce335 --- /dev/null +++ b/Ansible/apbase.yml @@ -0,0 +1,27 @@ +--- +- hosts: all + become: yes + tasks: + - name: changement de la timezone + timezone: + name: Europe/Paris + + - name: configure le fichier apt.conf pour le proxy + 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: installation des paquets de tomcat10, ant et mariadb-server + apt: + name: + - tomcat10 + - ant + - mariadb-server + state: present + + - name: installation de qemu-guest-agent + apt: + name: qemu-guest-agent + state: present \ No newline at end of file diff --git a/Ansible/hosts b/Ansible/hosts new file mode 100644 index 0000000..3d89629 --- /dev/null +++ b/Ansible/hosts @@ -0,0 +1,2 @@ +[pt] +ap33-pt \ No newline at end of file