Ajout du playbook apbase.yml

This commit is contained in:
Jarod Pauchet 2024-11-08 10:32:30 +01:00
parent 4605916258
commit a5b306b461
2 changed files with 29 additions and 0 deletions

27
Ansible/apbase.yml Normal file
View File

@ -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

2
Ansible/hosts Normal file
View File

@ -0,0 +1,2 @@
[pt]
ap33-pt